Skip to main content

Aquiles-RAG is a high-performance Retrieval-Augmented Generation (RAG) solution built on Redis. It offers a high-level interface through FastAPI REST APIs

Project description

Aquiles-RAG

Llada Logo

Description

Aquiles-RAG is a high-performance Retrieval-Augmented Generation (RAG) solution built on Redis. It offers a high-level interface through FastAPI REST APIs to:

  • Create RAG indexes in Redis.
  • Send raw text alongside its embeddings (the client must chunk the text and compute embeddings before submission).
  • Query the index to retrieve the most relevant chunks.

Features

  • Optimized Performance: Uses Redis as a vector search engine.
  • Simple API: Endpoints for index creation, insertion, and querying.
  • Extensible: Basic implementation ready for enhancements and integration into ML pipelines.

High-Level Architecture

Here's a diagram illustrating how Aquiles-RAG connects clients to Redis using an asynchronous FastAPI server:

diagram

Usage

Create Index

curl -X POST http://localhost:5500/create/index \
     -H 'Content-Type: application/json' \
     -d '{"indexname": "my_index"}'

Send RAG

curl -X POST http://localhost:5500/rag/create \
     -H 'Content-Type: application/json' \
     -d '{
           "index": "my_index",
           "raw_text": "Full text goes here...",
           "embeddings": [0.12, 0.34, ...]
         }'

Query RAG

curl -X POST http://localhost:5500/rag/query-rag \
     -H 'Content-Type: application/json' \
     -d '{
           "index": "my_index",
           "embeddings": [0.56, 0.78, ...],
           "top_k": 5
         }'

Command-Line Interface (CLI)

Usage Examples

# Save configuration
aquiles-rag configs --local True --host redis.local --port 6380

# Start server
aquiles-rag serve

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

aquiles_rag-0.1.9.tar.gz (630.4 kB view details)

Uploaded Source

Built Distribution

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

aquiles_rag-0.1.9-py3-none-any.whl (618.2 kB view details)

Uploaded Python 3

File details

Details for the file aquiles_rag-0.1.9.tar.gz.

File metadata

  • Download URL: aquiles_rag-0.1.9.tar.gz
  • Upload date:
  • Size: 630.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for aquiles_rag-0.1.9.tar.gz
Algorithm Hash digest
SHA256 12c48a8ab2fb5cf2e60e3bd650d49579e3b15408e49a2b9c53fdd7e9226b00f0
MD5 957d207e5fcaef47be8a0882ac8b6755
BLAKE2b-256 0c642b2c3509a4cad26d34e4cb94d4abfe64624be2cd34735da396379365c702

See more details on using hashes here.

File details

Details for the file aquiles_rag-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: aquiles_rag-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 618.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for aquiles_rag-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 13948d92cf2f9b089d94ad576faf87816b09c0812f4c571bde76f15d9b7fc3ac
MD5 249e82b523ed06e1888b84a661d99985
BLAKE2b-256 d9cf11b3169c46a6952ecc6dbe20b0e8f404cc3850fabaa821b95227432982a5

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