Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.51 KB

File metadata and controls

35 lines (26 loc) · 1.51 KB

CreateIndexRequest

Request body for POST .../indexes

Properties

Name Type Description Notes
index_name str
index_type str Index type: "sorted" (default), "bm25", or "vector" [optional]
metric str Distance metric for vector indexes: "l2" (default), "cosine", or "dot". Only relevant when index_type = "vector". [optional]
sort_columns List[str] [optional]
text_columns List[str] Text columns for BM25 indexes [optional]
vector_columns List[str] Vector column for vector indexes (exactly one entry required) [optional]

Example

from hotdata.models.create_index_request import CreateIndexRequest

# TODO update the JSON string below
json = "{}"
# create an instance of CreateIndexRequest from a JSON string
create_index_request_instance = CreateIndexRequest.from_json(json)
# print the JSON string representation of the object
print(CreateIndexRequest.to_json())

# convert the object into a dict
create_index_request_dict = create_index_request_instance.to_dict()
# create an instance of CreateIndexRequest from a dict
create_index_request_from_dict = CreateIndexRequest.from_dict(create_index_request_dict)

[Back to Model list] [Back to API list] [Back to README]