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

Installation

If you want to install it for cpu only, you can run:

$ pip install rago[cpu]

But, if you want to install it for gpu (cuda), you can run:

$ pip install rago[gpu]

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.3.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

rago-0.3.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rago-0.3.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.0 Linux/6.11.0-9-generic

File hashes

Hashes for rago-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c673a8308e86cfafc11f68ffe009f8bcb2f09c9a4534b474db8c894673baef84
MD5 805f7eb58e35bc306a571b45d5b3822e
BLAKE2b-256 ab0b3b7684465365f6ade063550e7aab4ae7393c306b40d47e83e2770f0665f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rago-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.0 Linux/6.11.0-9-generic

File hashes

Hashes for rago-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc6d17fdd6a45393201221877bdc3a4f58517aecca0afb552e0822d1c845e1b4
MD5 a375084708a6851e8a28eab775ccf3b7
BLAKE2b-256 13fd0d57f8e10add116d84788b3d54fe233a5a3afe341a91c53dac49c136d235

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