Loading repository data…
Loading repository data…
TaimoorKhan10 / repository
Production-ready Retrieval Augmented Generation (RAG) system with hybrid retrieval, advanced evaluation metrics, and monitoring. Build enterprise LLM applications with reduced hallucinations, better context management, and comprehensive observability.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Production-grade Retrieval-Augmented Generation with enterprise features, comprehensive evaluation, and monitoring
Enterprise-RAG-Framework is a production-grade Retrieval Augmented Generation system designed for enterprise applications. It combines state-of-the-art retrieval techniques with advanced context augmentation to enable LLMs to access and reason over your organization's knowledge base with unprecedented accuracy and transparency.
While consumer-grade RAG systems may work for basic applications, enterprise environments demand more: sophisticated retrieval algorithms, comprehensive evaluation metrics, robust monitoring, and seamless deployment options. Enterprise-RAG-Framework delivers all of these capabilities in a modular, extensible package.
pip install enterprise-rag-framework
# Clone the repository
git clone https://github.com/TaimoorKhan10/Enterprise-RAG-Framework.git
cd Enterprise-RAG-Framework
# Install in development mode
pip install -e .
# Pull the image
docker pull taimoor/enterprise-rag-framework:latest
# Run the container
docker run -p 8000:8000 -v /path/to/data:/app/data taimoor/enterprise-rag-framework:latest
from enterprise_rag_framework import RAGSystem, DocumentProcessor
# Initialize the RAG system with custom configuration
rag_system = RAGSystem(
vector_store_config={
"type": "faiss", # Options: faiss, pinecone, weaviate, etc.
"index_path": "data/index",
"embedding_model": "sentence-transformers/all-mpnet-base-v2"
},
retrieval_config={
"type": "hybrid", # Options: hybrid, dense, sparse
"top_k": 5,
"use_reranker": True
},
generation_config={
"model": "gpt-3.5-turbo", # Or use local models
"temperature": 0.7,
"max_tokens": 500
}
)
# Process and index documents
processor = DocumentProcessor(
chunking_strategy="recursive", # Options: recursive, sliding_window, semantic
chunk_size=1000,
chunk_overlap=200
)
# Process a directory of documents
docs = processor.process_directory("path/to/documents")
# Add documents to the system
rag_system.add_documents(docs)
# Save the index for future use
rag_system.save_index()
# Query the system
response = rag_system.query(
"What are the key benefits of Enterprise RAG systems?",
options={
"filters": {"metadata.type": "technical"}, # Optional metadata filters
"retrieval_options": {"semantic_weight": 0.7} # Customize retrieval
}
)
# Access results
print(f"Answer: {response['answer']}")
# Display sources with confidence scores
print("\nSources:")
for i, source in enumerate(response['sources'], 1):
print(f"{i}. {source['title']} (confidence: {source['score']:.2f})")
print(f" Snippet: {source['text'][:150]}...")
# View performance metrics
print("\nPerformance Metrics:")
for key, value in response['metrics'].items():
if isinstance(value, float):
print(f"{key}: {value:.3f}s")
else:
print(f"{key}: {value}")
# Start the API server
python -m enterprise_rag_framework.deployment.api
Then make requests to the API:
curl -X POST "http://localhost:8000/query" \
-H "Content-Type: application/json" \
-d '{
"query": "What are the advantages of hybrid retrieval?",
"options": {
"filters": {"metadata.category": "technical"},
"top_k": 5
}
}'
# Index documents
python -m enterprise_rag_framework.cli.index_documents \
--source-dir /path/to/documents \
--index-path data/index \
--chunk-size 1000 \
--chunk-overlap 200
# Query the system
python -m enterprise_rag_framework.cli.query \
--query "What are the advantages of Enterprise RAG systems?" \
--index-path data/index \
--model gpt-3.5-turbo \
--retrieval-type hybrid
# Evaluate the system
python -m enterprise_rag_framework.cli.evaluate \
--dataset test_data.json \
--metrics retrieval_precision,answer_relevance,factual_correctness \
--output evaluation_results.json
| Dataset | Retrieval Precision | Answer Relevance | Factual Correctness | Latency (ms) |
|---|---|---|---|---|
| HotpotQA | 92.3% | 89.7% | 95.1% | 320 |
| NQ Open | 88.5% | 85.2% | 93.4% | 280 |
| Custom Financial | 94.1% | 91.3% | 97.2% | 350 |
| Legal Documents | 90.8% | 87.9% | 96.5% | 410 |
We welcome contributions to the Enterprise-Ready RAG System! Please see our contributing guidelines for more details.
This project is licensed under the MIT License - see the LICENSE file for details.
If you use this system in your research or project, please cite:
@software{enterprise_rag_framework,
author = {Khan, Taimoor},
title = {Enterprise-RAG-Framework},
url = {https://github.com/TaimoorKhan10/Enterprise-RAG-Framework},
year = {2025},
}
For questions or feedback, please open an issue on the GitHub repository or contact the maintainer directly.