Skip to content

fix: adjust prompt for serp cluster tool to avoid parse errors#123

Open
nshelia wants to merge 1 commit into
jina-ai:mainfrom
nshelia:json-parse-error-serp-cluster
Open

fix: adjust prompt for serp cluster tool to avoid parse errors#123
nshelia wants to merge 1 commit into
jina-ai:mainfrom
nshelia:json-parse-error-serp-cluster

Conversation

@nshelia

@nshelia nshelia commented Aug 5, 2025

Copy link
Copy Markdown

issue

prompt in the serp cluster doesn't go well with gemini models ( 2.5-flash tested) and causes to output invalid JSON because it includes markdown json tildas. Removing "Respond in JSON" fixes the issue

how to reproduce

prompt which causes the JSON parse issue.

https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%5B%221vNeDyEpCwLcad4knh-ROHgxseiNJOInC%22%5D,%22action%22:%22open%22,%22userId%22:%22117685563781048697479%22,%22resourceKeys%22:%7B%7D%7D&usp=sharing

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

Successfully merging this pull request may close these issues.

1 participant