How electify-eu/europarl-ai works
External Services (Purple hexagons)
• OpenAI API (for embeddings and LLM)
• Alternative LLMs (Mixtral, Claude)
Flow and Interactions
• User Query → Frontend → RAG System → Vector Database → LLM → Frontend → User
Detailed Component Breakdown
a. RAG Pipeline (Show as a subprocess):
• Document Retrieval → Context Selection → Query Processing → Response Generation
b. Evaluation System (Show as a parallel track):
• Experiments → Metrics Collection → Performance Analysis
Experiment Components
Subdivisions for:
• Party Anonymization
• LLM Comparison
• Retrieval Parameters
• Embedding Model Evaluation
The user interaction flow through the Streamlit interface
• External service indicators
Keep the abstraction level focused on the main architectural components while showing the experimental nature of the system through the evaluation framework.