-
Type:
Story
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
- When no results are returned after running a search stage, display a “Diagnose this issue” button in the preview that opens MongoDB Assistant.
- This button will open the assistant preloaded with the stage operator, index name, and stage value, plus a prompt instructing it to diagnose why the search returned no results.The assistant will display the current pipeline and respond to the question.
- display text: Diagnose why my aggregation pipeline is not returning results.
prompt: The user's ${context.stageOperator} stage with index "${context.indexName}" returned no results. <input>${context.stageValue}</input> If tools are available, use the `get-current-pipeline` tool to inspect the full pipeline and use the `collection-indexes` tool to check what search indexes exist on this collection. Diagnose why the $search stage returned no results and provide concise, actionable guidance the user can follow without leaving Compass.