Polly is in beta. Your feedback on Polly is invaluable as the team refines its capabilities.
Polly appears in the right-hand bottom corner of the following locations within LangSmith UI, optimized for different use cases:
Tracing page
On an individual trace, Polly pulls in the context of the page and analyzes the run. Polly reads the run data and trajectory to help you understand what happened and identify areas for improvement. To ask Polly about your tracing:- In your Tracing Projects, click on a trace to view its details page.
- Select a run in the trace.
- Open Polly in the right-hand corner of the page to ask questions relating to this run.
-
Ask Polly a question about your data. You can use the sample questions or you might ask questions like:
- âIs there anything that the agent could have done better here?â
- âWhy did this run fail?â
- âWhat took the most time in this trace?â
- âWhat errors occurred during this run?â
- âSummarize what happened in this traceâ
Thread view
Under the Threads tab, Polly analyzes conversation threads by pulling in relevant information about the user interaction. This helps you understand user sentiment and conversation outcomes. To ask Polly about your threads:- Select a thread.
- Open Polly in the right-hand corner of the page to ask questions relating to this thread.
-
Ask Polly a question about the conversation thread. You might ask questions like:
- âDid the user seem frustrated?â
- âWhat issues is the user experiencing?â
- âHow did this conversation resolve?â
- âWas the userâs problem solved?â
- âWhat was the main topic of this thread?â
Prompt Playground
When you open a prompt in the Playground, Polly can help you edit and improve your prompts based on your instructions. Polly reads the prompt and makes suggested edits. To ask Polly about your prompt:- Enter the Playground from the left-hand navigation or trace view.
- Select a prompt to experiment with.
- Open Polly in the right-hand corner of the page to work on this prompt.
-
You can use one of the automated options that Polly suggests:
- Optimize prompt: Polly will analyze the current prompt and make edits to the prompt with a summary of the changes.
- Generate a tool: Give details to Polly on the tool you would like to add. It will generate a tool for your prompt template. It can also help you modify existing tooling or system messages about tooling. Then, have Polly test tool configurations with reviews of sample output from the model using the tool.
- Generate an output schema: Polly will create a JSON schema that defines the structure of the output you want the model to generate. This is useful when you need the model to return data in a specific format. Select this option, and then provide Polly with the type of data, fields/properties, and any other constraints you might need.
- âMake it respond in Italianâ
- âAdd more context about the userâs roleâ
- âMake the tone more professionalâ
- âSimplify the instructionsâ
- âAdd examples to the promptâ

Whatâs next
Learn more about the features that Polly helps you explore:Observability
Learn more about tracing and monitoring your LLM applications
Threads
Understand how threads work in LangSmith
Prompt Engineering
Create and iterate on prompts in the playground
Evaluation
Evaluate and test your applications systematically
