-
Notifications
You must be signed in to change notification settings - Fork 26
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: Langfuse integration, system-wide tracing configuration (LangSmith&Langfuse) #253
Conversation
@maciejmajek Such a great idea to have an open-source alternative for paid services! Please document how to use Langfuse (and LangSmith if possible). I think new users might not know that it's possible. How about adding it to: |
7e4c901
to
bf7a1b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions, rather minor
docs/tracing.md
Outdated
|
||
When enabled, LangSmith tracing will automatically be set up with the following environment variables: | ||
|
||
### Langfuse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would always start with the open source option when reading from the top, and make the distinction extra clear, i.e.:
Langfuse (open-source)
LangSmith (closed-source, paid)
docs/developer_guide.md
Outdated
@@ -94,6 +94,7 @@ agent.invoke({"messages": ["Please pick up an object and scan it."]}) | |||
|
|||
Additional resources: | |||
|
|||
- [Tracing](tracing.md) configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [Tracing](tracing.md) configuration. | |
- [Tracing](tracing.md) configuration for AI models. |
Important step for full open-source tool set |
> implement get_tracing_callbacks for system wide use cases fix: proper config parsing
Apply suggestions from code review Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> docs: rewrite tracing.md (prioritize open source solution), fix misleading info
236bc4e
to
11299c0
Compare
Purpose
Tracing agents is crucial for debugging, transparency, safety and more. At the moment, the code only works with LangSmith tracing (a paid solution). RAI has to provide an alternative, like LangFuse.
Proposed Changes
What does this PR add, remove or fix?
Issues
Testing
Setup langfuse: https://langfuse.com/docs/deployment/local
Go to http://localhost:3000, create account, organization and project.
configure langfuse tracing in config.toml
Add the config to the main agent.invoke