RAG server for ai2apps.
Project description
aa-rag
Description
RAG Server for AI2APPS. This server provides a Retrieval-Augmented Generation (RAG) API to support advanced AI applications. It leverages OpenAI's API for its core functionality.
Requirements
The current service supports only the OpenAI interface style
-
OpenAI API Key:
- Ensure your
.envfile includes the following line:OPENAI_API_KEY=<your_openai_api_key>
- Ensure your
-
Environment Setup:
- Make sure your environment is properly configured to load environment variables from a
.envfile.
- Make sure your environment is properly configured to load environment variables from a
Installation
-
Install the package from PyPI:
pip install aa-rag
-
Set up the
.envfile:- Create a
.envfile in the root directory of your project. - Add your OpenAI API key as described in the Requirements section.
- Create a
Usage
-
Start the Web Server:
- Run the following command:
aarag
- if you want to change the port or host, you can use like this:
aarag -server.host 127.0.0.1 --server.port 8788
You can also run
aarag -hto see the available options. - Run the following command:
-
Access the API Documentation:
- Once the server starts, open your browser and navigate to:
http://localhost:222/docs - This page provides an interactive Swagger UI to explore and test all available APIs.
- You can navigate to the
/defaultendpoint to watch the default parameters and the available models.
- Once the server starts, open your browser and navigate to:
Features
- Fully supports OpenAI API integrations.
- Interactive API documentation using Swagger UI.
- Simplified RAG workflow for AI applications.
GitHub
Find the source code and related projects on GitHub and AI2APPS.
License
This project is licensed under the MIT License.
Support
For any issues or feature requests, please open a ticket in the GitHub Issues.
Contributing
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Submit a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aa_rag-0.1.2.1.tar.gz.
File metadata
- Download URL: aa_rag-0.1.2.1.tar.gz
- Upload date:
- Size: 199.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d2ae7f7ec25f5bcf9747d2491ef07757eafcd3dcf5875622506c1f652648e5b
|
|
| MD5 |
9464c5eecc08d0881d2ba42ac7119360
|
|
| BLAKE2b-256 |
f3c5d2c06e259a30b7735119de3cee366323e6c6e128190bbb77cbcce48a531e
|
File details
Details for the file aa_rag-0.1.2.1-py3-none-any.whl.
File metadata
- Download URL: aa_rag-0.1.2.1-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1e4f71d3c5fba04cb7ec4b576271fdeafcf23c288b6636a59cf3ec10608447d
|
|
| MD5 |
c852e8dc2c5014eff2744856651891a3
|
|
| BLAKE2b-256 |
a4bef6e3382d7622c433b5cc1f6d3326a4fad0434cde2b2430286dd668756a32
|