Configuration for indexing documents for semantic search in the store.
If not provided to the store, the store will not support vector search.
In that case, all index arguments to put() and aput() operations will be ignored.
IndexConfig()| Name | Type |
|---|---|
| dims | int |
| embed | Embeddings | EmbeddingsFunc | AEmbeddingsFunc | str |
| fields | list[str] | None |
Number of dimensions in the embedding vectors.
Optional function to generate embeddings from text.
Fields to extract text from for embedding generation.
Controls which parts of stored items are embedded for semantic search. Follows JSON path syntax:
["$"]: Embeds the entire JSON object as one vector (default)["field1", "field2"]: Embeds specific top-level fields["parent.child"]: Embeds nested fields using dot notation["array[*].field"]: Embeds field from each array element separately