quorumrag 0.1.0

Quorum-based retrieval-augmented generation: fuse multiple retrievers and keep only the evidence they agree on.
Documentation
1
2
3
4
5
6
7
8
9
10
pub mod dense;
pub mod bm25;

use crate::models::{Candidate, Query};
use anyhow::Result;

pub trait Retriever: Send + Sync {
    fn id(&self) -> &str;
    fn retrieve(&self, query: &Query, top_k: usize) -> Result<Vec<Candidate>>;
}