Skip to main content

Enhanced Hybrid RAG SDK with multi-hop reasoning, cross-document synthesis, and expert-level analysis capabilities

Project description

VRIN Hybrid RAG SDK v0.2.3

Optimized Hybrid RAG SDK with smart deduplication, enhanced fact extraction, and competitive performance.

🚀 New in v0.2.3 - Latest Optimizations

  • 🎯 Smart Deduplication - Prevents duplicate facts and chunks, reduces storage by 40-60%
  • Enhanced Performance - Sub-3s queries with 7+ combined graph + vector results
  • 🧠 Improved Fact Quality - 0.8+ confidence facts with self-updating system
  • 💾 Storage Optimization - Only stores unique, fact-rich content with transparency
  • 🔄 Self-Improving - Higher confidence facts automatically update existing ones
  • 📊 Competitive Edge - Outperforms pure RAG and basic GraphRAG systems
  • 🔧 Updated Import - Now use from vrin import VRINClient

🚀 Core Features

  • Hybrid RAG Architecture - Graph reasoning + Vector similarity search
  • 🧠 Intelligent Entity Matching - AI-powered compound entity recognition
  • 📊 Advanced Fact Extraction - High-confidence structured knowledge extraction
  • 🔍 Sub-3s Query Response - Optimized retrieval with comprehensive coverage
  • 🎯 AI-Powered Summaries - Natural language answers with cited sources
  • 📈 Enterprise-Ready - User isolation, authentication, and production scaling

📦 Installation

pip install vrin==0.2.3

🔧 Quick Start

from vrin import VRINClient

# Initialize with your API key
client = VRINClient(api_key="your_vrin_api_key")

# Insert knowledge with automatic fact extraction and optimization
result = client.insert(
    content="Python is a high-level programming language created by Guido van Rossum in 1991. It emphasizes code readability and supports multiple programming paradigms.",
    title="Python Programming Language",
    tags=["programming", "python", "language"]
)

print(f"✅ Extracted {result['facts_extracted']} facts")
print(f"📦 Chunk stored: {result['chunk_stored']}")
print(f"💾 Storage details: {result['storage_details']}")

# Query with intelligent hybrid search
response = client.query("Who created Python and when?")
print(f"📝 Answer: {response['summary']}")
print(f"⚡ Performance: {response['total_facts']} graph + {response['total_chunks']} vector = {response['combined_results']} results")
print(f"🔍 Query time: {response['search_time']}")

📊 Performance (v0.2.3 Optimized)

  • Fact Extraction: 3-8 high-quality facts per insertion (0.8+ confidence)
  • Query Response: Sub-3s with 7+ combined graph + vector results
  • Hybrid Coverage: 2-5 graph facts + 3-5 vector chunks per query
  • Storage Efficiency: 40-60% reduction through smart deduplication
  • Self-Improvement: Facts automatically update with higher confidence versions
  • Competitive Advantage: Outperforms single-method RAG systems

🏗️ Architecture

VRIN uses a sophisticated Hybrid RAG architecture:

  1. Smart Fact Extraction - LLM-powered extraction with deduplication
  2. Graph Storage - Facts stored as knowledge graph in Neptune
  3. Vector Storage - Semantic embeddings in OpenSearch with optimization
  4. Hybrid Retrieval - Combines graph traversal + vector similarity
  5. Result Fusion - Intelligent ranking and result combination
  6. AI Summarization - Natural language response generation
  7. Storage Optimization - Prevents duplicates and optimizes efficiency

🔐 Authentication & Setup

  1. Sign up at VRIN Console (when available)
  2. Get your API key from account dashboard
  3. Use the API key to initialize your client
client = VRINClient(api_key="vrin_your_api_key_here")

📄 License

MIT License - see LICENSE file for details.

📈 Latest Updates (August 08, 2025)

  • Smart Deduplication (40-60% storage reduction)
  • Storage Transparency with detailed explanations
  • Content similarity detection
  • High-confidence fact extraction (0.8+)
  • Sub-3s hybrid query performance
  • Enhanced entity matching with compound entities

Built with ❤️ by the VRIN Team

Last updated: August 08, 2025 (Auto-generated)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vrin-0.3.0.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vrin-0.3.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file vrin-0.3.0.tar.gz.

File metadata

  • Download URL: vrin-0.3.0.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vrin-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9418e665e1503a0045b75b932ad52a9d57888873dedd619e847454ad0ed13d65
MD5 34f63b8c699123d57fb23d68ba6affa3
BLAKE2b-256 284a819f60251b866d122d298f61705c16666ae46f96a33dae773b7d7d6fc6c3

See more details on using hashes here.

File details

Details for the file vrin-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: vrin-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vrin-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2f6912ab0db7df135a1c7302a9abc7a836fc88e7cf572735a31365ca18acd66
MD5 6f3e5e24e5967907e12d143539cc9604
BLAKE2b-256 e68c0ee351a2e9527053dca85ce5aadd8875b142f81e11e8a3f4b642d1a140a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page