langfuse-docs icon indicating copy to clipboard operation
langfuse-docs copied to clipboard

Found broken `/docs/prompts/` link. Please fix!

Open deyancodez opened this issue 2 months ago • 2 comments

i m trying to fethc a prompt using getprompt as suggested <img width="1043" height="166" alt="Image" src="https://github.com/user-attachments/assets/27ac96af-98ce-4fba-8f09-0038f0fb136d" />

deyancodez avatar Oct 01 '25 10:10 deyancodez

The /docs/prompts/ link is currently broken and has been reported in the Langfuse documentation issues (source). For fetching prompts, the recommended approach is to use the SDK and, if you're integrating with Langchain, you can use:

const langchainChatPrompt = ChatPromptTemplate.fromMessages(
  langfuseChatPrompt.getLangchainPrompt().map((m) => [m.role, m.content])
).withConfig({
  metadata: { langfusePrompt: langfuseChatPrompt },
});

This lets you retrieve and use prompts managed in Langfuse with Langchain workflows (source). If you need more advanced prompt management, such as dynamic message placeholders, check the Message Placeholders guide (requires SDK ≥ 3.1.0 for Python or ≥ 3.38.0 for JS).

If you have a specific usage question about getprompt, let me know how you're calling it or what SDK/language you're using, and I can help further!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Oct 01 '25 10:10 dosubot[bot]

I cannot see the attached image, can you reupload it?

marcklingen avatar Oct 01 '25 12:10 marcklingen