Static method that creates a new instance of the PineconeStore class from documents.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: PineconeStoreParams
): Promise<PineconeStore>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of documents to add to the Pinecone database. |
embeddings* | EmbeddingsInterface | Embeddings to use for the documents. |
dbConfig* | PineconeStoreParams | Configuration for the Pinecone database. |