Skip to content
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

Too many retries trying to get the correct output format. Try simplifying the requirements.', {'subquestions': "ValueError('json output should start and end with { and }')"}) #629

Open
javanan opened this issue Feb 20, 2025 · 1 comment

Comments

@javanan
Copy link

javanan commented Feb 20, 2025

backend-1 | 2025-02-20 02:34:46,913 - app.rag.chat:215 - ERROR - ('Too many retries trying to get the correct output format. Try simplifying the requirements.', {'subquestions': "ValueError('json output should start and end with { and }')"})
backend-1 | Traceback (most recent call last):
backend-1 | File "/app/app/rag/chat.py", line 212, in chat
backend-1 | for event in self._chat():
backend-1 | File "/app/app/rag/chat.py", line 700, in _chat
backend-1 | ) = yield from self._search_kg(
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/app/rag/chat.py", line 278, in _search_kg
backend-1 | sub_queries = graph_index.intent_analyze(
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/app/rag/knowledge_graph/base.py", line 237, in intent_analyze
backend-1 | intents = self._intents.analyze(chat_content)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/app/rag/knowledge_graph/intent.py", line 77, in analyze
backend-1 | return self.intent_anlysis_prog(query=query).subquestions
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/usr/local/lib/python3.11/site-packages/dspy/primitives/program.py", line 26, in call
backend-1 | return self.forward(*args, **kwargs)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/app/rag/knowledge_graph/intent.py", line 67, in forward
backend-1 | return self.prog(query=query)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/usr/local/lib/python3.11/site-packages/dspy/primitives/program.py", line 26, in call
backend-1 | return self.forward(*args, **kwargs)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/usr/local/lib/python3.11/site-packages/dspy/functional/functional.py", line 369, in forward
backend-1 | raise ValueError(
backend-1 | ValueError: ('Too many retries trying to get the correct output format. Try simplifying the requirements.', {'subquestions': "ValueError('json output should start and end with { and }')"})

Not finished
Sources
Empty
Answer
This chatbot is in Beta.
All generated information should be verified prior to use.
Failed to generate response
Encountered an error while processing the chat. Please try again later.

Image
@Mini256
Copy link
Member

Mini256 commented Feb 28, 2025

Which model are you currently using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants