where is the search/filtering syntax for searching spans in the web ui documented? e.g. span_kind == 'LLM'
The search/filtering syntax for searching spans in the Phoenix web UI uses Python boolean expressions, such as span_kind == 'LLM'. This syntax is documented at this page, which provides examples and explains that the same expressions used in the .where() method of the Python SDK can be entered directly into the UI search bar.You can filter on span attributes, use logical operators like and, and perform substring searches with the in operator. However, filtering is only applied to each span itself, not to child spans, and some advanced features (like filtering by event parameters) are not currently supported in the UI. Would you like more detail or code examples?Sources:
- How to Apply Filters (UI)
- Slack discussion: search/filtering syntax and child span limitations
💡 Hint: Mention RunLLM in the thread for followups.
yeah, but it looks like maybe it’s “just python(ic)” ? metadata["user_id"] == 23599 works. and so does "Search" in name
That's right. We use the standard Python lexer and parser for the query DSL
That link from the bot looks right
