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.1.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.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vrin-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a4bc6efa7467e966f822aad74f6fc73b482a2fedd1e31ce2ccf8fd97e90be7c1
MD5 b6a969890d6ebbb419083c9b41a97c34
BLAKE2b-256 b602c2dc9417e1d42858fc9757f06b4e2748ea5c43c3f59eb90a27cc2306d7c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vrin-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d43b8c6127579c7b57201b517fd96e87351e6568415fd82cbc342979a4f322f
MD5 ecd32d084d6dba46c5c7e5aff7d017de
BLAKE2b-256 b30f02c57cd237430876103334e28813578f2479a3735ffaf3a0d0d9cd3cf3a5

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