VectorRetriever
Retriever backed by vector similarity search.
Embeds the query using the provided Embedder, then queries the VectorStore for the most similar entries.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VectorRetriever(options): VectorRetriever;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”VectorRetriever
Methods
Section titled “Methods”retrieve()
Section titled “retrieve()”retrieve(query, options?): Promise<RetrievalResult[]>;Retrieve relevant content for a query.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
Returns
Section titled “Returns”Promise<RetrievalResult[]>