mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-08 04:18:32 +02:00
Document custom RRF (#1985)
* make dedicated fusion strategy sections * docs: Java, Go, C# snippets Signed-off-by: Anush008 <anushshetty90@gmail.com> * add formula for rrf * add rust and python snippets * Use consistent formatting --------- Signed-off-by: Anush008 <anushshetty90@gmail.com> Co-authored-by: Anush008 <anushshetty90@gmail.com> Co-authored-by: Tim Visée <tim@visee.me>
This commit is contained in:
co-authored by
Anush008
Tim Visée
parent
5ed4822559
commit
902e937a25
+13
@@ -0,0 +1,13 @@
|
||||
```rust
|
||||
use qdrant_client::Qdrant;
|
||||
use qdrant_client::qdrant::{Rrf, PrefetchQueryBuilder, Query, QueryPointsBuilder};
|
||||
|
||||
let client = Qdrant::from_url("http://localhost:6334").build()?;
|
||||
|
||||
client.query(
|
||||
QueryPointsBuilder::new("{collection_name}")
|
||||
// .add_prefetch(...) <┐
|
||||
// .add_prefetch(...) <┴─ 2+ prefetches here
|
||||
.query(Query::new_rrf(RrfBuilder::with_k(60))
|
||||
).await?;
|
||||
```
|
||||
Reference in New Issue
Block a user