Skip to main content

QV-RAG

A simple and efficient RAG (Retrieval-Augmented Generation) engine for semantic search and document retrieval.

Note: This is an experimental project used for research and development. The engine is functional but will continue to evolve and improve over time.

Features

  • Simple API: Easy-to-use interface for document management and querying
  • Multiple Document Types: Support for text, markdown, HTML, and JSON files
  • Smart Chunking: Intelligent text splitting with metadata preservation
  • Semantic Search: Built-in semantic search using ChromaDB
  • Metadata Support: Flexible metadata handling for better document organization

Installation

pip install qv-rag

Quick Start

from qv_rag.engine import RAGEngine

# Initialize the engine
engine = RAGEngine(
    collection_name="my_docs",
    chunk_size=1000,
    chunk_overlap=200
)

# Add documents
engine.add_texts(["Python is a popular programming language."])
engine.add_file("document.md")

# Query documents
results = engine.query("What is Python?")
for result in results:
    print(result['text'])
    print(f"Score: {result['distance']}")

Usage Examples

Adding Documents

# Add text with metadata
engine.add_texts(
    texts=["Document content"],
    metadatas=[{"source": "manual", "category": "docs"}]
)

# Add a file
engine.add_file("document.md", metadata={"source": "file"})

Querying

# Simple query
results = engine.query("What is machine learning?")

# Query with filters
results = engine.query(
    "What is Python?",
    where={"category": "docs"},
    top_k=3
)

Supported File Types

  • Text files (.txt)
  • Markdown files (.md)
  • HTML files (.html, .htm)
  • JSON files (.json)
  • PDF files (.pdf) --> must be further improved

License

MIT License

Metadata

Release files for qv-rag 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qv-rag 0.1.0
File Size Uploaded Provenance
qv_rag-0.1.0.tar.gz 130.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qv-rag 0.1.0
File Interpreter ABI Platform
qv_rag-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 138.2 kB

Release files / qv_rag-0.1.0.tar.gz

Download URL qv_rag-0.1.0.tar.gz
Size 130.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cc0bd2940945848dc8a7363d397bed8105b368615065effabcdbcbd3e80b28d3
BLAKE2b-256 checksum
How to use checksums
9dcfa466dbadfd09160583effd215ed327216219e49d3227400e6b68d10db451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.0

Release files / qv_rag-0.1.0-py3-none-any.whl

Download URL qv_rag-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42e3a8a8bc0a53c1f22024c77681865ce09c48e255657d30106bfc434094c391
BLAKE2b-256 checksum
How to use checksums
b333041592589f187573d44fae362b1879df59284e57f237a501e3002e25bb62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.0

Security for qv-rag 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page