Skip to content

docs: replace migrated component imports with haystack_integrations paths - #11860

Merged
julian-risch merged 1 commit into
mainfrom
docs/replace-migrated-component-imports
Jul 6, 2026
Merged

docs: replace migrated component imports with haystack_integrations paths#11860
julian-risch merged 1 commit into
mainfrom
docs/replace-migrated-component-imports

Conversation

@julian-risch

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

Copy link
Copy Markdown
Member

Related Issues

Several components were deprecated in core and moved to haystack-core-integrations (SentenceTransformers embedders/rankers, Transformers components, Hugging Face API components, langdetect, Tika, Azure OCR, OpenAPI, Whisper transcribers, SearchApi/SerperDev web search, Datadog/OpenTelemetry tracers). Docs pages and core docstrings still showed the old from haystack.components... / from haystack.tracing... imports.

Proposed Changes:

  • Rewrites old imports to the new from haystack_integrations... paths in 61 hand-maintained docs-website/docs pages, including:
    • serialized-pipeline YAML type: paths (e.g. haystack.components.embedders.sentence_transformers_text_embedder.SentenceTransformersTextEmbedderhaystack_integrations.components.embedders.sentence_transformers.sentence_transformers_text_embedder.SentenceTransformersTextEmbedder)
    • renamed classes: HuggingFaceLocalChatGeneratorTransformersChatGenerator, ExtractiveReaderTransformersExtractiveReader (incl. cross-page links)
  • Adds a short install note (e.g. pip install sentence-transformers-haystack) on pages whose examples now require an integration package
  • Updates usage examples in docstrings of non-deprecated core components that referenced migrated classes (InMemoryEmbeddingRetriever, MultiRetriever, MultiQueryEmbeddingRetriever, TextEmbeddingRetriever, DocumentJoiner, EmbeddingBasedDocumentSplitter, PipelineTool)
  • Removes explicit warm_up() calls from examples only where the component's run() was verified to auto-invoke warm-up (SentenceTransformers embedders, ChineseDocumentSplitter, AmazonTextractConverter, FunASRTranscriber, LlamaCpp generators)

Intentionally unchanged:

  • Pages documenting a deprecated component itself (extractivereader.mdx, huggingfacelocalchatgenerator.mdx, namedentityextractor.mdx) — they carry a deprecation banner and document the old class
  • overview/migration.mdx — historical 1.x→2.x guide with snippets labeled "Haystack 2.x"
  • versioned_docs/**

How did you test it?

  • Detection script confirms zero remaining old-path imports of migrated classes in docs-website/docs (outside the intentional skip list)
  • hatch run fmt, hatch run test:types, and unit tests for the touched modules (448 passed)

Notes for the reviewer

The bulk of the changes are mechanical import rewrites; the interesting files to review are overview/get-started.mdx, overview/migrating-from-langgraphlangchain-to-haystack.mdx, and the install notes.

I used the phrasing The examples on this page use SerperDev web search component that have moved to the serperdev-haystack package. Install it to run the examples: for the instructions regarding pip install. We could discuss shortening that: Install serperdev-haystack to run the examples:

We should check why warm_up() is still needed in E2BToolset/SupabaseDocumentStore examples separately.

Checklist

🤖 Generated with Claude Code

…aths

Components deprecated in core ahead of Haystack 3.0 (SentenceTransformers
embedders/rankers, Transformers components, Hugging Face API components,
langdetect, Tika, Azure OCR, OpenAPI, Whisper, web search, tracers) are
still imported from their old haystack.components/haystack.tracing paths
in docs pages and core docstrings.

- Rewrite old imports to the new haystack_integrations paths in
  docs-website/docs (61 pages), including serialized-pipeline YAML type
  paths and the renamed classes (HuggingFaceLocalChatGenerator ->
  TransformersChatGenerator, ExtractiveReader -> TransformersExtractiveReader)
- Add install notes for the new PyPI packages where a page's examples now
  need them
- Update usage examples in docstrings of non-deprecated core components
  (retrievers, DocumentJoiner, EmbeddingBasedDocumentSplitter, PipelineTool)
- Remove explicit warm_up() calls from examples of components whose run()
  auto-invokes warm-up

Pages documenting a deprecated component itself and the historical 1.x->2.x
migration guide intentionally keep old imports.

Related to deepset-ai/haystack-private#449

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

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
haystack-docs Ready Ready Preview, Comment Jul 3, 2026 12:19pm

Request Review

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@julian-risch
julian-risch marked this pull request as ready for review July 3, 2026 14:08
@julian-risch
julian-risch requested a review from a team as a code owner July 3, 2026 14:08
@julian-risch
julian-risch requested review from sjrl and removed request for a team July 3, 2026 14:08
@claude

claude Bot commented Jul 3, 2026

Copy link
Copy Markdown

Code review

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

@sjrl sjrl 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! I think the language is fine in regards to explaining that components were moved to a new package. It at least provides context if users look at older Haystack docs compared to these new ones

@julian-risch
julian-risch merged commit 4dd5af9 into main Jul 6, 2026
32 checks passed
@julian-risch
julian-risch deleted the docs/replace-migrated-component-imports branch July 6, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:documentation Improvements on the docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants