Skip to main content

The RAG API

Query your documents powered by AI

Requirements

Have the following tools installed on your computer

  • Git
  • Docker

Usage

  1. Start by cloning the project.
    git clone -b java-to-python-rag-app --single-branch <repo_url>
  1. Open the project with an IDE or a text editor
  2. In the project root directory, rename the .env.example file to .env and fill in the values

    Note: Make sure that the container_name of the qdrant service in the docker-compose.yaml file matches the QDRANT_HOST in the .env file

  3. Open a terminal and run:
    docker-compose up --build
  1. Once the download is complete and the applicaiton has been started, go the http://localhost:8000/docs to use the api.

Use the api as a module

If you want to use the api to extend your application capabilities with rag support already made, please follow these steps:

  1. Open a terminal in your project directory and run the following commands
    pip install pyragapi
  1. import the router from pyragapi.routers
  2. link it to your fastapi instance

Note: Do not forget to create a .env file and fill in the values.

Metadata

Release files for pyragapi 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyragapi 1.0.5
File Size Uploaded
pyragapi-1.0.5.tar.gz 9.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyragapi 1.0.5
File Interpreter ABI Platform
pyragapi-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 MB

Release files / pyragapi-1.0.5.tar.gz

Download URL pyragapi-1.0.5.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
da6059a2564d3fbbf9ddf47119076b658f0187f9b932dc7eee10a022989b9436
BLAKE2b-256 checksum
How to use checksums
24614283f1e4459aa63d4654bcb2eab89d3f9b83cacab39f609cf660e830bb3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / pyragapi-1.0.5-py3-none-any.whl

Download URL pyragapi-1.0.5-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e346adb7cca6e40d91c86ba68441fb924e3b7ada5d1b27d2334ac31433df322
BLAKE2b-256 checksum
How to use checksums
d58c080903830aa7be8eb4107b2a51da7e0bf5175a103a28adcc7a60f3c7b70b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page