PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
22.33k stars 1.35k forks source link

fix(product-assistant): trim redundant queries in the schema generator #26425

Closed skoob13 closed 5 days ago

skoob13 commented 5 days ago

Problem

When a conversation has more than two messages, we output all previously generated schemas. In practice, it doesn't make sense because it doesn't provide any context but rather pollutes if previous steps have weirdness (excessive breakdowns or filters).

Changes

Does this work well for both Cloud and self-hosted?

No

How did you test this code?

Unit tests, manual testing.