Constructs a new RocksetStore
Object used to embed queries and page content
Optional
filterAdds vectors to the store given their corresponding Documents
The vectors to store
The Documents they represent
The _id's of the added documents
Gets 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
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