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.2.tar.gz (18.5 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.2-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vrin-0.3.2.tar.gz
  • Upload date:
  • Size: 18.5 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.2.tar.gz
Algorithm Hash digest
SHA256 d040e47fd45bfafb75a6ff656f504aa0eee938a1f569778fcd4a03e4102bd9b2
MD5 4aacb1a61d478f7b29a98cde81af8b57
BLAKE2b-256 666426bbda594317e4c9d4e7c535bc67290dc980aac6ca119ee2eadf01e398aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vrin-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5574a113849669e38b6a068b75d47101a5e064381f85f123b91e7bc2041836
MD5 9b650c8b70f868c7e42f4977d64002fa
BLAKE2b-256 50d1152726173c38589de0b414467f47d5eed052627239b83a9d1fce0762ec3d

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