Skip to content

docs: add OpenSearchSQLRetriever documentation page#11543

Open
Srivatsa03 wants to merge 4 commits into
deepset-ai:mainfrom
Srivatsa03:docs-opensearch-sql-retriever
Open

docs: add OpenSearchSQLRetriever documentation page#11543
Srivatsa03 wants to merge 4 commits into
deepset-ai:mainfrom
Srivatsa03:docs-opensearch-sql-retriever

Conversation

@Srivatsa03

Copy link
Copy Markdown
Contributor

Related Issues

Proposed Changes:

Adds a documentation page for the OpenSearchSQLRetriever component, which was missing from the docs website. Modeled on the existing ElasticsearchSQLRetriever page (#11494).

  • New page: docs-website/docs/pipeline-components/retrievers/opensearchsqlretriever.mdx
  • Registered the page in the retrievers sidebar (docs-website/sidebars.js).
  • Added a row for the component to the retrievers index table (docs-website/docs/pipeline-components/retrievers.mdx).

Unlike the BM25 and embedding retrievers, this component takes a SQL query string and returns the raw OpenSearch SQL JSON response (result["result"]["hits"]["hits"] for regular queries, and the aggregations block for grouped aggregate queries) rather than a list of Documents, so the Usage section documents a basic query and an aggregation query.

How did you test it?

Manual verification. The page content and signatures were checked against the component source in integrations/opensearch/src/haystack_integrations/components/retrievers/opensearch/sql_retriever.py. This is a docs-only change with no code modifications.

Notes for the reviewer

This resolves an issue in the haystack-core-integrations repo, but per the issue the page belongs in the core repo's docs website, so the PR is here. It mirrors the recently merged ElasticsearchSQLRetriever page (#11494), adjusted for the OpenSearch SQL result shape. Since this is docs-only, it likely needs the ignore-for-release-notes label to satisfy the reno check.

Checklist

Closes deepset-ai/haystack-core-integrations#3352

@Srivatsa03 Srivatsa03 requested a review from a team as a code owner June 7, 2026 16:05
@Srivatsa03 Srivatsa03 requested review from sjrl and removed request for a team June 7, 2026 16:05
@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

@Srivatsa03 is attempting to deploy a commit to the deepset Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 8, 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 Jun 11, 2026 8:04am

Request Review

@Srivatsa03

Copy link
Copy Markdown
Contributor Author

Note: this is a docs-only change with no library code, so I believe it needs the ignore-for-release-notes label to satisfy the reno check. Could a maintainer apply it when reviewing? Happy to adjust anything else.

@sjrl sjrl requested review from davidsbatista and removed request for sjrl June 11, 2026 06:47
@davidsbatista

Copy link
Copy Markdown
Contributor

can you please also add it to the 2.30 sections of docs so that it's visible there and not only on unstable section?

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.

Documentation missing for OpensearchSQLRetriever

2 participants