/apc-rambot

Generative AI Chatbot of the Rams with Naive RAG and Azure

Primary LanguageHTMLMIT LicenseMIT

Rambot

Generative AI Chatbot of the Rams with Naive RAG and Azure

Install dependencies:

pip install -r requirements.txt

Set environment variables:

VECTOR_STORE_ADDR=<ai_search_endpoint>
VECTOR_STORE_KEY=<ai_search_privatekey>
AZ_OAI_ENDPOINT=<azure_openai_endpoint>
AZ_OAI_KEY=<azure_openai_key>
AZ_OAI_VER=2024-02-01
AZ_OAI_DEPLOYMENT=<azure_openai_embeddings_deployment_name>

Run (dev):

export FLASK_ENV=development
flask run

or

python app.py

Codebase:

  1. app.py - contains the server code.
  2. chat.py - contains the language model.
  3. chain.py - contains the chain for retrieval-augmented-generation.
  4. embed.py - contains the embedding and index (vector database) code.
  5. config.py - for development/production purposes