- Find concepts: Search for “frustrated users” even when they never use that word.
- Discover patterns: Identify traces with similar issues or behaviors.
- Ask questions: Query like “where did the agent give up?” instead of keyword matching.
- Surface edge cases: Find unusual interactions you didn’t anticipate.
- Analyze sentiment: Locate traces with specific emotional tones.
Enable deep search
To use deep search, you must enable the deep search feature flag and ensure OpenAI is configured. Deep search relies ongpt-4o-mini and gpt-4o for semantic evaluation.
For self-hosted deployments, deep search requires version
v1.1.23 or later.-
Enable the feature flag.
- Go to Settings > Feature flags.
- Find Deep search.
- Toggle it on.
-
Check OpenAI configuration.
- Go to Settings > AI providers.
- Verify OpenAI is configured with an API key.
- If not configured, add your OpenAI API key.
Run a deep search query
Deep search runs in the Loop panel on the Logs page.- Go to the Logs page in your project.
- Click Loop .
- In the Loop panel, click Deep search.
- Enter a natural language query.
Understand results
Deep search results stream into Loop. They are ordered by semantic relevance, not chronologically. The most relevant traces appear first. Each result shows:- Input: The user request or prompt.
- Output: The response.
- Quote: The specific text excerpt that matched your query.
Apply results as filter
Convert deep search results to a table filter:- Review the traces in Loop.
- Click Apply as table filter. The logs table filters to just the found traces.
- Optionally, save this view for later.
Combine with other filters
Deep search works alongside other filtering:- Apply SQL filters or tag filters first to narrow the search space.
- Run deep search on the filtered results.
- Filter to
metadata.environment = "production". - Deep search for “frustrated users”.
Query examples
Find user struggles
Find user struggles
- Users asked for clarification multiple times
- The interaction seemed confused or frustrated
- The application failed to understand the request
Identify frustrated users
Identify frustrated users
- Negative sentiment in messages
- Complaints or criticism
- Repeated failed attempts
Locate happy interactions
Locate happy interactions
- Users expressed satisfaction or thanks
- Interactions completed successfully
- Positive sentiment throughout
Find specific behaviors
Find specific behaviors
- The application declined to respond
- Safety or policy limitations were hit
- Requests were out of scope
Surface errors without keywords
Surface errors without keywords
- Incomplete responses
- Wrong information provided
- User confusion or dissatisfaction
Discover edge cases
Discover edge cases
- Don’t fit common patterns
- Show unexpected user behavior
- Reveal uncommon use cases
Query tips
Be specific
Be specific
Describe what you're looking for
Describe what you're looking for
Focus on behavior or output
Focus on behavior or output
Ask questions naturally
Ask questions naturally
Deep search vs SQL
Choose the right tool for your task:| Use case | Tool | Example |
|---|---|---|
| Exact field matches | SQL | metadata.user_id = "user_123" |
| Numeric thresholds | SQL | latency > 2000 |
| Semantic patterns | Deep search | ”frustrated users” |
| Concept discovery | Deep search | ”where things went wrong” |
| Complex conditions | SQL | cost > 0.10 AND error IS NULL |
| Sentiment analysis | Deep search | ”happy customers” |