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

docs: Security in Langfuse (docs, cookbook, blog post) #1922

Open
5 tasks
marcklingen opened this issue Apr 30, 2024 · 0 comments
Open
5 tasks

docs: Security in Langfuse (docs, cookbook, blog post) #1922

marcklingen opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels

Comments

@marcklingen
Copy link
Member

marcklingen commented Apr 30, 2024

Goal

It is easy to monitor LLM Security tools in Langfuse as scores. It'd be helpful to include docs, cookbook and a blog post on how to do this.

Design

Langfuse is running async when integrating with applications. We do not want to have this as a native feature but want to help people understand how to use open source solutions for LLM security and then monitor it in Langfuse

  • Data model in tracing: Safety check can be a span
    • Helpful to measure how long the safety check take as they are most likely blocking
    • Attach scores to the safety check span for each safety check that's done

Library to use in examples

While this will work with any library (it just creates a score which is logged to Langfuse), we'll need to reference one specific library across examples. We can always add other libraries or switch later on.

Options (not exhaustive, see list for more):

  • llm guard
  • promptamour
  • nemo guardrails

Let's use LLM Guard for the examples across cookbooks and blog post.

Dimensions

  • see input/output scanners mentioned in security library docs

Output

  • Docs page in docs/security as explainer
  • Cookbook implementing security and logging it to langfuse in a "recommended way"
  • Blog post on "Implementing and continuously monitoring Open Source LLM Security"
  • Section for next newsletter
  • Video demo based on the cookbook
@marcklingen marcklingen added the docs label May 1, 2024 — with Linear
@marcklingen marcklingen self-assigned this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant