Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Option to detect and visualize repetitive text blocks #379

Open
kripper opened this issue Dec 21, 2024 · 3 comments
Open
Labels

Comments

@kripper
Copy link

kripper commented Dec 21, 2024

Describe the feature or potential improvement

When tracing agents, it's common to see prompts that combine a) variable text and b) static text defined in templates that are included in multiple prompts (for example, a system prompt).

It would be nice if LangTrace cuold identify repetitive text patterns (prompt templates) and visualize them in other color, inside a text container that can be labeled, expanded and collapsed.

Example

Let's say we traced this input prompt:

image

We can now click the text block and assign it a custom label:

image

When viewing other prompts that contain the same text block, it will be displayed using our custom label:

image

This feature will make it much more easier to analyze prompts.

Optional

Please also consider that some templates have variables inside.
Eg: "The current date is {{date}} and the current time is {{time}}."

In this case, we would see this:

image

It would be nice if we could tell LangTrace to treat it as just one block that contains variables.
This way we could add it a custom label and only see:

image

@karthikscale3
Copy link
Contributor

Hi @kripper , thanks for creating this request. This is definitely a great suggestion. We will look into adding this feature pretty soon and update once it's live.

Quick question: What agent framework are you using?

@kripper
Copy link
Author

kripper commented Dec 23, 2024

What agent framework are you using?

Multiple, but now focused on openhands.

@github-actions github-actions bot added the stale label Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

This issue has been automatically marked as stale due to inactivity. It will be closed in 3 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants