fix: provided OpenAI API key and fixed docker-compose configuration to enable RAG service
This commit is contained in:
11
.env.example
11
.env.example
@@ -2,6 +2,9 @@
|
|||||||
# Deepseek API Key (for LLM in alfred)
|
# Deepseek API Key (for LLM in alfred)
|
||||||
DEEPSEEK_API_KEY=
|
DEEPSEEK_API_KEY=
|
||||||
|
|
||||||
|
# - ChatGPT/Open API
|
||||||
|
OPENAI_API_KEY=
|
||||||
|
|
||||||
OLLAMA_BASE_URL=
|
OLLAMA_BASE_URL=
|
||||||
OLLAMA_MODEL=
|
OLLAMA_MODEL=
|
||||||
|
|
||||||
@@ -25,8 +28,8 @@ QBITTORRENT_PASSWORD=adminadmin
|
|||||||
DEBUG_LOGGING=false
|
DEBUG_LOGGING=false
|
||||||
DEBUG_CONSOLE=false
|
DEBUG_CONSOLE=false
|
||||||
|
|
||||||
# Required security keys
|
# Postgres (RAG)
|
||||||
JWT_SECRET=
|
POSTGRES_DB=
|
||||||
JWT_REFRESH_SECRET=
|
POSTGRES_USER=
|
||||||
CREDS_KEY=
|
POSTGRES_PASSWORD=
|
||||||
CREDS_IV=
|
CREDS_IV=
|
||||||
|
|||||||
@@ -79,7 +79,11 @@ services:
|
|||||||
container_name: alfred-rag
|
container_name: alfred-rag
|
||||||
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:${RAG_VERSION}
|
image: ghcr.io/danny-avila/librechat-rag-api-dev-lite:${RAG_VERSION}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
- DB_HOST=vectordb
|
||||||
|
- DB_PORT=5432
|
||||||
- RAG_PORT=${RAG_PORT:-8000}
|
- RAG_PORT=${RAG_PORT:-8000}
|
||||||
ports:
|
ports:
|
||||||
- "${RAG_PORT:-8000}:${RAG_PORT:-8000}"
|
- "${RAG_PORT:-8000}:${RAG_PORT:-8000}"
|
||||||
@@ -89,10 +93,8 @@ services:
|
|||||||
container_name: alfred-vectordb
|
container_name: alfred-vectordb
|
||||||
image: pgvector/pgvector:0.8.0-pg16-bookworm
|
image: pgvector/pgvector:0.8.0-pg16-bookworm
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
env_file:
|
||||||
- POSTGRES_DB=${VECTOR_DB_NAME:-vectordb}
|
- .env
|
||||||
- POSTGRES_USER=${VECTOR_DB_USER:-postgres}
|
|
||||||
- POSTGRES_PASSWORD=${VECTOR_DB_PASSWORD:-postgres}
|
|
||||||
ports:
|
ports:
|
||||||
- "${VECTOR_DB_PORT:-5432}:5432"
|
- "${VECTOR_DB_PORT:-5432}:5432"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user