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: Option to detect and visualize repetitive text blocks #2422

Open
1 task done
kripper opened this issue Dec 21, 2024 · 1 comment
Open
1 task done

🚀 Feature: Option to detect and visualize repetitive text blocks #2422

kripper opened this issue Dec 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kripper
Copy link

kripper commented Dec 21, 2024

Which component is this feature for?

All

🔖 Feature description

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 TraceLoop 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 TraceLoop to treat it as just one block that contains variables.
This way we could add it a custom label and only see:

image

Additional information

No response

🎤 Why is this feature needed ?

To make it easier to trace and analyze prompts.

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@dosubot dosubot bot added the enhancement New feature or request label Dec 21, 2024
@nirga
Copy link
Member

nirga commented Dec 21, 2024

Nice @kripper! Definitely something we want to support. FWIW we do support reporting this manually - https://www.traceloop.com/docs/openllmetry/tracing/versions

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

No branches or pull requests

2 participants