Static method to create a new NeonPostgres instance from an
array of Document instances. It adds the documents to the store.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: NeonPostgresArgs
): Promise<NeonPostgres>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of |
embeddings* | EmbeddingsInterface | Embeddings instance. |
dbConfig* | NeonPostgresArgs |
|