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(top_k=3),
    generation=LlamaGen(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.5.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

rago-0.5.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rago-0.5.0.tar.gz
  • Upload date:
  • Size: 9.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.5.0.tar.gz
Algorithm Hash digest
SHA256 4482e9752f64aad477113c18cbd531bf158f4ec3f8dc3fdd6c4b3bae2e5e2807
MD5 d11f53cbc917a7b678fc0f81fb14ac97
BLAKE2b-256 7cb6a7c52a537ff3d47621a364f24d851f3b762527d690d096d8714866bbd0c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rago-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1cc77dd8f96c6ce8574272af96ad4e3c1cf35032024979b76241f7978d1557
MD5 0126b37ba0129eac54e6a82915589c00
BLAKE2b-256 a4d13fe16299f1b4eafd512659fbc7504a548f6e7606b7f20e54ddda76d592e5

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