The RAG API
Query your documents powered by AI
Requirements
Have the following tools installed on your computer
- Git
- Docker
Usage
- Start by cloning the project.
git clone -b java-to-python-rag-app --single-branch <repo_url>
- Open the project with an IDE or a text editor
- 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
- Open a terminal and run:
docker-compose up --build
- 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:
- Open a terminal in your project directory and run the following commands
pip install pyragapi
- import the router from pyragapi.routers
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyragapi-1.0.5.tar.gz | 9.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|