RAG API don't use openai /embeddings #12791
Unanswered
pasengier-smartwork
asked this question in
Troubleshooting
Replies: 1 comment 2 replies
|
You've mixed up two different URLs.
To use llama.cpp as the embeddings backend, configure it on the RAG API side:
|
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What happened?
I'm trying to get RAG_API working with llamacpp server wich offer a openai compatible api.
Parameters are :
RAG_API_URL=http://127.0.0.1:8080
EMBEDDINGS_PROVIDER=openai
The local API is called but with URL /embed and not data in the body.
logs from api :
srv log_server_r: done request: POST /embed 127.0.0.1 404
srv log_server_r: request:
srv log_server_r: response: {"error":{"message":"File Not Found","type":"not_found_error","code":404}}
I tried rewriting the url with nginx, but the body is still empty.
embedding tested with curl :
curl --request POST --url http://localhost:8080/embeddings --header "Content-Type: application/json" --data '{"input": "Hello embeddings"}' --silent
[{"index":0,"embedding":[[0.06244239956140518,0.03484318032860756,-0.016207346692681313,0.04565286263823509,-0.014398101717233658,-0.017415624111890793,-0.0071379863657057285,0.004529181402176619,0.012829050421714783,0.01....
Thanks for LibreChat !!
Version Information
7cf8b84
Steps to Reproduce
Use this parameters :
RAG_API_URL=http://127.0.0.1:8080
EMBEDDINGS_PROVIDER=openai
try uploading a file
What browsers are you seeing the problem on?
Firefox
Relevant log output
Screenshots
No response
Code of Conduct
All reactions