Add vectors and corresponding documents to a couchbase collection If the document IDs are passed, the existing documents (if any) will be overwritten with the new ones.
addVectors(
vectors: number[][],
documents: Document<Record<string, any>>[],
options: AddVectorOptions = {}
): Promise<string[]>| Name | Type | Description |
|---|---|---|
vectors* | number[][] | The vectors to be added to the collection. |
documents* | Document<Record<string, any>>[] | The corresponding documents to be added to the collection. |
options | AddVectorOptions | Default: {}Optional parameters for adding vectors. This may include the IDs and metadata of the documents to be added. Defaults to an empty object. |