WORKS WITH LANGCHAIN

Prompts for LangChain

Community-tested ways to get more useful results from LangChain.

Add a prompt
Text

Multi-agent workflow that doesn't talk in circles

I want to build a multi-agent workflow for: {{goal}}. My rough plan: {{describe roles}}. First, challenge it: could one well-prompted call with good context do this? Say so if yes…

114 copies · 21 likes
Text

Build a research agent that cites everything

Research this question and answer it as a citing agent would: "{{question}}". Process, and show your work at each stage: 1. Decompose the question into the 4-6 sub-questions that …

66 copies · 16 likes
Text

Structured extraction from messy documents

Extract structured data from the document below into this schema: {{list fields with types and whether required}}. Rules: 1. Return valid JSON only, matching the schema exactly. N…

85 copies · 14 likes
Text

Debug an agent that's going off the rails

My agent is misbehaving: {{describe the wrong behaviour and how often}}. Here's the prompt: {{paste}}. Here's a failing trace: {{paste tool calls and outputs}}. Diagnose in this o…

66 copies · 15 likes
Text

Write the eval before you ship the prompt

I'm shipping this prompt to production: {{paste prompt}}. It handles {{task}} at {{volume}}. A bad output causes {{consequence}}. Build the eval: 1. Define what correct means for …

69 copies · 11 likes
Text

Context window budget for a long-running task

I'm building something that processes {{describe volume of material}} to produce {{output}}. Model context: {{limit}}. Design the context strategy: 1. Budget the window: what must…

51 copies · 6 likes