framework
SiftQ + LlamaIndex
BaseRetriever subclass for LlamaIndex workflows.
Use SiftQ as the retrieval source in LlamaIndex query engines, agent workflows, and ReAct agents. Implements `BaseRetriever` so it composes with rerankers, postprocessors, and response synthesizers.
Install
pip install llama-index-retrievers-siftqExample
from llama_index.retrievers.siftq import SiftQRetriever
from llama_index.core.query_engine import RetrieverQueryEngine
retriever = SiftQRetriever(scope="scholar", size=15)
engine = RetrieverQueryEngine.from_args(retriever)
response = engine.query("Transformer architecture innovations 2025")
print(response)Why use it
- ✓Native BaseRetriever — works with every LlamaIndex pattern
- ✓Combine with LlamaIndex rerankers (Cohere, BGE) for two-stage retrieval
- ✓Supports streaming retrieval in agent workflows