How can I view the number of tokens used via the Phoenix panel?
You can view the number of tokens used (prompt, completion, and total) for each LLM invocation directly in the Phoenix UI. The token count is displayed in the trace details, with a tooltip that breaks down prompt and completion tokens separately, provided the model or integration supplies this information in the trace data. See TokenCount.tsx and UI documentation.If token counts are missing, it may be due to the model/provider not supplying them (especially in streaming mode), or the integration not passing them through. For best results, ensure your LLM integration provides token usage in the expected format; Phoenix will display it automatically if present. For more, see Slack discussion.Would you like more detail on troubleshooting missing token counts or on how to ensure your integration provides them?Sources: - TokenCount.tsx - Tracing and Evals with MongoDB and Llama Index - Slack discussion
馃挕聽Hint: Mention RunLLM in the thread for followups.
