Back to prompts

transform_to_mongo_pipeline

extraction0 savesSource

Transform natural language queries into MongoDB pipeline expressions by analyzing the provided JSON schema, enabling seamless integration of user requests into database operations. This tool is useful for developers looking to streamline data retrieval processes with MongoDB.

Prompt Text

By checking json schema, you can understand how to create a pipeline expression from natural language query

Evaluation Results

1/28/2026
Overall Score
3.09/5

Average across all 2 models

Best Performing Model
Low Confidence
anthropic:claude-3-5-haiku
3.23/5
anthropic:claude-3-5-haiku
#1 Ranked
3.23
/5.00
adh
2.7
cla
4.3
com
2.6
In
125
Out
3,926
Cost
$0.0158
google:gemini-2.5-flash-lite
#2 Ranked
2.96
/5.00
adh
2.5
cla
4.1
com
2.2
In
95
Out
3,998
Cost
$0.0016
openai:gpt-5-mini
#3 Ranked
0.00
/5.00
adh
0.0
cla
0.0
com
0.0
In
0
Out
0
Cost
$0.0000
Test Case:

Tags