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.2.tar.gz (200.2 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.2-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aa_rag-0.1.2.2.tar.gz
Algorithm Hash digest
SHA256 72326323b6f45f8886a98eb9f867290d376d7c53d7a0fcd3c5ead842cc85b522
MD5 1977e3ee5a80c394228302c3d98308b1
BLAKE2b-256 1a466ca3598cfc930b5113c4cfb0e4c461c959eb01f0b953e40c0a724c662192

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aa_rag-0.1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6db20ce45c3310cb8cfe80ce1990d82bcc2444addfb4c15acc8d785c45bfa675
MD5 3a246dd849df1d2ed4d5a927c17503a6
BLAKE2b-256 dd2e0fcac19032d4d5ba7cfec41a84b1ded919db961811285931c771a1f66c1a

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