🔧 chore(base.py): add logging statement to teardown method for debugging purposes
🔧 chore(base.py): call dispose method on database engine instance in teardown method to properly release resources
🔧 chore(base.py): set database engine instance to None in teardown method to ensure proper cleanup
🐛 fix(utils.py): pass session id to process_graph function to ensure unique session id for each client
🐛 fix(base.py): pass session id to setup_callbacks function to ensure unique session id for each client
The LangfuseInstance class is a temporary implementation that will be replaced by a plugin system in the future. This class provides methods for creating, getting, updating, and tearing down an instance of Langfuse. It uses the Langfuse library and credentials from the settings module to create the instance. If no credentials are found, the instance is set to None. The update method resets the instance and creates a new one. The teardown method flushes the instance and sets it to None.
🔀 diff --git a/docs/docs/guides/langfuse_integration.mdx b/docs/docs/guides/langfuse_integration.mdx
🔀 index db23bbdc..51aba962 100644
🔀 --- a/docs/docs/guides/langfuse_integration.mdx
🔀 +++ b/docs/docs/guides/langfuse_integration.mdx
🔀 @@ -1,35 +1,49 @@
🔀 -import ThemedImage from "@theme/ThemedImage";
🔀 -import useBaseUrl from "@docusaurus/useBaseUrl";
🔀 -import ZoomableImage from "/src/theme/ZoomableImage.js";
🔀 -import ReactPlayer from "react-player";
🔀 -
🔀 # Integrating Langfuse with Langflow
🔀🔀 +## Introduction
🔀 +
🔀 +Langfuse is an open-source tracing and analytics tool designed for LLM applications. Integrating Langfuse with Langflow provides detailed production traces and granular insights into quality, cost, and latency. This integration allows you to monitor and debug your Langflow's chat or APIs easily.
🔀 +
🔀 ## Step-by-Step Instructions
🔀🔀 ### Step 1: Create a Langfuse account
🔀🔀 -1. Go to [https://langfuse.com](https://langfuse.com) and click on the "Sign In" button in the top right corner.
🔀 +1. Go to [Langfuse](https://langfuse.com) and click on the "Sign In" button in the top right corner.
🔀 2. Click on the "Sign Up" button and create an account.
🔀 -3. Click on "Settings" and then on "Create new API keys"
🔀 +3. Once logged in, click on "Settings" and then on "Create new API keys."
🔀 4. Copy the Public key and the Secret Key and save them somewhere safe.
🔀 - {/* Add env variables LANGFLOW_LANGFUSE_SECRET_KEY, LANGFLOW_LANGFUSE_PUBLIC_KEY and LANGFLOW_LANGFUSE_HOST to pass to CallbackHandler */}
🔀 + {/* Add
🔧 chore(base.py): refactor get_langfuse_callback function to improve readability and maintainability
🔧 chore(base.py): refactor get_result_and_steps function to improve readability and maintainability
🔧 chore(settings.py): add LANGFUSE_SECRET_KEY and LANGFUSE_PUBLIC_KEY optional settings
🔒 chore(poetry.lock): update typing-extensions package version to >=4.5,<5
🔒 chore(poetry.lock): update cohere package version to 4.20.0
📦 chore(poetry.lock): update coverage package version to 7.3.0
🔀 chore(poetry.lock): update python-versions constraint to >=3.8
🚀 feat(coverage): update coverage package to version 7.3.0
The coverage package has been updated to version 7.3.0. This update includes new wheel files for various platforms and their corresponding hashes.
🔒 chore: update coverage package dependencies
The coverage package dependencies have been updated to version 7.3.0. This commit includes the updated wheel files and their corresponding hashes.
🔒 chore(poetry.lock): update ctransformers to version 0.2.22
🔒 chore(poetry.lock): update exceptiongroup to version 1.1.3
🔒 chore(poetry.lock): update google-cloud-aiplatform to version 1.30.1
🔒 chore(poetry.lock): update langsmith to version 0.0.22
🔒 chore(poetry.lock): update metaphor-python to version 0.1.14
🔒 chore(poetry.lock): update pandas-stubs to version 2.0.3.230814
🔒 chore(poetry.lock): update pypdf to version 3.15.1
🔒 chore(poetry.lock): update tenacity to version 8.2.3
🔒 chore(poetry.lock): update tornado version from 6.3.2 to 6.3.3 to fix security vulnerability
🔒 chore(poetry.lock): update types-pytz version from 2023.3.0.0 to 2023.3.0.1 to fix typing stubs
🔒 chore(poetry.lock): update validators version from 0.20.0 to 0.21.0 to improve data validation
🔒 chore(poetry.lock): update watchfiles version from 0.19.0 to 0.19.0 (no changes)
ℹ️ The code was modified to handle a case where the `template` attribute is not present in the `PromptVertex` class. If the `template` attribute is not found, the code checks if the `prompt` attribute is present and uses its `template` attribute instead. This change ensures that the code does not break when the `template` attribute is missing.
🐛 fix(base.py): change the error message when _built_object is None to provide more specific information and handle the case when _built_object is an instance of UnbuiltObject