mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* refactor: re-purpose `resendImages` as `resendFiles` * refactor: re-purpose `resendImages` as `resendFiles` * feat: upload general files * feat: embed file during upload * feat: delete file embeddings on file deletion * chore(fileConfig): add epub+zip type * feat(encodeAndFormat): handle non-image files * feat(createContextHandlers): build context prompt from file attachments and successful RAG * fix: prevent non-temp files as well as embedded files to be deleted on new conversation * fix: remove temp_file_id on usage, prevent non-temp files as well as embedded files to be deleted on new conversation * fix: prevent non-temp files as well as embedded files to be deleted on new conversation * feat(OpenAI/Anthropic/Google): basic RAG support * fix: delete `resendFiles` only when true (Default) * refactor(RAG): update endpoints and pass JWT * fix(resendFiles): default values * fix(context/processFile): query unique ids only * feat: rag-api.yaml * feat: file upload improved ux for longer uploads * chore: await embed call and catch embedding errors * refactor: store augmentedPrompt in Client * refactor(processFileUpload): throw error if not assistant file upload * fix(useFileHandling): handle markdown empty mimetype issue * chore: necessary compose file changes
33 lines
666 B
YAML
33 lines
666 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
vectordb:
|
|
image: ankane/pgvector:latest
|
|
environment:
|
|
POSTGRES_DB: mydatabase
|
|
POSTGRES_USER: myuser
|
|
POSTGRES_PASSWORD: mypassword
|
|
volumes:
|
|
- pgdata2:/var/lib/postgresql/data
|
|
ports:
|
|
- "5433:5432"
|
|
|
|
rag_api:
|
|
image: ghcr.io/danny-avila/librechat-rag-api-dev:latest
|
|
environment:
|
|
- DB_HOST=vectordb
|
|
- DB_PORT=5432
|
|
- POSTGRES_DB=mydatabase
|
|
- POSTGRES_USER=myuser
|
|
- POSTGRES_PASSWORD=mypassword
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./uploads/temp:/app/uploads/temp
|
|
depends_on:
|
|
- vectordb
|
|
env_file:
|
|
- .env
|
|
|
|
volumes:
|
|
pgdata2:
|