Query Playground
Query Playground
Section titled “Query Playground”TeamLoop’s query system goes beyond simple search. It provides temporal intelligence - the ability to query knowledge as it existed at any point in time.
Query Modes
Section titled “Query Modes”TeamLoop supports four query modes, each serving different use cases:
1. Current Mode (Default)
Section titled “1. Current Mode (Default)”Queries the latest version of all knowledge.
When to use:
- “What’s our current authentication approach?”
- “Who owns the payment service?”
- “What decisions are active for the API?”
Example:
teamloop_query: query: "authentication approach" mode: "current"2. As-Of Mode (Point-in-Time)
Section titled “2. As-Of Mode (Point-in-Time)”Queries knowledge as it existed on a specific date.
When to use:
- “What was our auth approach before the refactor?”
- “What decisions were active during the Q2 incident?”
- “What did we know when we made that choice?”
Example:
teamloop_query: query: "authentication" mode: "as_of" as_of: "2024-06-15"3. Evolution Mode (Time Range)
Section titled “3. Evolution Mode (Time Range)”Shows how knowledge changed over a period.
When to use:
- “How has our database strategy evolved this year?”
- “What infrastructure decisions changed in Q3?”
- “Track the authentication journey from start to now”
Example:
teamloop_evolution: query: "database architecture" from_date: "2024-01-01" to_date: "2024-12-31"Output includes:
- Events grouped by month
- Decision supersession chains
- New entities added
- Status changes
4. Compare Mode (Diff Two Dates)
Section titled “4. Compare Mode (Diff Two Dates)”Compares knowledge state between two points in time.
When to use:
- “What changed between Q1 and Q3 planning?”
- “Compare our auth decisions from last year to now”
- “What knowledge was added after the security audit?”
Example:
teamloop_compare: query: "security decisions" date_a: "2024-01-01" date_b: "2024-07-01"Output shows:
- ➕ Added - New entities
- ➖ Removed - Entities no longer active
- 🔀 Superseded - Replaced decisions
- ✓ Unchanged - Stable knowledge
Timeline Queries
Section titled “Timeline Queries”Get chronological views of your knowledge:
Semantic Timeline
Section titled “Semantic Timeline”Query by topic to see relevant events over time:
teamloop_timeline: query: "payment processing" limit: 20Entity Lineage
Section titled “Entity Lineage”Track a specific entity’s decision chain:
teamloop_timeline: entity_id: "uuid-of-entity"Shows:
- What this decision superseded
- What superseded this decision
- Full lineage chain
Practical Examples
Section titled “Practical Examples”Incident Investigation
Section titled “Incident Investigation”Scenario: Something broke in production. What decisions led to this?
# 1. Find current stateteamloop_query: query: "payment service configuration" mode: "current"
# 2. Check what it was before the incidentteamloop_query: query: "payment service configuration" mode: "as_of" as_of: "2024-11-01" # Day before incident
# 3. See what changedteamloop_compare: query: "payment service" date_a: "2024-10-01" date_b: "2024-11-02"Architecture Review
Section titled “Architecture Review”Scenario: Preparing for an architecture review, need historical context.
# 1. Get evolution of the systemteamloop_evolution: query: "user service architecture" from_date: "2024-01-01" to_date: "2024-12-31"
# 2. Build timeline of decisionsteamloop_timeline: query: "user service decisions" limit: 50Onboarding Context
Section titled “Onboarding Context”Scenario: New team member needs to understand why things are the way they are.
# 1. Current state overviewteamloop_query: query: "authentication and authorization architecture" mode: "current"
# 2. Historical evolutionteamloop_evolution: query: "authentication" from_date: "2023-01-01" to_date: "2024-12-31"
# 3. Key decision lineageteamloop_timeline: entity_id: "current-auth-decision-id"Source Filtering
Section titled “Source Filtering”Filter queries to specific integrations:
teamloop_query: query: "API design" sources: "github" # Only GitHub
teamloop_query: query: "product roadmap" sources: "notion,linear" # Notion and LinearTips for Effective Queries
Section titled “Tips for Effective Queries”Be Specific
Section titled “Be Specific”# Too broadquery: "decisions"
# Betterquery: "database technology decisions"
# Bestquery: "PostgreSQL vs MySQL decision for user service"Use Temporal Context
Section titled “Use Temporal Context”# When investigating past issuesmode: "as_of"as_of: "date-before-issue"
# When preparing reviewsfrom_date: "quarter-start"to_date: "quarter-end"Build Incrementally
Section titled “Build Incrementally”- Start with
currentmode - Extract entities to knowledge graph
- Use
evolutionto understand history - Use
timelinefor specific entity chains
Query Performance
Section titled “Query Performance”- First queries may be slower (fetching from integrations)
- Subsequent queries benefit from cached knowledge
- Temporal queries require existing knowledge graph data
- Use
sourcesfilter to limit scope when possible
Next Steps
Section titled “Next Steps”- Knowledge Graphs - How entities are stored
- Subgraphs - Organize query results
- MCP Tools Reference - Full tool documentation