Add documents to the vector store. Will be updated if in the metadata there is a document with the same id if is using the default import function. Metadata will be added in the columns of the schema based on metadataColumnNames.
Documents to add.
OptionalkOrFields: number | Partial<VectorStoreRetrieverInput<Typesense>>Optionalfilter: Partial<MultiSearchRequestSchema>Optionalcallbacks: CallbacksOptionaltags: string[]Optionalmetadata: Record<string, unknown>Optionalverbose: booleanOptionalmaxReturn documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Text to look up documents similar to.
Search for similar documents with their similarity score.
vector to search for
Optionalk: numberamount of results to return
similar documents with their similarity score
Optionalk: numberOptionalfilter: Partial<MultiSearchRequestSchema>Optional_callbacks: CallbacksStaticfromCreate a vector store from documents.
documents
embeddings
Typesense configuration
Typesense vector store
StaticfromCreate a vector store from texts.
Typesense vector store
Typesense vector store.