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

docs: add prompt linking to langchain runs #797

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

hassiebp
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langfuse-docs ✅ Ready (Inspect) Visit Preview Sep 17, 2024 9:28am

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

📦 Next.js Bundle Analysis for langfuse-docs

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Five Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/docs/prompts/example-langchain 8.2 KB 371.49 KB 106.14% (🟡 +0.02%)
/docs/prompts/example-langchain-js 7.76 KB 371.05 KB 106.01% (🟡 +0.02%)
/docs/prompts/get-started 17.02 KB 380.31 KB 108.66% (🟡 +0.18%)
/guides/cookbook/js_prompt_management_langchain 7.75 KB 371.04 KB 106.01% (🟡 +0.02%)
/guides/cookbook/prompt_management_langchain 8.22 KB 371.51 KB 106.15% (🟡 +0.02%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disclaimer: Experimental PR review

PR Summary

This pull request enhances the integration between Langfuse Prompt Management and Langchain by adding functionality to link Langfuse prompts with Langchain runs in both Python and JavaScript/TypeScript.

  • Adds metadata containing the Langfuse prompt to Langchain PromptTemplates for automatic linking of generations
  • Updates documentation and example files to demonstrate the new linking feature in both Python and JS/TS
  • Removes LangChain from the list of integrations where prompt linking is unavailable in the main documentation
  • Improves traceability by allowing generations using specific prompts to be tracked in Langfuse
  • Updates both Jupyter notebooks and Markdown files to reflect the new functionality consistently across the documentation

7 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@hassiebp hassiebp merged commit 7eed648 into main Sep 17, 2024
7 checks passed
@hassiebp hassiebp deleted the hassieb/lfe-2149-feat-langchain-trace-lf-prompts branch September 17, 2024 09:32
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

Successfully merging this pull request may close these issues.

1 participant