Query Rewriting Retriever Pack.
- class openssa.deprecated.ooda_rag.query_rewritting_engine.QueryRewritingRetrieverPack(index: VectorStoreIndex = None, chunk_size: int = 1024, vector_similarity_top_k: int = 10, fusion_similarity_top_k: int = 10, service_context: ServiceContext = None, **kwargs: Any)¶
Bases:
BaseLlamaPack
Query rewriting retriever pack.
Rewrite the query into multiple queries and rerank the results.
- get_modules() Dict[str, Any] ¶
Get modules.
- retrieve(query_str: str) Any ¶
Retrieve.
- run(*args: Any, **kwargs: Any) Any ¶
Run the pipeline.