Skip to content

docs_agent emits incomplete synthesis — answer dangles on a colon or stray tab labels with the promised example missing - #660

Draft
langsmith-engine-dev[bot] wants to merge 1 commit into
masterfrom
issues-agent/9c1a58b1-728e-4a5c-b523-46f76939a10a
Draft

docs_agent emits incomplete synthesis — answer dangles on a colon or stray tab labels with the promised example missing#660
langsmith-engine-dev[bot] wants to merge 1 commit into
masterfrom
issues-agent/9c1a58b1-728e-4a5c-b523-46f76939a10a

Conversation

@langsmith-engine-dev

Copy link
Copy Markdown
Contributor

The docs_agent runs retrieval successfully and begins writing a synthesized answer, but the synthesis LLM stops before delivering content it just promised: the final message is short and ends either on a dangling colon that introduces an example/config that never appears, or on stray markdown provider-tab labels ("Google / OpenAI / Anthropic") leaked from a docs page, with the code/example missing. This is distinct from no_synthesis (issue 4de55bff, where the trajectory ends with no assistant message or a raw guardrail-JSON final) — here a prose answer IS produced but is truncated. Both observed cases were Chinese-language answers, so it may interact with multilingual generation.

…ate to docs_agent prompt

Prevent truncated answers that dangle on a colon or leak provider-tab
labels without the promised example/code content.
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-langchain Ready Ready Preview, Comment Jul 27, 2026 11:39pm
chat-langchain-on-mda Ready Ready Preview, Comment Jul 27, 2026 11:39pm

Request Review

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.

0 participants