-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in embedding_proxy.py #75
Comments
https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings |
@havvk
|
when i use this command to query 'python3 -m graphrag.query --data ./indexing/output/20240802-172944/artifacts --method local --community_level 2 "What are the top themes in this story?"' Error embedding chunk {'OpenAIEmbedding': "Error code: 422 - {'detail': [{'type': 'string_type', 'loc': ['body', 'input'], 'msg': 'Input should be a valid string', 'input': [3923, 527, 279, 1948, 22100, 304, 420, 3446, 30]}]}"} It's throw this error. I saw the input of this embeding is [3923, 527, 279, 1948, 22100, 304, 420, 3446, 30] , not string . Does anyone face same issue? |
@JayWu890225 Did you solve the problem ? I have same issue |
i also have the problem like : HTTP Request: POST http://localhost:11435/embeddings "HTTP/1.1 404 Not Found" |
actually i did not find root casue of this issue. I changed some code in embed method - embedding.py.
|
You should set api_base of embeddings to "http://localhost:11435/v1" in settings.yaml. |
I found solution here |
After running embedding proxy by embedding_proxy.py:
python embedding_proxy.py --port 11435 --host http://localhost:11434
I changed the api_base parameter to embedding proxy in settings.yaml :
Then I tried to run indexing by the new index_app.py, it failed at the end stage.
There are some errors in the embedding proxy:
It seems there is no data of usage coming from Ollma (model: nomic-embed-text:latest).
The text was updated successfully, but these errors were encountered: