Skip to content

ai: add aliases for integration with langchain - #24791

Merged
ti-chi-bot[bot] merged 1 commit into
pingcap:release-8.5from
lilin90:langchain-aliases
Dec 1, 2026
Merged

ti-chi-bot[bot] merged 1 commit into
pingcap:release-8.5from
lilin90:langchain-aliases

Conversation

@lilin90

@lilin90 lilin90 commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

What is changed, added, or deleted? (Required)

Add aliases for integration with langchain to avoid 404 links

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

  • Related code change PR links (if applicable):
  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Added stable, dev, TiDB Cloud, and vector search routes as alternate paths to the LangChain integration page.

@lilin90 lilin90 self-assigned this Dec 1, 2026
@lilin90 lilin90 added the ONCALL Relates to documentation oncall. label Dec 1, 2026
@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 1, 2026
@lilin90 lilin90 added translation/no-need No need to translate this PR. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 1, 2026
@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Dec 1, 2026
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The LangChain integration overview page now includes stable, dev, TiDB Cloud, and /ai routes in its aliases list.

Changes: LangChain integration aliases

Layer / File(s) Summary
Add LangChain route aliases
ai/integrations/vector-search-integration-overview.md
The aliases list now includes stable, dev, TiDB Cloud, and /ai routes for the LangChain integration page.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: qiancai

Merge Risk: Low · up to 70a84

The new LangChain alias URLs, and possibly the existing LangChain URLs, can lead readers to the vector search overview instead of the LangChain tutorial. Move the aliases to the LangChain page before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "ai: add aliases for integration with langchain" matches the single change in the changeset, which adds LangChain integration aliases to the vector search integration overview page to avoid …
Description check Passed The description states what changed (adding aliases for LangChain integration to avoid 404 links) and marks the target version (v8.5). The required 'What is changed' section is filled in. The template…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ai: add aliases for integration with langchain" matches the single change in the changeset, which adds LangChain integration aliases to the vector search integration overview page to avoid 404 links. It is specific and concise.

Full details: Description check

Explanation

The description states what changed (adding aliases for LangChain integration to avoid 404 links) and marks the target version (v8.5). The required 'What is changed' section is filled in. The template's optional sections, such as the related PR links and the first-time contributor checklist, are left blank. The 'Change aliases' checkbox is not ticked even though this PR changes aliases.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ti-chi-bot ti-chi-bot Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 1, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted (1)

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 97b6e30 and 70a8449.

Files selected for processing: 1

  • ai/integrations/vector-search-integration-overview.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

title: AI Integrations for TiDB
summary: An overview of AI integrations for TiDB, including Auto Embedding providers, AI frameworks, ORM libraries, cloud services, and MCP server support.
aliases: ['/tidb/stable/vector-search-integration-overview/','/tidb/dev/vector-search-integration-overview/','/tidbcloud/vector-search-integration-overview/']
aliases: ['/tidb/stable/vector-search-integration-overview/','/tidb/dev/vector-search-integration-overview/','/tidbcloud/vector-search-integration-overview/','/tidb/stable/vector-search-integrate-with-langchain/','/tidb/dev/vector-search-integrate-with-langchain/','/tidbcloud/vector-search-integrate-with-langchain/','/ai/vector-search-integrate-with-langchain/']

@coderabbitai coderabbitai Bot Dec 1, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Minor · Functional Correctness · Quick win

Keep LangChain aliases on the LangChain page.

The overview now declares the three legacy LangChain aliases and the /ai/vector-search-integrate-with-langchain/ alias. The LangChain tutorial already declares the three legacy aliases. Two pages now claim the same URLs, and the repository does not show which page wins. The /ai alias also leads to the overview, which does not cover LangChain. Move the LangChain aliases to the page that owns the content.

Overview aliases

-aliases: ['/tidb/stable/vector-search-integration-overview/','/tidb/dev/vector-search-integration-overview/','/tidbcloud/vector-search-integration-overview/','/tidb/stable/vector-search-integrate-with-langchain/','/tidb/dev/vector-search-integrate-with-langchain/','/tidbcloud/vector-search-integrate-with-langchain/','/ai/vector-search-integrate-with-langchain/']
+aliases: ['/tidb/stable/vector-search-integration-overview/','/tidb/dev/vector-search-integration-overview/','/tidbcloud/vector-search-integration-overview/']
LangChain page aliases

-aliases: ['/tidb/stable/vector-search-integrate-with-langchain/','/tidb/dev/vector-search-integrate-with-langchain/','/tidbcloud/vector-search-integrate-with-langchain/']
+aliases: ['/tidb/stable/vector-search-integrate-with-langchain/','/tidb/dev/vector-search-integrate-with-langchain/','/tidbcloud/vector-search-integrate-with-langchain/','/ai/vector-search-integrate-with-langchain/']

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note: Since the LangChain tutorial is not in any TOC file for now, I moved those aliases in that file to this doc too.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Analysis chain

Script executed:

#!/bin/bash
printf '%s\n' '--- Revision ---'
git rev-parse HEAD
printf '%s\n' '--- LangChain files ---'
fd -i 'langchain' -t f .
printf '%s\n' '--- LangChain route declarations and references ---'
rg -n -C 2 'vector-search-integrate-with-langchain' . || true
printf '%s\n' '--- TOC files ---'
fd -i '(^|[-_])toc([._-]|$)' -t f . | head -100
printf '%s\n' '--- Publication guidance ---'
rg -n -i -C 2 'toc.*(publish|alias)|alias.*toc|toc.*(generat|build)|only.*toc' --glob '*.md' --glob '*.yaml' --glob '*.yml' | head -160 || true

Length of output: 22172


@lilin90 Understood. Routing to the overview makes sense while the tutorial is absent from the TOC.

Both source files still declare the three legacy aliases. I could not verify whether the publishing process includes the tutorial or how it handles duplicate aliases. Please check all four routes in the documentation preview. I’m not marking the finding as addressed yet.


Learnings added

Learnt from: lilin90
Repo: pingcap/docs PR: 24791
File: ai/integrations/vector-search-integration-overview.md:4-4
Timestamp: 2026-12-01T10:13:40.572Z
Learning: Within repository "pingcap/docs", only for files matching one of ["ai/integrations/vector-search-integration-overview.md"]: For `ai/integrations/vector-search-integration-overview.md`, while the LangChain tutorial is absent from the TOC, the LangChain aliases are intentionally assigned to the overview. Do not require moving them to the tutorial solely because it contains the LangChain content; check the published routes for conflicts.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

@lilin90 lilin90 added the lgtm label Dec 1, 2026

@lilin90 lilin90 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

/approve

@ti-chi-bot

ti-chi-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lilin90

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Dec 1, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit 64a9c48 into pingcap:release-8.5 Dec 1, 2026
12 checks passed
@lilin90
lilin90 deleted the langchain-aliases branch December 1, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm ONCALL Relates to documentation oncall. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant