Skip to content

Fix model dropdowns - #654

Merged
Lauren Hirata Singh (lnhsingh) merged 2 commits into
mainfrom
models
Sep 26, 2025
Merged

Fix model dropdowns#654
Lauren Hirata Singh (lnhsingh) merged 2 commits into
mainfrom
models

Conversation

@lnhsingh

Copy link
Copy Markdown
Collaborator

Overview

Type of change

Type: [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other]

Related issues/PRs

  • GitHub issue:
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

Copilot AI review requested due to automatic review settings September 26, 2025 00:01
@github-actions github-actions Bot added langchain For docs changes to LangChain python For content related to the Python version of LangChain projects oss javascript labels Sep 26, 2025

Copilot AI 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.

Pull Request Overview

This PR updates documentation for embedding and chat model dropdowns across Python and JavaScript integrations. The changes restructure the UI from Tab-based dropdowns to Accordion-based expandable sections while standardizing the documentation format.

Key changes include:

  • Converting Tab components to AccordionGroup/Accordion components for better UI organization
  • Standardizing code example formats and adding consistent usage examples
  • Correcting markup syntax for Card components and improving consistency across files

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/oss/python/integrations/text_embedding/index.mdx Converts tabs to accordions, reorganizes provider table placement, adds usage examples, and fixes Card component syntax
src/oss/python/integrations/providers/index.mdx Corrects markdown table column alignment syntax
src/oss/python/integrations/providers/all_providers.mdx Removes incomplete Card component attribute
src/oss/python/integrations/chat/index.mdx Converts tabs to accordions, updates section heading capitalization, and fixes Card component syntax
src/oss/javascript/integrations/text_embedding/index.mdx Converts tabs to accordions, standardizes installation instructions, and fixes Card component syntax
src/oss/javascript/integrations/chat/index.mdx Converts tabs to accordions, consolidates installation tips, and adds usage examples
Comments suppressed due to low confidence (2)

src/oss/python/integrations/text_embedding/index.mdx:1

  • The API reference link for OpenAI embeddings points to a chat model class (ChatOpenAI) instead of the embeddings class. This should link to the OpenAI embeddings API reference.
---

src/oss/python/integrations/text_embedding/index.mdx:1

  • The API reference link for Cohere embeddings points to an LLM class instead of the embeddings class. This should link to the Cohere embeddings API reference.
---

@@ -233,9 +276,11 @@ if not os.environ.get("VOYAGE_API_KEY"):
from langchain-voyageai import VoyageAIEmbeddings

Copilot AI Sep 26, 2025

Copy link

Choose a reason for hiding this comment

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

This import statement has a syntax error. It should use underscores instead of hyphens for the package name: from langchain_voyageai import VoyageAIEmbeddings

Suggested change
from langchain-voyageai import VoyageAIEmbeddings
from langchain_voyageai import VoyageAIEmbeddings

Copilot uses AI. Check for mistakes.

embeddings = OpenAIEmbeddings(model="text-embedding-3-large")

embeddings.embed_query("Hello, world!")

Copilot AI Sep 26, 2025

Copy link

Choose a reason for hiding this comment

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

This line references an undefined variable embeddings. In the xAI and Perplexity sections, the code creates a model variable but then tries to use embeddings.embed_query(). This should be model.embed_query() or the variable should be named embeddings.

Copilot uses AI. Check for mistakes.
| [Nomic](/oss/integrations/text_embedding/nomic) | [langchain-nomic](https://python.langchain.com/api_reference/nomic/embeddings/langchain_nomic.embeddings.NomicEmbeddings.html) |
| [Databricks](/oss/integrations/text_embedding/databricks) | [databricks-langchain](https://api-docs.databricks.com/python/databricks-ai-bridge/latest/databricks_langchain.html#databricks_langchain.DatabricksEmbeddings) |
| [IBM](/oss/integrations/text_embedding/ibm_watsonx) | [langchain-ibm](https://python.langchain.com/api_reference/ibm/embeddings/langchain_ibm.embeddings.WatsonxEmbeddings.html) |
| [NVIDIA](/oss/integrations/text_embedding/nvidia_ai_endpoints) | [langchain-nvidia](https://python.langchain.com/api_reference/nvidia_ai_endpoints/embeddings/langchain_nvidia_ai_endpoints.embeddings.NVIDIAEmbeddings.html) |

Copilot AI Sep 26, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The usage example for HuggingFace embeddings is placed in a separate code block instead of being combined with the instantiation code block like other examples. This inconsistency makes the documentation harder to follow. Consider combining both code snippets into a single block for consistency.

Copilot uses AI. Check for mistakes.
@github-actions

Copy link
Copy Markdown
Contributor

Preview ID generated: preview-models-1758844980-60e691f

@lnhsingh
Lauren Hirata Singh (lnhsingh) merged commit d190fab into main Sep 26, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants