This project provides a comprehensive solution for retrieval-augmented question answering, specifically designed for PDF corpuses like research papers. Its core innovation is a from-scratch retrieval evaluation harness that meticulously measures metrics such as recall@k, hit-rate@k, and Mean Reciprocal Rank (MRR), offering deep insights into retrieval performance beyond mere answer generation. The pipeline leverages AWS S3 for document storage, Qdrant for vector indexing, and Amazon Bedrock for answer generation, all exposed via a FastAPI service, an MCP server as agent tools, and orchestrated as a LangGraph agent with a self-correction loop.
主要功能
01FastAPI service exposing online question answering capabilities
02LangGraph agent with a bounded self-correction loop for answer verification
03MCP server integration for agent tools (search, QA, retrieval evaluation)
04Retrieval-augmented QA using Amazon Bedrock for answer generation
05From-scratch retrieval evaluation harness (recall@k, hit-rate@k, MRR)
060 GitHub stars
使用案例
01Building and evaluating RAG pipelines for document corpora
02Creating searchable knowledge bases for research papers or internal documentation
03Developing AI agents that require robust, grounded information retrieval