Constructs a new RocksetStore
Object used to embed queries and page content
Optional
filterEmbeds and adds Documents to the store.
The documents to store
The _id's of the documents added
Adds vectors to the store given their corresponding Documents
The vectors to store
The Documents they represent
The _id's of the added documents
Optional
kOrFields: number | Partial<VectorStoreRetrieverInput<RocksetStore>>Optional
filter: stringOptional
callbacks: CallbacksOptional
tags: string[]Optional
metadata: Record<string, unknown>Optional
verbose: booleanOptional
k: numberOptional
filter: stringOptional
_callbacks: CallbacksGets the most relevant documents to a query along with their similarity score. The returned documents are ordered by similarity (most similar at the first index)
The embedded query to search the store by
The number of documents to retreive
Optional
filter: stringThe SQL WHERE
clause to filter by
Optional
k: numberOptional
filter: stringOptional
_callbacks: CallbacksOptional
maxReturn 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.
Static
fromConstructs, adds docs to, and returns a RocksetStore object
The Documents to store
The object used to embed queries and page content
The options to be passed into the RocksetStore constructor
Static
fromConstructs and returns a RocksetStore object given texts to store.
The texts to store
The metadatas that correspond to
The object used to embed queries and page content
The options to be passed into the RocksetStore constructor
Static
withCreates a new Rockset collection and returns a RocksetStore that uses it
Object used to embed queries and page content
The options to be passed into the RocksetStore constructor
Optional
collectionOptions: CreateCollectionRequestThe arguments to sent with the
HTTP request when creating the
collection. Setting a field mapping
that VECTOR_ENFORCE
s is recommended
when using this function. See
https://rockset.com/docs/vector-functions/#vector_enforce
Generated using TypeDoc
Exposes Rockset's vector store/search functionality