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: add Segment AI requests events (NLU-775) #569

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abuyak-vf
Copy link
Contributor

@abuyak-vf abuyak-vf commented Aug 10, 2023

Send Segment events during AI requests.

Brief description. What is this change?

Added segment calls to save events when calling AI models.

Setup information

Events:

  • AI Request

Action types:

  • AI Response Step
  • AI Set Step
  • KB Page
  • KB Fallback
  • AI Global No Match

Deployment Notes

Related Ticket

NLU-775

@abuyak-vf abuyak-vf marked this pull request as draft August 10, 2023 02:00
@abuyak-vf abuyak-vf force-pushed the abuyak/KL-add-segment-AI-events/NLU-775 branch from 3ae0975 to 8eedd82 Compare August 10, 2023 03:59
@abuyak-vf abuyak-vf force-pushed the abuyak/KL-add-segment-AI-events/NLU-775 branch from 969830a to 70f5d89 Compare September 7, 2023 16:32
@abuyak-vf abuyak-vf changed the title feat: add Segment AI requests events feat: add Segment AI requests events (NLU-683) Sep 7, 2023
Copy link
Member

@DecathectZero DecathectZero left a comment

Choose a reason for hiding this comment

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

I think for all segment events, we should do this async, don't need to await it. It should run in the background to be non-blocking to the response.

If there is an error, we can .catch it and log it, but doesn't need to be part of the main interaction thread.

@abuyak-vf abuyak-vf changed the title feat: add Segment AI requests events (NLU-683) feat: add Segment AI requests events (NLU-775) Sep 7, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

35.3% 35.3% Coverage
0.0% 0.0% Duplication

@trs
Copy link
Collaborator

trs commented Sep 7, 2023

I think for all segment events, we should do this async, don't need to await it. It should run in the background to be non-blocking to the response.

If there is an error, we can .catch it and log it, but doesn't need to be part of the main interaction thread.

We're actually adding the analytics SDK to this repo, which will make this easier (https://voiceflow.atlassian.net/browse/PL-556)

@abuyak-vf abuyak-vf force-pushed the abuyak/KL-add-segment-AI-events/NLU-775 branch from 81036e8 to 7dbdddd Compare September 23, 2023 00:56
@abuyak-vf abuyak-vf force-pushed the abuyak/KL-add-segment-AI-events/NLU-775 branch 6 times, most recently from bfa8886 to b61452f Compare October 6, 2023 02:12
@abuyak-vf abuyak-vf force-pushed the abuyak/KL-add-segment-AI-events/NLU-775 branch from b61452f to 218ed26 Compare October 6, 2023 02:22
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.

None yet

3 participants