Skip to main content

A rag api for extending your applicaiton

Project description

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.

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

pyragapi-1.0.5.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

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

pyragapi-1.0.5-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pyragapi-1.0.5.tar.gz.

File metadata

  • Download URL: pyragapi-1.0.5.tar.gz
  • Upload date:
  • Size: 9.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyragapi-1.0.5.tar.gz
Algorithm Hash digest
SHA256 da6059a2564d3fbbf9ddf47119076b658f0187f9b932dc7eee10a022989b9436
MD5 4da90f96ce2458cce3fb622d8b889a18
BLAKE2b-256 24614283f1e4459aa63d4654bcb2eab89d3f9b83cacab39f609cf660e830bb3e

See more details on using hashes here.

File details

Details for the file pyragapi-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyragapi-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyragapi-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5e346adb7cca6e40d91c86ba68441fb924e3b7ada5d1b27d2334ac31433df322
MD5 edb5c2f39ff29d449878ad4d35ea4652
BLAKE2b-256 d58c080903830aa7be8eb4107b2a51da7e0bf5175a103a28adcc7a60f3c7b70b

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