Ask a question to get started
Enter to send•Shift+Enter new line
Method to add vectors to the OpenSearch index. It ensures the index exists, then adds the vectors and associated documents to the index.
addVectors( vectors: number[][], documents: Document<Record<string, any>>[], options: __type ): Promise<void>
vectors
number[][]
The vectors to be added to the OpenSearch index.
documents
Document<Record<string, any>>[]
The documents associated with the vectors.
options
__type
Optional parameter that can contain the IDs for the documents.