-
Notifications
You must be signed in to change notification settings - Fork 307
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
[QUESTION] Exception encountered when running Pathway RAG App in WSL #94
Comments
Hi, I assume you are running the Adaptive RAG that is referenced at the bottom. This exception is thrown from the Adaptive RAG while attempting to parse the model response. In the case of Adaptive RAG, model responses need to be JSON parsable strings. Can you make sure that your LiteLLM chat instance has the For example: $llm_model: "ollama/mistral"
$llm: !pw.xpacks.llm.llms.LiteLLMChat
model: $llm_model
retry_strategy: !pw.udfs.ExponentialBackoffRetryStrategy
max_retries: 6
cache_strategy: !pw.udfs.DiskCache
temperature: 0
top_p: 1
format: "json"
api_base: "http://localhost:11434" Here, |
Hey, can you check again if your
I think that AdaptiveRAG could also work, but for that remove the line:
it asks the LLM to return json, and not every chat works well with that. |
Hi, thanks for your quick response. Unfortunately, neither suggestion helped. Using the second suggestion I get the following error when posting a prompt: 2025-02-19 10:21:49 pathway_engine.engine.dataflow ERROR APIConnectionError: litellm.APIConnectionError: 'name' But, as I said, it works in a Docker container on Windows with the same app.yaml configuration. |
@robertjak issue seems to be with the litellm, I think it is the same with this one. You can try updating the litellm with If none of the above works, you may try installing an older version with |
thanks, but I'm still getting the same error, even when using the same version as in the docker (1.44.28). It seems to be an issue with Litellm. |
Hello,
I was following the tutorial Real-Time AI Pipeline with DeepSeek, Ollama and Pathway trying to run the Pathway RAG App without Docker container directly on the WSL (Windows 11) when I after a prompt to the http://0.0.0.0:8000/v1/pw_ai_answer encountered the following error in the app.py script:
2025-02-14 12:13:35 pathway_engine.engine.dataflow ERROR JSONDecodeError: Expecting ':' delimiter: line 3 column 32 (char 61) in operator 154. Occurred here:
Line: answer = answer.select(answer=extract_answer(pw.this.answer))
File: /home/rjak/.local/lib/python3.12/site-packages/pathway/xpacks/llm/question_answering.py:56
Function: _query_chat_strict_json
2025-02-14 12:13:35 pathway_engine.engine.dataflow ERROR Error value encountered in filter condition, skipping the row in operator 163.
2025-02-14 12:13:35 pathway_engine.engine.dataflow ERROR Error value encountered in filter condition, skipping the row in operator 177.
The Docker container works fine. Please help.
The text was updated successfully, but these errors were encountered: