Skip to content

Conversation

mongodben
Copy link
Collaborator

Jira: https://jira.mongodb.org/browse/EAI-1272

Changes

  • Add docs page for context engineering. based on experience w/ the current chatbots in development
  • Added placeholder for the soon-to-be-created Evaluation guide since the context engineering guide links to it

Notes


## GPT-4.1 Prompting Guide

The [GPT-4.1 Prompting Guide](https://cookbook.openai.com/examples/gpt4-1_prompting_guide) is an excellent general reference for prompting and context engineering. The OpenAI team wrote the guide specifically for the GPT-4.1 family of models, though its applicable to all LLMs. The MongoDB Responses API uses GPT-4.1 under the hood, so this guide is particularly applicable.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to remember to update this in the future if we switch model (versions)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, good point. i think it's a great general reference. but openai has also published one for GPT-5 https://cookbook.openai.com/examples/gpt-5/gpt-5_prompting_guide

Comment on lines +44 to +48
1. Contextualizing what the model about where it is and what it should do.
1. Telling the model how to format its output
1. Providing user-specific information to keep in mind
1. How and when the model should use tools
1. Key facts or pieces of knowledge that the model should always consider when responding
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Contextualizing what the model about where it is and what it should do.
1. Telling the model how to format its output
1. Providing user-specific information to keep in mind
1. How and when the model should use tools
1. Key facts or pieces of knowledge that the model should always consider when responding
1. Contextualizing what the model about where it is and what it should do.
2. Telling the model how to format its output
3. Providing user-specific information to keep in mind
4. How and when the model should use tools
5. Key facts or pieces of knowledge that the model should always consider when responding

it looks like this numbered list renders correctly on the github review tool but probably should fix the numbering (it's all ones) here anyway

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually valid markdown. it's saying "put the numbers in order". this way you dont need to update all numbers if you add element to list.

Copy link
Collaborator

@hschawe hschawe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requesting 1 minor change but approved!

@mongodben mongodben merged commit c68bd9e into main Aug 26, 2025
1 check passed
@mongodben mongodben deleted the EAI-1272 branch August 26, 2025 14:59
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.

2 participants