Skip to main content

Automatic RAG Pattern Optimization Engine

Project description

ragit

Automatic RAG (Retrieval-Augmented Generation) hyperparameter optimization engine.

What it does

ragit finds the best configuration for your RAG pipeline by testing different combinations of:

  • Chunk sizes and overlaps
  • Number of retrieved chunks
  • Embedding models
  • LLM models

You provide documents and benchmark questions, ragit evaluates different configurations and returns the best one.

Install

pip install ragit

Usage

from ragit import RagitExperiment, Document, BenchmarkQuestion

documents = [
    Document(id="doc1", content="Your document text here..."),
]

benchmark = [
    BenchmarkQuestion(
        question="A question about your documents?",
        ground_truth="The expected answer."
    ),
]

experiment = RagitExperiment(documents, benchmark)
results = experiment.run()

print(results[0])  # Best configuration

License

Apache-2.0 - RODMENA LIMITED

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

ragit-0.0.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

ragit-0.0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file ragit-0.0.1.tar.gz.

File metadata

  • Download URL: ragit-0.0.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ragit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 85662f0f5586b46df30ab2c711ef6bdc4e0ddda2ee6dbaceb9b852c8e87ecffb
MD5 2cbfe6172f65e9b38a54ad164c7822cb
BLAKE2b-256 0f0cd10afbb532c76258cfb997b45a28df53f4a1b7db0f18fc21f600553369b0

See more details on using hashes here.

File details

Details for the file ragit-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ragit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ragit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50c02fded14c9747c8912d32d82c45ce1db67b92d24b6959ac09e5592e5007a9
MD5 82f6e3c448864a5c1ad889b7198819d7
BLAKE2b-256 dab95e0a2919ba8ca11c1d6dda93ab9099091fbe1087bd775fabb6b3cbf6519a

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