Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Minor prompt variation causes model to fail retrieving information from the web #199

Answered by james-pplx
ahmedkooli asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ahmedkooli ! This is a very interesting phenomenon you're coming across here, which goes back to general best practices of prompt engineering, which at times may be more art than science :) .

Why I believe this happens

At the high level, our retrieval system operates in two key phases:

  1. Query Parsing & Web Search – The model extracts relevant terms and runs a search.
  2. Response Generation – The model synthesizes retrieved data into a coherent response.

When using user_prompt_1, Sonar focuses purely on retrieving information about the company (via the desired web search). However, adding "Describe your findings." in user_prompt_2 might be shifting the model’s focus away from direct ret…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ahmedkooli
Comment options

@james-pplx
Comment options

Answer selected by james-pplx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants