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

AI based alert thresholds #8530

Open
Vadman97 opened this issue May 10, 2024 — with Linear · 2 comments
Open

AI based alert thresholds #8530

Vadman97 opened this issue May 10, 2024 — with Linear · 2 comments

Comments

Copy link
Member

embedding based anomaly detection?

Copy link

linear bot commented May 10, 2024

Copy link

greptile-apps bot commented May 10, 2024

To implement AI-based alert thresholds with embedding-based anomaly detection, you'll need to integrate the embeddings functionality from /backend/embeddings/embeddings.go with the alerting mechanisms in /backend/alerts. Specifically:

  1. Use GetEmbeddings from embeddings.go to generate embeddings for error objects or sessions that you want to monitor for anomalies.
  2. Develop a new anomaly detection function in embeddings.go that utilizes these embeddings to identify outliers based on your specific threshold criteria.
  3. In alerts.go, add a new alert type for embedding-based anomalies. This involves creating a function to trigger alerts when anomalies are detected.
  4. Utilize the routing.go and sessionalerts.go for generating URLs and session alert objects related to the detected anomalies for notification purposes.
  5. For integration with external systems (Discord, Microsoft Teams, or webhooks), extend the functionalities in the respective directories under /backend/alerts/integrations to handle the new type of alerts.

This approach leverages existing structures for embeddings and alerts, focusing on the integration and expansion of these functionalities to support embedding-based anomaly detection.

References

/backend/alerts
/backend/embeddings

Ask Greptile

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

No branches or pull requests

1 participant