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:
app.py
- contains the server code.chat.py
- contains the language model.chain.py
- contains the chain for retrieval-augmented-generation.embed.py
- contains the embedding and index (vector database) code.config.py
- for development/production purposes