Langfuse

L

Langfuse

Langfuse is the open source LLM Engineering Platform. This is our Community Discord.

Join

support

self-host-support

get-support

feedback

feature-suggestion

self-host-discussion

announcements-releases

Paul - Hi. I am trying to integrate langflow an...

Hi. I am trying to integrate langflow and langfuse. I have a flow, with a llm(ChatInput- Prompt- LLM- ChatOutput), and I would like to see in the preview section the input that I put in the ChatInput component as input, and as output the text that is received by the ChatOutput component. My case: I can see the trace in langfuse, but if I click on it, in the preview section, the input and the output fields are null. On the other hand, the info of the trace, alongside the info of each component(ex: ChatInput with the input field, and other fields). I can see each component and their data seems correct. Did I miss something during the setup? Langflow: lastest version Langfuse: 2.78...

sickness272 - Is it possible to create a score ...

Is it possible to create a score config through python sdk? Cant find anything...

Dan - I am using the decorator to track a custo...

I am using the decorator to track a custom function within a trace that has a generation that isn’t supported by langfuse. It’s tracking in Langfuse, but it’s showing up as a separate trace form the rest of my Langchain Chain. Is there a way to add this to the current trace instead of creating a new trace just for this step in the chain?
Solution:
Yes! I'd recommend to wrap the outer function with observe(). Have a look here for an example: https://langfuse.com/docs/integrations/langchain/tracing#interoperability

stargazer - Hi langfuse community, I am getting...

Hi langfuse community, I am getting this error with version 2.44.1 using observe decorator. Anyone else has the same issue? httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol....

how to programatically setup a chat

how to programatically setup a chat template with langfuse js sdk?

name

Hello, I can't find a way to get these scores from the python SDK. The closest I got was the object DatasetRunItem. Could I get some help, please?
No description

name

Hello, I saw on the docs that SSO enforcement required an enterprise license. Does that mean SSO can still be implemented, and it’s just the enforcement that requires Enterprise? Also is there a more comprehensive list of features that come with the Enterprise license?

name

Ok, don't know what's going on (since I restarted and deleted the Kernel a couple times). But I decided to start a new notebook and follow the tutorial exactly. It authenticated. Don't know what I was overwriting in my old version, but it's working on the new notebook and I'll just transfer my prompt calls over there. 🙂

Null values when using Haystack integration

Hi everyone! I've been checking the documentation to setup Haystack / Langfuse using the existing integration. Main problem I am facing right now is that I'm receiving nulls as input/output/metadata. Current setup: Ubuntu 22.04 running self-hosted Langfuse, launching the Haystack code from the very same machine locally. Things that work:...
No description

hey @Marc

hey @Marc yesterday my team had a zoom meeting with you, where they asked about the missing traces, let me give you more context so you can help us better. i have made a simple RAG app using langchain, where langfuse is not able to trace output, PFA screensnap...
No description

hey @Marc

hey @Marc i am trying out langchain integrations but getting this error :- httpx.ConnectError: [Errno 111] Connection refused...

That's so weird. I did it again right

That's so weird. I did it again right now, we are back to 278ms 🤯

```

``` @conditional_observe() def conversation_chain(arg1: str, arg2: str, api_key: str, prompts): model = ChatOpenAI( model="gpt-4-turbo",...

Looks like prior issue is back. When

Looks like prior issue is back. When OpenAI craps out so does langfuse

Did something change with the API? I am

Did something change with the API? I am getting langfuse.api.core.api_error.ApiError: status_code: 504, body: An error occurred with your deployment

Langchain trace ID

Yes. See this part of the docs for details and let me know if you have questions https://langfuse.com/docs/integrations/langchain/tracing#interoperability...

Link to Trace:

Link to Trace: Also, I was wondering if there is a method on a trace which could provide me with a link to it. My use case is that I am building an application, and I want to provide the users with the link to the trace in my application, so that I can link directly to it and people can go check the various steps that took place in it. ...

Hmm, I could store in trace metadata,

Hmm, I could store in trace metadata, but it is kinda linked to the score more. (Since score is kinda like user feedback?) I'd prefer if I could store some additional attributes apart from just the comment in the score, I would like to capture the ideal answer for an answer by a RAG application by asking the users to evaluate my application. Example payload would be like:...

Scores don’t work

Did you folks change the end point for scores? API used to work but submission of scores and nothing happens!
Next