These are two important concepts in Artificial Intelligence, especially when working with AI chatbots, AI agents, and tools like Google Antigravity.
Let's understand them with simple examples.
1. What is a Conversation?
A Conversation is an exchange of messages between a user and an AI.
What is Context?
Context is the information an AI uses to understand your current message and provide a relevant response.
Let's understand with an example.
Imagine you have this conversation:
You: I am learning PHP.
AI: Great! Are you learning any PHP framework?
You: Yes, Laravel 12.
AI: Excellent!
You: Teach me middleware.
Now, the AI has useful information:
- You are learning PHP.
- You are using Laravel 12.
- You want to understand middleware.
This information helps AI explain middleware using Laravel 12 examples.
This is called Context.
Without context, the AI might give you a generic explanation of middleware.
Types of Context in AI
There are several types of information that can become part of an AI's context.
1. System Context
Instructions that define how an AI should behave.
Example:
2. Conversation Context
Information from previous messages in the current conversation.
Example:
3. User Context
Information about the user that can help personalize responses.
Example:
4. Task Context
Information about the current task or project.
Example:
5. External Context
Information retrieved from external sources.
Examples:
- PDF documents
- Databases
- Websites
- APIs
- Project files