Skip to main content

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

  1. OpenAI API Key:

    • Ensure your .env file includes the following line:
      OPENAI_API_KEY=<your_openai_api_key>
      
  2. Environment Setup:

    • Make sure your environment is properly configured to load environment variables from a .env file.

Installation

  1. Install the package from PyPI:

    pip install aa-rag
    
  2. Set up the .env file:

    • Create a .env file in the root directory of your project.
    • Add your OpenAI API key as described in the Requirements section.

Usage

  1. 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 -h to see the available options.

  2. 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 /default endpoint to watch the default parameters and the available models.

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:

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit your changes.
  4. Submit a pull request.

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

aa_rag-0.1.2.tar.gz (198.6 kB view details)

Uploaded Source

Built Distribution

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

aa_rag-0.1.2-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file aa_rag-0.1.2.tar.gz.

File metadata

  • Download URL: aa_rag-0.1.2.tar.gz
  • Upload date:
  • Size: 198.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for aa_rag-0.1.2.tar.gz
Algorithm Hash digest
SHA256 98a6929ce5cdb91d05fb1d22ef8d76c33c0681dc040f627f626aba52269bab6b
MD5 450a694c925b726537f58a3465026afc
BLAKE2b-256 ab764c96260cf6a15e11d4de76aedd47eb66839cf461107858eab9f09e6feffb

See more details on using hashes here.

File details

Details for the file aa_rag-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aa_rag-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for aa_rag-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e427c1c69f8f809e3ae56bace16c8ba458a214f8b61921d408896065dcb90d02
MD5 3aff33b2d45d0dfe5bab8b9de945345e
BLAKE2b-256 4087cf4c0b1f74882a2782a375cd29569890872e7207008ca1a350fa837718f3

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