Create HNSW index on collection.
create_hnsw_index(
self,
dims: int = ADA_TOKEN_COUNT,
m: int = 16,
ef_construction: int = 64,
ef_search: int = 64,
**_kwargs: Any = {}
) -> NoneOptional Keyword Args for HNSW Index:
engine: "nmslib", "faiss", "lucene"; default: "nmslib"
ef: Size of the dynamic list used during k-NN searches. Higher values lead to more accurate but slower searches; default: 64
ef_construction: Size of the dynamic list used during k-NN graph creation. Higher values lead to more accurate graph but slower indexing speed; default: 64
m: Number of bidirectional links created for each new element. Large impact on memory consumption. Between 2 and 100; default: 16
dims: Dimensions of the vectors in collection. default: 1536