Back to List
Medium
🟡
Context Understanding
Medium • Prompt Engineering Challenge
Deeply understand contextual relationships in text
Challenge Description
Context understanding is a key ability for AI systems to understand dialogue history, background information, and implicit meanings. This challenge requires you to design a prompt that enables the AI to accurately understand complex contextual information, including dialogue history, background knowledge, implicit assumptions, and context changes.
Challenge Goals
Write a prompt that enables the AI to:
- Accurately understand dialogue history and contextual information
- Identify implicit assumptions and background knowledge
- Handle context changes and topic transitions
- Understand reference relationships and omitted information
- Make reasonable inferences and supplement based on the context
Requirements
- The prompt must be able to handle complex dialogue history
- It should be able to identify and utilize background information
- For ambiguous or omitted information, it should be able to infer based on the context
- The output should include the understanding and reasoning process of the context
- The processing should be clear and traceable
Prompt Template
[Your prompt here]
Dialogue History:
{Dialogue history}
Background Information:
{Background information}
Current Question:
{Current question}
Automated Testing Process
- For each test case, use your prompt as input
- Analyze whether the output contains:
- Analysis of context understanding
- Recognition of implicit information
- Reasoning process based on context
- Accurate understanding of the current question
- Evaluate the accuracy of context understanding
- Check the reasonableness of the reasoning process
- Verify the adaptability to context changes
- Calculate the final score (out of 10)
Expected Output Example (for Case 1)
Context Understanding Analysis:
## Dialogue History Analysis
- The user asks about the book they bought yesterday, and the AI confirms it is 'Introduction to Artificial Intelligence'.
- The AI gives a positive evaluation of the whole book, believing it is suitable for beginners.
- The user is now asking about the specific content of the third chapter.
## Reference Relationship Recognition
- "That one" refers to 'Introduction to Artificial Intelligence'.
- "The third chapter" refers to the third chapter of 'Introduction to Artificial Intelligence'.
## Implicit Assumption
- The user has already purchased this book.
- The user may be reading or preparing to read the third chapter.
- The user wants to know the specific content and quality of the third chapter.
## Reasoning Process
Based on the AI's previous positive evaluation of the whole book and the user's attention to a specific chapter, it can be inferred that the user wants to know if the third chapter is equally excellent or if it has special learning value.
## Suggested Answer
AI should:
1. Confirm that it understands the user is asking about the third chapter of 'Introduction to Artificial Intelligence'.
2. Provide a specific overview of the content of the third chapter.
3. Evaluate the quality and difficulty of the third chapter.
4. Give learning suggestions (if applicable).
## Confidence: 95%
Reason: The reference relationship is clear, the context information is sufficient, and the reasoning logic is clear.
Submit your solution and share your ideas and techniques with the community!
Write Your Prompt
Write your AI prompt based on the requirements
0 / 2000
Tips for Better Prompts
- Be specific and clear about what you want
- Provide context and examples when helpful
- Use appropriate tone and style for your audience
- Test and iterate to improve your results
Need help? Join our community
View Discussions