Comments (1)
The changes in Langflow v1.0 affecting Langfuse record logging stem from new callback handling mechanisms and their integration. Here's a concise overview to address the logging issues:
-
Callback Handlers: Langflow v1.0 introduces
StreamingLLMCallbackHandler
andAsyncStreamingLLMCallbackHandler
for sync and async operations, respectively. The choice between these handlers impacts how records are logged in Langfuse, especially regarding the timing and order of operations. -
Dynamic Callback Setup: The
setup_callbacks
function now dynamically sets up callbacks based on operation mode and integrates plugin callbacks, including Langfuse. This could affect logging if Langfuse callbacks have specific requirements not correctly accounted for after the upgrade. -
Langfuse Callback Integration: The integration process involves initializing a Langfuse callback with credentials and trace information through the
get_langfuse_callback
function. Any changes or issues here could lead to incorrect logging. -
Flush Mechanism: The
flush_langfuse_callback_if_present
function ensures all pending records are logged in Langfuse by calling theflush
method of the Langfuse callback. Changes in the management or timing of this operation could impact logging.
To resolve logging issues, ensure the correct callback handler is used, review and update Langfuse callback integration, verify the flush mechanism is correctly triggered, and test the entire flow. Detailed insights and potential solutions can be found in the source code and migration guide available on the project's GitHub repository.
Details
Sources
- src/backend/langflow/services/plugins/langfuse_plugin.py
- docs/docs/migration/migrating-to-one-point-zero.mdx
- docs/docs/migration/migrating-to-one-point-zero.mdx
- src/backend/langflow/processing/base.py
- src/backend/langflow/api/v1/callback.py
- src/backend/base/langflow/processing/base.py
- src/backend/base/langflow/services/plugins/langfuse_plugin.py
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from langflow.
Related Issues (20)
- Faiss search error HOT 2
- The outout of the Chat Input is not been recognized as text by OpenAI model HOT 4
- Error Building Component Error building Component Astra DB: {"errors":[{"message":"Request invalid: field 'command.name' value \"english-test\" not valid. Problem: must match \"[a-zA-Z][a-zA-Z0-9_]*\".","errorCode":"COMMAND_FIELD_INVALID"}]} HOT 1
- ValidationError: 2 validation errors for HumanMessage at v1.0.0a59 HOT 2
- Encountering error in building ASTRA DB Search node in the canvas. Error Building Component Error building Component Astra DB Search: Invalid inputs provided. HOT 4
- API Request ERROR HOT 3
- [Feature Request]: Allow local cassandra connections
- idea
- [Request] Please add openrouter as LLM Model
- Nested chats HOT 1
- Module langflow.inputs not found HOT 1
- CommandError: Multiple head revisions are present for given argument 'head'; please specify a specific target revision, '<branchname>@head' to narrow to a specific head, or 'heads' for all heads HOT 1
- Questions about Run Flow HOT 1
- An error was thrown while using the groq component HOT 1
- Question: Hugging Face API HOT 1
- Issue with Chat Input component HOT 5
- Question: Inquiry on Session Management and Parameter Passing in Langflow API HOT 3
- Langflow Store Suspension HOT 1
- Documentation to use Flow as Tool HOT 3
- Method not Allowed on API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langflow.