Introduction
Large Language Models (LLMs) frequently encounter challenges such as hallucinations and a lack of specialized technical knowledge. While Retrieval-Augmented Generation (RAG) mitigates these issues by grounding models in external documents, many existing scientific QA tools are proprietary or limited to searching paper abstracts. Ai2 Scholar QA addresses these gaps as an open-source RAG system designed to synthesize information across millions of full-text papers, providing transparent and verifiable citations.
System Architecture
The Scholar QA pipeline employs a multi-stage process to ensure precision and robust attribution.
- Retrieval: The system utilizes a hybrid approach, querying a massive index of 11.7 million full-text papers (285.6M passages) alongside the standard Semantic Scholar abstract index. It combines dense vector embeddings for semantic relevance with BM25 for keyword matching.
- Reranking: To refine the context provided to the LLM, a cross-encoder (
mxbai-rerank-large-v1) scores the top 256 snippets, selecting the best 50 for generation. - Multi-step Generation: Rather than generating a single-shot response, the system uses a structured "chain-of-thought" pipeline:
- Quote Extraction: Verbatim quotes relevant to the query are extracted from retrieved passages.
- Clustering: Quotes are organized into thematic sections (e.g., Methodology, Results).
- Report Synthesis: The LLM synthesizes the final report section-by-section, conditioned on the extracted quotes to maintain factual grounding.
- Attribution: Every claim is linked to a citation. Users can interact with these citations to view the exact source excerpt, facilitating rapid fact-checking.
Evaluation and Results
Scholar QA was evaluated using the ScholarQA-CS benchmark, consisting of 100 complex Computer Science questions with expert-annotated rubrics. The system, powered by Claude 3.7, achieved a state-of-the-art score of 61.9, surpassing specialized systems like STORM (59.5) and OpenScholar (53.5).
Beyond benchmark performance, the system demonstrates superior attribution accuracy, significantly reducing the likelihood of misattributing claims. In a public deployment, Scholar QA maintained an 85% positive feedback rate across more than 30,000 user queries.
Key Insights and Future Directions
A primary takeaway from this work is that full-text indexing is essential for high-quality synthesis; abstracts alone often lack the technical detail required for complex queries. Furthermore, the "quote-first" generation strategy serves as a grounded memory, drastically reducing hallucinations.
While currently reliant on proprietary models like Claude 3.7 for peak performance, the project is moving toward fine-tuning open-source models to achieve parity. Future work will also focus on expanding evaluation benchmarks to fields like Biomedicine and implementing multi-turn chat capabilities to resolve ambiguous user requests.
Summary updated