Files
Paarth Ahuja 1edf4e5a03 docs(eval): inline pairwise judging prompt instead of pulling from hub (#1002)
The "Run a pairwise evaluation" example calls
`langchain.hub.pull("langchain-ai/pairwise-evaluation-2")`, which raises
`ValueError` on current `langsmith` versions: pulling public prompts now
requires `dangerously_pull_public_prompt=True`, and neither
`langchain.hub.pull` nor `langchain_classic.hub.pull` forwards the flag.

Two fixes were considered: (a) call `Client().pull_prompt(...,
dangerously_pull_public_prompt=True)` directly and add a callout, or (b)
inline the prompt and schema. This PR takes (b) — the system and human
messages are copied verbatim and `Score` is declared as a Pydantic model
bound via `with_structured_output`. It removes the dependency on the
broken wrapper, makes the schema visible on the page, and matches the
TypeScript example on the same page.
2026-05-05 11:34:49 -04:00
..
2025-08-19 08:12:09 -07:00
2025-08-19 08:12:09 -07:00
2025-06-20 10:48:23 -07:00