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

The project build via the uv tool. To install the project from source code, follow these steps:

  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.

Optional

If you want to install the package with the online extra, you can use the following command:

pip install "aa-rag[online]" # install package with pip
uv sync --extras online # install package with uv

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
      
  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.

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.3.7.tar.gz (282.9 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.3.7-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aa_rag-0.3.7.tar.gz
Algorithm Hash digest
SHA256 e6bdba875e9c62ad8eecc92ddb23d670c2d58a2bae7c4bcb240308a80f13a996
MD5 6e991c12861409a887df04bec8b0bdc1
BLAKE2b-256 e0c358dbd9d3c61e48b92378ffcc29031f7817e62db3f78d05b225705aa0fb53

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aa_rag-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4b824ddfcb445d31e60675ea82c4e398fc85f36350bbaeea3cc66e1d393770d6
MD5 0e55d9510451afbeb1cdbfb08e7439e2
BLAKE2b-256 e1fed28d62abda7e3ab5a65ab06df14c0e6af16ef37df0796489fd5683742de9

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