Skip to content

docs: document Pipeline.stream(), remove the AsyncPipeline page, ChatPromptBuilder insert tag, and Toolset run-scoped copies - #11871

Merged
julian-risch merged 8 commits into
mainfrom
docs/v3-simple-doc-updates-2
Jul 9, 2026
Merged

docs: document Pipeline.stream(), remove the AsyncPipeline page, ChatPromptBuilder insert tag, and Toolset run-scoped copies#11871
julian-risch merged 8 commits into
mainfrom
docs/v3-simple-doc-updates-2

Conversation

@julian-risch

@julian-risch julian-risch commented Jul 5, 2026

Copy link
Copy Markdown
Member

Related Issues

Proposed Changes:

  • AsyncPipeline page removal + feat: expose AsyncPipeline.stream for chunk-by-chunk consumption #11258 + fix: In AsyncPipeline cancel inflight tasks if a PipelineRuntimeError is raised by another component #11499AsyncPipeline was merged into Pipeline in 3.0, so the AsyncPipeline concepts page is removed from the current docs (the 2.x copies live on under versioned_docs/). Its still-relevant content is consolidated into a rewritten "Async Execution and Streaming" section on the Pipelines concepts page:

    • concurrent component execution and the concurrency_limit init parameter,
    • the three async execution methods run_async, run_async_generator, and the new stream() with a runnable example — iterate the returned handle with async for to consume StreamingChunks, read the final output from handle.result, restrict sources via streaming_components, and control abandonment behavior with cancel_on_abandon,
    • an "Error Handling and Task Cancellation" subsection (moved here from docs: document sync streaming callbacks in async contexts #11870): in-flight tasks are cancelled and drained when a component raises, when run_async_generator iteration is abandoned, or when the run is cancelled — plus the caveat that sync components offloaded to a worker thread run to completion with their outputs discarded.

    The sidebar entry is removed and a client redirect from /docs/asyncpipeline to /docs/pipelines is added. No references to AsyncPipeline remain in the current docs.

  • feat: Extend ChatPromptBuilder with insert tag #11486ChatPromptBuilder docs: new "The insert Tag" subsection under String Templates, documenting {% insert %} with a runnable example, expression/slice/index support, lossless round-tripping of all content types, and multiple-tag usage.

  • fix: Fix usage of SearchableToolset with Agent when selecting a subset of tools to be active #11564Toolset docs: new "Run-Scoped Copies and Tool Selection" section covering spawn() and get_selectable_tools(), per-run isolation (concurrent runs sharing a Toolset are safe), and runtime name-based selection via Agent.run(tools=[...]) keeping toolsets live. Also updated the SearchableToolset "Reusing the toolset across multiple agent runs" section: discovered tools no longer persist across Agent runs and clear() between runs is not necessary.

How did you test it?

Notes for the reviewer

Checklist

🤖 Generated with Claude Code

…oolset run-scoped copies with name-based selection

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
haystack-docs Error Error Jul 9, 2026 12:50pm

Request Review

…am() docs on Pipelines page

AsyncPipeline no longer exists in 3.0 (merged into Pipeline). The 2.x page
lives on in versioned_docs; the current docs now cover run_async,
run_async_generator, and stream() in the Pipelines concepts page, with a
client redirect from /docs/asyncpipeline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ted async docs

Takes over the pipelines.mdx additions from #11870 so the two PRs no
longer touch the same file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
julian-risch added a commit that referenced this pull request Jul 8, 2026
All pipelines.mdx edits are consolidated in #11871 to avoid cross-PR
conflicts; this PR now only adds the Sync and Async Callbacks section.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@julian-risch julian-risch changed the title docs: document Pipeline.stream(), ChatPromptBuilder insert tag, and Toolset run-scoped copies docs: document Pipeline.stream(), remove the AsyncPipeline page, ChatPromptBuilder insert tag, and Toolset run-scoped copies Jul 8, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…dates-2

# Conflicts:
#	docs-website/docs/concepts/pipelines/asyncpipeline.mdx
@julian-risch
julian-risch marked this pull request as ready for review July 9, 2026 10:38
@julian-risch
julian-risch requested a review from a team as a code owner July 9, 2026 10:38
@julian-risch
julian-risch requested review from davidsbatista and removed request for a team July 9, 2026 10:38
@claude

claude Bot commented Jul 9, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@davidsbatista

Copy link
Copy Markdown
Contributor

Removed two mentions of "AsyncPipeline" on docs-website/docs/

@davidsbatista davidsbatista left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@julian-risch
julian-risch merged commit 87f6101 into main Jul 9, 2026
22 checks passed
@julian-risch
julian-risch deleted the docs/v3-simple-doc-updates-2 branch July 9, 2026 12:49
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.

2 participants