Create Index
POST/v1/dataset/index/create
Creates an index and returns the job id of the index creation job.
Request
- application/json
Body
required
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
Array [
]
- MOD1
Array [
]
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
Unique project id
index_name
object
The name of the index you are building.
anyOf
string
Default value: ``
The fields that can be colored by.
modality
object
The data modality of the index. DEPRECATED
anyOf
string
reuse_atoms_and_embeddings_from
object
If passed, will reuse atoms and embeddings from the specified index
anyOf
string
indexed_field
object
required
The field this index is indexing. Should be set to None for embedding projects.
anyOf
string
atomizer_strategies
object
The atomizer strategies to use when building this index. Should be set to None for embedding projects.
anyOf
string
geometry_strategies
object
The sets of geometry strategies to use when building this index. Should be set to None for embedding projects.
anyOf
model
object
required
The model to encode your data with. Should be set to None for embedding projects.
anyOf
string
model_hyperparameters
object
required
JSON representation of hyperparameters to train the model with. Should be set to None for embedding projects.
anyOf
string
The nearest neighbor index to build.
JSON representation of hyperparameters to train the model with
The projection to build.
JSON representation of hyperparameters to train the model with
Default value: {"build_topic_model": false}
JSON representation of hyperparameters to build the topic model with
Default value: {"tag_duplicates": false, "duplicate_cutoff": 0.1}
JSON representation of hyperparameters used for duplicate detection
build_from_versioned_dataset
object
Build index from new storage format (Experimental)
anyOf
boolean
build_map_using_resources
object
Build map using resources
anyOf
boolean
upload_checkpoint
object
checkpoint indentifier, resolves to the earliest version that has ingested data up to specified point
anyOf
integer
latest_addition_timestamp
object
timestamp of the latest addition to the dataset, used to determine the upload checkpoint
anyOf
integer
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
The job id of the index creation job.
projection_id
object
The projection id created by a resource-path map.
anyOf
string
{
"job_id": "string",
"projection_id": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}