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

dspy and langfuse integration #1179

Closed
xucailiang opened this issue Jun 20, 2024 · 8 comments
Closed

dspy and langfuse integration #1179

xucailiang opened this issue Jun 20, 2024 · 8 comments

Comments

@xucailiang
Copy link
Contributor

xucailiang commented Jun 20, 2024

Langfuse is a good prompt management project.
I would like to know if dspy has plans to support langfuse.
and I have written some code for this and am currently verifying them
Thank you all🙏

@lebsral
Copy link

lebsral commented Jun 20, 2024

Are you suggesting something like saving the compiled optimized json programs that DSPy creates to langfuse? (at your prompt management). Or something else? Can you give some more details of what you see happening?

@xucailiang
Copy link
Contributor Author

Are you suggesting something like saving the compiled optimized json programs that DSPy creates to langfuse? (at your prompt management). Or something else? Can you give some more details of what you see happening?

Yes, after the dspy optimization prompt, I hope to be able to easily observe what changes have been made. In this way, we can do some comparisons and cost statistics.

Of course, we can also use a similar method inspect_history, but it would be better if there is a more intuitive management page to observe.

Thank you for your reply.

@denisergashbaev
Copy link

denisergashbaev commented Jun 20, 2024

That´s a good suggestion. On my side, I would want DSPy integration with Langfuse. That is, I want to see the calls that DSPy makes to LLM, grouped into traces and spans.

I see there was a PR for this: #200

@xucailiang
Copy link
Contributor Author

That´s a good suggestion. On my side, I would want DSPy integration with Langfuse. That is, I want to see the calls that DSPy makes to LLM, grouped into traces and spans.

I see there was a PR for this: #200

I also noticed this PR, unfortunately,it was submitted on Oct 31, 2023, and has not been merged yet, dspy and langfuse have been updated for many versions.

So far, I have completed part of the code for chat_request and completions_request, If necessary, I will submit these changes and try to connect langfuse elsewhere.

@arnavsinghvi11
Copy link
Collaborator

Feel free to build on #200 @xucailiang (will need to be updated with latest DSPy and/or Langfuse changes) or open a new PR for this integration!

@xucailiang
Copy link
Contributor Author

xucailiang commented Jun 21, 2024

Feel free to build on #200 @xucailiang (will need to be updated with latest DSPy and/or Langfuse changes) or open a new PR for this integration!

As you said, I have submitted the relevant code, PR thank you everyone🙏

@Aaryaveerkrishna23
Copy link

Langfuse is a good prompt management project. I would like to know if dspy has plans to support langfuse. and I have written some code for this and am currently verifying them Thank you all🙏

Hi , @xucailiang I was still not able to see any traces of my azure model's cost on locally hosted langfuse dashboard

@xucailiang
Copy link
Contributor Author

Langfuse is a good prompt management project. I would like to know if dspy has plans to support langfuse. and I have written some code for this and am currently verifying them Thank you all🙏

Hi , @xucailiang I was still not able to see any traces of my azure model's cost on locally hosted langfuse dashboard

hi,The PR for integrating langfuse is under review by @arnavsinghvi11 and we are all looking forward to this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants