Skip to main content

Rago is a lightweight framework for RAG

Project description

Rago

Rago is a lightweight framework for RAG.

Features

  • Support for Hugging Face
  • Support for llama

Setup

Llama 3

In order to use a llama model, visit its page on huggingface and request your access in its form, for example: https://huggingface.co/meta-llama/Llama-3.2-1B.

After you are granted access to the desired model, you will be able to use it with Rago.

you will also need to provide a hugging face token in order to download the models locally, for example:

rag = Rago(
    retrieval=StringRet(animals_data),
    augmented=HuggingFaceAug(k=3),
    generation=LlamaV32M1BGen(apikey=HF_TOKEN),
)
rag.prompt('Is there any animals larger than a dinosaur?')

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

rago-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

rago-0.2.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file rago-0.2.0.tar.gz.

File metadata

  • Download URL: rago-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for rago-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8a785ecb7a2929afcc3ca561189083e29679b04f345d097097b0ac67ab03e44
MD5 32177a4fb8c6ddd80e80b675ba4be523
BLAKE2b-256 0451449805526036a6e90bb2e17fed35b5d36f1fbb7f58db88eae2f8661cff5a

See more details on using hashes here.

File details

Details for the file rago-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rago-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for rago-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c65be607270771fc2201948e456aea5bb5c92cf3d9abb3236b157e5e863ec9a3
MD5 6e7a720949054057090e178c955c5bc8
BLAKE2b-256 b15c8d7c73495dbc1013bf5c28247e761a63e6e4c9566ba2479fc3ef6e55fddc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page