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.


Requirements

  1. OpenAI API Key:

    • The service supports only the OpenAI interface style.
    • 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.
    • For complete details on how to configure the application using environment variables and a .env file, please see the Configuration Parameters document.

Installation

Installation via PyPI

Install the package from PyPI:

pip install aa-rag

Installation via Source Code

You can choose one of the following installation methods: uv (recommended) or requirements.txt.

Option 1: UV Installation (Recommended)

  1. Install uv:

    • On macOS, it is recommended to use Homebrew:
      brew install uv
      
    • For other operating systems, please refer to the uv installation guide.
  2. Clone the Repository:

    git clone https://github.com/continue-ai-company/aa_rag.git
    cd aa_rag
    
  3. Synchronize Dependencies:

    • Install dependencies as specified in the uv.lock file:
      uv sync
      
    • This command will create the virtual environment in the current project directory and install all necessary dependencies.

Option 2: Installation via requirements.txt

  1. Clone the Repository:

    git clone https://github.com/continue-ai-company/aa_rag.git
    cd aa_rag
    
  2. Environment Setup:

    • You can use your existing Python environment or create a new one, based on your preference.
  3. Install Dependencies:

    pip install -r requirements.txt
    

Usage

  1. Start the Web Server:

    • If you installed the package via PyPI, you can run the server using the following command:

      aarag
      
    • If you installed the package from source code and are using the uv tool, you can run the server using the following command:

      uv run aarag
      
    • If you installed the package from source code and are using the requirements.txt file, you can run the server using the following command:

        source ./.venv/bin/activate
        export PYTHONPATH=$(pwd)/src # Set the PYTHONPATH to the src directory
        python -m aa_rag.main
      
  2. Access the API Documentation:

    • Open your browser and navigate to:
    http://localhost:222/docs
    
    • This page provides an interactive Swagger UI to explore and test all available APIs.

Features

  • Full support for 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.3.1.tar.gz (206.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.3.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aa_rag-0.1.3.1.tar.gz
Algorithm Hash digest
SHA256 af718b43bf66162a06c341c78c5a339c02b3bbf49887f941b2a398082f4eb4f6
MD5 ed59a6907aaec6afa971a0603c0e0360
BLAKE2b-256 1df855c9151a7b81905e6a175e2192f937b7526d9ffd99dc95a2fb5cbe0ab441

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aa_rag-0.1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d438287d4dbb70772e92523fc5fd72c427ed17cc027e380654dbab0e01c0df5
MD5 f6a3357362933fd366d97d768f61e579
BLAKE2b-256 5ed8bf990372efb753c3e0e2a487fbff1aafa80d6f8daa9700ca43ad054b83f3

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