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

Add a planId to generations, log generations & user feedback #394

Merged
merged 6 commits into from
Oct 21, 2024

Conversation

nichochar
Copy link
Contributor

@nichochar nichochar commented Oct 21, 2024

We want to save logs of our AI generations, so we can improve the accuracy over time with prompt and architecture improvements.

For this, we implement an architecture which does 2 things:

  • if analytics are enabled, send LLM generation log to our logging API
  • if user clicks thumbs up / thumbs down, send that to our feedback API with a reference to the log

Note: this could leverage a third party tool like langsmith, traceloop et. al, but I don't want to commit to one of these yet and it's not particularly hard to log (what's not ideal is that we don't have a standardized logging system).

This PR also adds a modal for users to be able to give more context in the case of a negative thumbs down action
CleanShot 2024-10-21 at 10 34 03

@nichochar nichochar changed the title Add a planId to generations, for feedback referencing Add a planId to generations, log generations & user feedback Oct 21, 2024
@nichochar nichochar marked this pull request as ready for review October 21, 2024 04:32
@nichochar nichochar merged commit 6681946 into main Oct 21, 2024
3 checks passed
@nichochar nichochar deleted the unique-id-generations branch October 21, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant