Question: Is StructuredQueryOutputParser compatible with GPT-3.5 for nested filters? #31113
Unanswered
zyloveslego
asked this question in
Q&A
Replies: 0 comments
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.
-
Checked other resources
Commit to Help
Example Code
...which throws a
OutputParserException
due to the missing closing parenthesis.Note: Using
gpt-4-turbo
instead produces the correct output.However, when using
gpt-3.5-turbo
, the consistently often collapses all conditions into theor(...)
clause, and fails to close the parentheses properly.I’ve tried adding more structurally complex few-shot examples, but it still happens.
Switching to
gpt-4-turbo
significantly reduce the issue.Notebook reference:
self_query_hotel_search.ipynb
, cell [20].System Info
langchain==0.3.24
langchain-chroma==0.2.3
langchain-community==0.3.22
langchain-core==0.3.56
langchain-elasticsearch==0.3.2
langchain-openai==0.3.12
langchain-text-splitters==0.3.8
Beta Was this translation helpful? Give feedback.
All reactions