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

feat(insights): generate trends using GenAI #24463

Merged
merged 51 commits into from
Sep 4, 2024
Merged

feat(insights): generate trends using GenAI #24463

merged 51 commits into from
Sep 4, 2024

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Aug 19, 2024

✨ Experimental Trends Generation using GenAI

This PR brings an experimental chat generating a Trends query made during the Product Analytics Hackathon. It's capable of generating a schema of a basic Trends query by using natural language and tuning. What it can currently do:

  • Ask some simple questions
  • Use most of the schema properties including series, property filters, internal/test user filters, group filters, breakdowns, visualization types, formula mode, sampling, etc.
  • Generate new queries based on previous follow-up questions.
Screenshot 2024-09-02 at 16 43 43

More info

@Twixes Twixes changed the title feat: Clippy feat: Hedgehogslity Aug 22, 2024
@PostHog PostHog deleted a comment from posthog-bot Sep 2, 2024
@PostHog PostHog deleted a comment from github-actions bot Sep 2, 2024
@PostHog PostHog deleted a comment from posthog-bot Sep 2, 2024
@skoob13 skoob13 requested a review from a team September 3, 2024 08:12
@skoob13 skoob13 marked this pull request as ready for review September 3, 2024 08:13
@skoob13 skoob13 changed the title feat: Hedgehogslity feat(insights): generate trends using GenAI Sep 3, 2024
posthog/api/query.py Outdated Show resolved Hide resolved
* event (String) - name of the event.
* properties (custom type) - additional properties of the event. Properties can be of multiple types: String, Int, Decimal, Float, and Bool. A property can be an array of thosee types. A property always has only ONE type. If the property starts with a $, it is a system-defined property. If the property doesn't start with a $, it is a user-defined property. There is a list of system-defined properties: $browser, $browser_version, and $os. User-defined properties can have any name.

Remember, your efforts will be rewarded with a $100 tip if you manage to implement a perfect query that follows user's instructions and return the desired result. Do not hallucinate.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, are we bribing the model? 😂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This used to be a proven of improving results 😄 These days I'm not sure it's as effective, as everyone is tuning their models, but can't hurt I suppose

@Twixes Twixes enabled auto-merge (squash) September 4, 2024 16:11
Copy link
Contributor

github-actions bot commented Sep 4, 2024

Size Change: +1.58 kB (+0.14%)

Total Size: 1.12 MB

Filename Size Change
frontend/dist/toolbar.js 1.12 MB +1.58 kB (+0.14%)

compressed-size-action

@Twixes Twixes merged commit 025f019 into master Sep 4, 2024
92 of 93 checks passed
@Twixes Twixes deleted the hedgehogslity branch September 4, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Prevents stale-bot from marking the PR as stale.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants