pub async fn rag_retrieve_context(
query_embedding: &[f32],
vdb_server_url: impl AsRef<str>,
vdb_collection_name: impl AsRef<str>,
limit: usize,
score_threshold: Option<f32>,
vdb_api_key: Option<String>,
) -> Result<RetrieveObject, LlamaCoreError>
Available on crate feature
rag
only.Expand description
Retrieve similar points from the Qdrant server using the query embedding
ยงArguments
-
query_embedding
- A reference to a query embedding. -
qdrant_url
- URL of the Qdrant server. -
qdrant_collection_name
- Name of the Qdrant collection to be created. -
limit
- Number of retrieved results. -
score_threshold
- The minimum score of the retrieved results.