Static method that creates a new USearch instance from a list of
documents. It generates embeddings for the documents and adds them to
the usearch index.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: __type
): Promise<USearch>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | An array of |
embeddings* | EmbeddingsInterface | An instance of |
dbConfig | __type | Optional configuration for the document store. |