Skip to main content

Fast local RAG - search your documents with AI, no cloud needed

Project description

rapid-rag

Fast local RAG - search your documents with AI, no cloud needed.

Installation

pip install rapid-rag

For PDF support:

pip install rapid-rag[pdf]

Quick Start

from rapid_rag import RapidRAG

# Create a RAG instance
rag = RapidRAG("my_documents")

# Add documents
rag.add("doc1", "The quick brown fox jumps over the lazy dog.")
rag.add_file("report.pdf")
rag.add_directory("./docs/")

# Semantic search
results = rag.search("fox jumping")
for r in results:
    print(f"{r['score']:.3f}: {r['content'][:100]}")

# RAG query with LLM (requires Ollama)
answer = rag.query("What does the fox do?", model="qwen2.5:7b")
print(answer["answer"])

CLI Usage

# Initialize a collection
rapid-rag init my_docs

# Add documents
rapid-rag add ./documents/ -c my_docs -r

# Search
rapid-rag search "query here" -c my_docs

# RAG query (requires Ollama)
rapid-rag query "What is X?" -c my_docs -m qwen2.5:7b

# Info
rapid-rag info -c my_docs

Features

  • Local-first: Everything runs on your machine
  • Fast: ChromaDB + sentence-transformers
  • Simple API: Add, search, query in 3 lines
  • File support: .txt, .md, .pdf
  • Chunking: Automatic with overlap
  • LLM integration: Works with Ollama

Requirements

  • Python 3.10+
  • For LLM queries: Ollama running locally

License

MIT - Humotica

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

rapid_rag-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

rapid_rag-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file rapid_rag-0.1.0.tar.gz.

File metadata

  • Download URL: rapid_rag-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rapid_rag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5f913f257423f85253abbfc8d1026e0e95ddaa8754722982bccf2dc51d6c4a9
MD5 a7da319d619e309df83d3dcf9e4d393d
BLAKE2b-256 ed21efd0fa1ed4fd8a1d551d7254478872f50050ff0b3d90b5e6c86a707337f7

See more details on using hashes here.

File details

Details for the file rapid_rag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rapid_rag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rapid_rag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c539b9ccb00130548ae732a05dc338be4108eeabd12998a8d2e300febd2ef08d
MD5 10b37eadc292b4f033480f4db6b92897
BLAKE2b-256 ea0753ada137555dd3b00e711164500ca0b3d19449ec73ffc6f9b06c2f1e3da8

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