spcl/MRAG
Official Implementation of "Multi-Head RAG: Solving Multi-Aspect Problems with LLMs"
Extracts embeddings from Transformer multi-head attention activations rather than decoder layers, enabling separate vector representations for different semantic aspects within documents. Provides a complete pipeline including synthetic dataset generation, embedding computation, vector database integration (Docker-based), and evaluation framework with visualization tools. Targets complex multi-aspect queries where relevant documents have distant embeddings in traditional embedding spaces.
240 stars.
Stars
240
Forks
25
Language
Python
License
—
Category
Last pushed
Feb 26, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/rag/spcl/MRAG"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
ictnlp/FlexRAG
FlexRAG: A RAG Framework for Information Retrieval and Generation.
VectorInstitute/fed-rag
A framework for fine-tuning retrieval-augmented generation (RAG) systems.
NirDiamant/RAG_Techniques
This repository showcases various advanced techniques for Retrieval-Augmented Generation (RAG)...
RUC-NLPIR/FlashRAG
⚡FlashRAG: A Python Toolkit for Efficient RAG Research (WWW2025 Resource)
gomate-community/TrustRAG
TrustRAG:The RAG Framework within Reliable input,Trusted output