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.1.tar.gz (199.8 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.1-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

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

Hashes for aa_rag-0.1.2.1.tar.gz
Algorithm Hash digest
SHA256 6d2ae7f7ec25f5bcf9747d2491ef07757eafcd3dcf5875622506c1f652648e5b
MD5 9464c5eecc08d0881d2ba42ac7119360
BLAKE2b-256 f3c5d2c06e259a30b7735119de3cee366323e6c6e128190bbb77cbcce48a531e

See more details on using hashes here.

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

Hashes for aa_rag-0.1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e4f71d3c5fba04cb7ec4b576271fdeafcf23c288b6636a59cf3ec10608447d
MD5 c852e8dc2c5014eff2744856651891a3
BLAKE2b-256 a4bef6e3382d7622c433b5cc1f6d3326a4fad0434cde2b2430286dd668756a32

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