mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* Add 'Stable Ordering' section to 'Pagination' section * Add FAQ entry * Small edits to the Pagination section * Apply title case to all headers on page * Small edit
18 lines
491 B
Rust
18 lines
491 B
Rust
use qdrant_client::qdrant::{QueryPointsBuilder, SearchParamsBuilder};
|
|
use qdrant_client::Qdrant;
|
|
|
|
pub async fn main() -> anyhow::Result<()> {
|
|
let client = Qdrant::from_url("http://localhost:6334").build()?; // @hide
|
|
|
|
client
|
|
.query(
|
|
QueryPointsBuilder::new("{collection_name}")
|
|
.query(vec![0.2, 0.1, 0.9, 0.7])
|
|
.limit(10)
|
|
.params(SearchParamsBuilder::default().exact(true)),
|
|
)
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|