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
20 lines
591 B
Rust
20 lines
591 B
Rust
use qdrant_client::qdrant::{Condition, Filter, QueryPointsBuilder};
|
|
use qdrant_client::Qdrant;
|
|
|
|
pub async fn main() -> anyhow::Result<()> {
|
|
let client = Qdrant::from_url("http://localhost:6334").build()?; // @hide
|
|
|
|
let seen_ids = vec![83461u64, 19284, 57392, 44017, 91825]; // IDs returned on previous pages
|
|
|
|
client
|
|
.query(
|
|
QueryPointsBuilder::new("{collection_name}")
|
|
.query(vec![0.2, 0.1, 0.9, 0.7])
|
|
.filter(Filter::must_not([Condition::has_id(seen_ids)]))
|
|
.limit(5),
|
|
)
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|