🐳 feat: RAG for Default Docker Compose Files + Docs Update (#2246)

* refactor(deploy-compose.yml): use long-syntax to avoid implicit folder creation of librechat.yaml

* refactor(docker-compose.override.yml.example): use long-syntax to avoid implicit folder creation of librechat.yaml

* chore: add simple health check for RAG_API_URL

* chore: improve axios error handling, adding `logAxiosError`

* chore: more informative message detailing RAG_API_URL path

* feat: add rag_api and vectordb to default compose file

* chore(rag.yml): update standalone rag compose file to use RAG_PORT

* chore: documentation updates

* docs: Update rag_api.md with images

* Update rag_api.md

* Update rag_api.md, assistants clarification

* add RAG API note to breaking changes
This commit is contained in:
Danny Avila 2024-03-29 21:15:36 -04:00 committed by GitHub
parent 6a6b2e79b0
commit 56ea0f9ae7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 306 additions and 74 deletions

View file

@ -156,6 +156,17 @@ const AppService = async (app) => {
};
}
try {
const response = await fetch(`${process.env.RAG_API_URL}/health`);
if (response?.ok && response?.status === 200) {
logger.info(`RAG API is running and reachable at ${process.env.RAG_API_URL}.`);
}
} catch (error) {
logger.warn(
`RAG API is either not running or not reachable at ${process.env.RAG_API_URL}, you may experience errors with file uploads.`,
);
}
app.locals = {
socialLogins,
availableTools,