Static method to create a new CloseVectorWeb instance from documents. It creates a new CloseVectorWeb instance, adds the documents to it, then returns the instance.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
args: Record<string, unknown>,
credentials: CloseVectorCredentials
): Promise<CloseVectorWeb>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | The documents to be added to the CloseVectorWeb instance. |
embeddings* | EmbeddingsInterface | The embeddings to be used by the CloseVectorWeb instance. |
args | Record<string, unknown> | An optional configuration object for the CloseVectorWeb instance. |
credentials | CloseVectorCredentials | An optional credential object for the CloseVector API. |