This method adds documents to Upstash database. Documents are first converted to vectors using the provided embeddings instance, and then upserted to the database.
addDocuments(
documents: DocumentInterface<Record<string, any>>[],
options: __type
): Promise<string[]>| Name | Type | Description |
|---|---|---|
documents* | DocumentInterface<Record<string, any>>[] | Array of Document objects to be added to the database. |
options | __type | Optional object containing array of ids for the documents. |