Closed Mithrillion closed 4 weeks ago
Nevermind, the problem appears to be resolved after configuring rag_api image for host access in docker-compose.override.yaml
:
extra_hosts:
- "host.docker.internal:host-gateway"
It appears that unlike the main librechat container, rag_api is not configured for host network access by default.
using the
ghcr.io/danny-avila/librechat-rag-api-dev:latest
image, I have configured the RAG-related section in.env
as follows:I have tested with LocalAI API that using
curl
onlocalhost:8080/v1/embeddings
does work. However, it appears that LibreChat returns the following log sequence when attempting to upload a file:I have attempted to change the base url to without the v1, or
...v1/
, all without success. As I have successfully set up the LLM and TTS API using the same LocalAI instance, I think this might be an issue withrag_api
not posting to the right address or posting with incompatible format with LocalAI.I guess the issue might be easier to diagnose if I can see exactly what request is posted. However this does not seem to be visible even in the logs.