diff --git a/docs/platforms/javascript/common/agent-tracing/langchain.mdx b/docs/platforms/javascript/common/agent-tracing/langchain.mdx index 213544069cbcd..604862dc704bd 100644 --- a/docs/platforms/javascript/common/agent-tracing/langchain.mdx +++ b/docs/platforms/javascript/common/agent-tracing/langchain.mdx @@ -68,6 +68,15 @@ The integration automatically instruments the following LangChain runnable metho - `stream()` - Streaming execution - `batch()` - Batch execution +### Embeddings + +The integration captures `gen_ai.embeddings` spans for `embedQuery()` and `embedDocuments()` calls from these provider packages: + +- `@langchain/openai` +- `@langchain/google-genai` +- `@langchain/mistralai` +- `@langchain/google-vertexai` + ### Providers The automatic instrumentation supports the following LangChain provider packages: @@ -82,3 +91,14 @@ The automatic instrumentation supports the following LangChain provider packages ## Supported Versions - `langchain`: `>=0.1.0 <2.0.0` + +Automatic embeddings instrumentation supports these package versions: + +| Package | Supported Versions | +| -------------------------- | ------------------ | +| `@langchain/openai` | `>=0.1.0 <2.0.0` | +| `@langchain/google-genai` | `>=0.1.0 <3.0.0` | +| `@langchain/mistralai` | `>=0.1.0 <2.0.0` | +| `@langchain/google-common` | `>=0.1.0 <3.0.0` | + +For `@langchain/google-vertexai`, the version requirement applies to its `@langchain/google-common` dependency, which implements the embedding methods.