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=SentenceTransformerAug(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.7.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

rago-0.7.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rago-0.7.0.tar.gz
  • Upload date:
  • Size: 10.9 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.7.0.tar.gz
Algorithm Hash digest
SHA256 6f21ea860f360c76a5b594de8975e5811f889e039e2426dd16cf46f5a11cf50a
MD5 7ca61d5acdd73e84701a54fd9315e507
BLAKE2b-256 b534b0514d488ffc1d8c714903a90481ffb64c2612d03496b664525ab68c93fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rago-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a0a72d2fefcb738b85888c74f66a183e8399cccfc4f6e0b4a73afa0aebd15f
MD5 cae8c227cee22c4840fc1fd66a786b59
BLAKE2b-256 9eb4fd3b4df4fe88a0f1332be78af499e96739ae00ae222ce8b70c8ddd52b5d8

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