From 77ef64b69e5d458f16a688cce373f2dcffcbe205 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Sun, 5 May 2024 17:23:41 -0400 Subject: [PATCH] Added RAG --- .env.example | 2 +- docker-compose.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 7028e485..4b27d389 100644 --- a/.env.example +++ b/.env.example @@ -111,7 +111,7 @@ ANTHROPIC_API_KEY=sk-ant-api03-6b0Vg33VrXpxmVALpTlGJu90IvfrIbW5Q8wEamdnk1Es4mg6e # Azure # #============# -AZURE_API_KEY= +AZURE_API_KEY_ENV= # Note: these variables are DEPRECATED # Use the `librechat.yaml` configuration for `azureOpenAI` instead diff --git a/docker-compose.yml b/docker-compose.yml index f1c57d74..fa63e831 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,15 +66,16 @@ services: image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest container_name: haa-libre-chat-rag-api environment: - DB_HOST: datadb + DB_HOST: docsdb POSTGRES_DB: ${POSTGRES_DATA_DB} POSTGRES_USER: ${POSTGRES_DATA_USER} POSTGRES_PASSWORD: ${POSTGRES_DATA_PASSWORD} RAG_PORT: ${RAG_PORT:-8000} - RAG_OPENAI_API_KEY: ${AZURE_API_KEY} + RAG_AZURE_OPENAI_API_KEY: ${AZURE_API_KEY_ENV} EMBEDDINGS_PROVIDER: azure EMBEDDINGS_MODEL: text-embedding-ada-002 AZURE_OPENAI_ENDPOINT: https://dkopenai2.openai.azure.com/ + DEBUG_RAG_API: "True" restart: always depends_on: - docsdb