Skip to main content

Crate swiftide_query

Crate swiftide_query 

Source
Expand description

Query pipelines for retrieval augmented generation in Swiftide.

This crate provides the query Pipeline and its built-in steps: query_transformers (subquestion generation, dense and sparse embedding), response_transformers (summarizing retrieved documents), answers (generating the final answer) and evaluators (Ragas-compatible evaluation). The step traits and query states live in swiftide-core; retrievers such as Qdrant, pgvector and LanceDB come from swiftide-integrations.

The swiftide facade re-exports this crate together with the core query types as swiftide::query. Prefer that unless you want a minimal dependency.

Guide: https://swiftide.rs/querying/

Modules§

answers
Given a query, generate an answer
evaluators
This module contains evaluators for evaluating the quality of a pipeline.
query_transformers
Transform queries that are yet to be made
response_transformers
Transform retrieved queries

Structs§

Pipeline
The starting point of a query pipeline