Static method that creates a new USearch instance from a list of
texts. It generates embeddings for the texts and adds them to the
usearch index.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: __type
): Promise<USearch>| Name | Type | Description |
|---|---|---|
texts* | string[] | An array of texts to be added to the index. |
metadatas* | object | object[] | Metadata associated with the texts. |
embeddings* | EmbeddingsInterface | An instance of |
dbConfig | __type | Optional configuration for the document store. |