feat(rag-test): add RAG Pipeline testing and evaluation module#2
Open
2561056571 wants to merge 1 commit intomainfrom
Open
feat(rag-test): add RAG Pipeline testing and evaluation module#22561056571 wants to merge 1 commit intomainfrom
2561056571 wants to merge 1 commit intomainfrom
Conversation
Add a comprehensive RAG Pipeline testing module for evaluating different document conversion methods and splitting strategies. Key features: - Document converters: Docling, Marker, Pandoc, PyPDF, Unstructured - Markdown splitters: LangChain (Header+Recursive), LlamaIndex (Node+Sentence) - Vector store: FAISS for efficient similarity search - Embedding: Qwen3 Embedding (reuses existing RAGAS config) - LLM: GLM for query rewriting and answer generation - Evaluation: RAGAS metrics (faithfulness, relevancy, precision) CLI commands: - convert: Document to Markdown conversion - index: Split and build vector index - evaluate: Run RAGAS evaluation - run: Full pipeline test - compare: Test all converter×splitter combinations - report: Generate comparison report The module operates independently as a CLI tool, reusing existing RAGAS LLM and Embedding configurations from the main project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a comprehensive RAG Pipeline testing and evaluation module for testing different document conversion methods and splitting strategies with RAGAS-based automated scoring.
Key Features
Document Converters (5 types):
Markdown Splitters (2 strategies):
MarkdownHeaderTextSplitter→RecursiveCharacterTextSplitter(chunk_size=1024, overlap=50)MarkdownNodeParser→SentenceSplitter(chunk_size=1024, overlap=50)Core Components:
CLI Commands
Module Structure
New Dependencies
Test plan
python -m app.services.rag_test.cli --help