Ask a question to get started
Enter to send•Shift+Enter new line
Method to add documents to the Elasticsearch database. It first converts the documents to vectors using the embeddings, then adds the vectors to the database.
addDocuments(documents: Document<Record<string, any>>[], options: __type): Promise<string[]>
documents
Document<Record<string, any>>[]
The documents to add to the database.
options
__type
Optional parameter that can contain the IDs for the documents.