Skip to content

RDoc-4188 + RDoc-4173 "Max concurrent embedding batches" and "OpenAI Responses API support" - #2749

Open
Danielle9897 wants to merge 5 commits into
ravendb:mainfrom
Danielle9897:RDoc-4188-max-concurrent-query-batches
Open

Danielle9897 wants to merge 5 commits into
ravendb:mainfrom
Danielle9897:RDoc-4188-max-concurrent-query-batches

Conversation

@Danielle9897

@Danielle9897 Danielle9897 commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Issue links

https://issues.ravendb.net/issue/RDoc-4188/AI-Connection-strings-Update-the-Max-concurrent-query-batches-description-now-it-is-Max-concurrent-embedding-batches
https://issues.ravendb.net/issue/RDoc-4173/AI-Connection-Strings-Document-OpenAI-Responses-API-support

Additional description

For RDoc-4188 - AI Connection Strings: Update the "Max concurrent query batches" description:

  • Renamed Max concurrent query batches to Max concurrent embedding batches
    across all embedding providers and client languages.
    The description explains the separate limits for document and query-time batches,
    and the code comments use the new terminology.
  • Documented the Google AI Endpoint field for embeddings and chat.
  • Added the missing Java articles.
  • Updated Studio labels, corrected code samples, and refreshed screenshots + Snagit source files.

For RDoc-4173 - AI Connection Strings: OpenAI Responses API support:

  • Documented Chat API for OpenAI, Azure OpenAI, and Ollama.
  • Documented Reasoning effort (Azure OpenAI, Ollama), Ollama API key, and updated Thinking mode.
  • Updated reasoning effort, temperature, and prompt cache key guidance.
  • Google AI: added Temperature, clarified Endpoint, updated the embedding model.
  • Aligned syntax and examples across all clients, including the AI agents and GenAI articles.
  • Fixed links.

C# @Lwiel pls review the *-csharp.mdx files
Python @poissoncorp pls review the *-python.mdx files
Java @LielNagar pls review the *-java.mdx files
Node.js @M4xymm pls review the *-nodejs.mdx files


Type of change

  • Content - docs
  • Content - cloud
  • Content - Quill
  • Content - guides
  • Content - start pages/other
  • New docs feature (consider updating /templates or readme)
  • Bug fix
  • Optimization
  • Other

Changes in docs URLs

  • No changes in docs URLs
  • Articles are restructured, URLs will change, mapping is required (update /scripts/redirects.json file, set Documents Moved PR label)

Changes in UX/UI

  • No changes in UX/UI
  • Changes in UX/UI (include screenshots and description)

…ches" description (now it is "Max concurrent embedding batches")
10. **Max concurrent embedding batches** (optional)
* Sets the maximum number of embedding batches RavenDB can process concurrently for each embeddings generation task that uses this connection string.
* The limit applies separately to batches of **source-document content** and to batches of **search terms** at query time.
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

server/configuration/ai-integration-configuration.mdx has no #aiembeddingsmaxconcurrentbatches section. The key is documented in ai-integration/configuration.mdx (### Ai.Embeddings.MaxConcurrentBatches).

Same link in the other embedding providers (and in the C# and Python files). Also, ai-integration/configuration.mdx lines 53-54 still say "maximum number of query embedding batches", which contradicts the new wording.

Suggested change
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

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.

fixed

10. **Max concurrent embedding batches** (optional)
* Sets the maximum number of embedding batches RavenDB can process concurrently for each embeddings generation task that uses this connection string.
* The limit applies separately to batches of **source-document content** and to batches of **search terms** at query time.
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.

Suggested change
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

@Danielle9897 Danielle9897 Dec 2, 2026 •

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.

fixed

11. **Max concurrent embedding batches** (optional)
* Sets the maximum number of embedding batches RavenDB can process concurrently for each embeddings generation task that uses this connection string.
* The limit applies separately to batches of **source-document content** and to batches of **search terms** at query time.
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.

Suggested change
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

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.

fixed

7. **Max concurrent embedding batches** (optional)
* Sets the maximum number of embedding batches RavenDB can process concurrently for each embeddings generation task that uses this connection string.
* The limit applies separately to batches of **source-document content** and to batches of **search terms** at query time.
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.

Suggested change
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

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.

fixed

8. **Max concurrent embedding batches** (optional)
* Sets the maximum number of embedding batches RavenDB can process concurrently for each embeddings generation task that uses this connection string.
* The limit applies separately to batches of **source-document content** and to batches of **search terms** at query time.
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.

Suggested change
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../server/configuration/ai-integration-configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

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.

fixed

@@ -33,8 +33,8 @@ import Panel from '@site/src/components/Panel';
2. **Identifier** (optional)
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#the-connection-string-identifier) section.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same anchor issue: overview.mdx defines #identifier.

Suggested change
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#the-connection-string-identifier) section.
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#identifier) section.

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.

fixed

@@ -37,18 +37,18 @@ import Panel from '@site/src/components/Panel';
Enter an identifier for this connection string.
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#the-connection-string-identifier) section.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same anchor issue: overview.mdx defines #identifier.

Suggested change
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#the-connection-string-identifier) section.
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#identifier) section.

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.

fixed

@@ -34,19 +34,18 @@ import Panel from '@site/src/components/Panel';
2. **Identifier** (optional)
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#the-connection-string-identifier) section.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same anchor issue: overview.mdx defines #identifier.

Suggested change
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#the-connection-string-identifier) section.
Learn more about the identifier in the [connection string identifier](../../../ai-integration/connection-strings/overview.mdx#identifier) section.

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.

fixed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lines 181-186, chat sample: the AzureOpenAiSettings constructor is (apiKey, endpoint, model, deploymentName, dimensions?, temperature?, enablePromptCache?), so 0.4 ends up in dimensions and the temperature is never set.

connectionString.azureOpenAiSettings = new AzureOpenAiSettings(
    "your-api-key",
    "https://your-resource-name.openai.azure.com",
    "gpt-4o-mini",  // Name of chat model to use
    "your-deployment-name",
    undefined,      // dimensions is not relevant for chat models
    0.4);           // Optionally, set the model's temperature

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.

done

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Line 99, syntax block: the property is embeddedSettings, not mistralAiSettings.

    embeddedSettings;  // EmbeddedSettings

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.

done

@Danielle9897
Danielle9897 marked this pull request as draft December 2, 2026 14:36
@Danielle9897

Copy link
Copy Markdown
Member Author

@M4xymm @poissoncorp @LielNagar @Lwiel
Please wait before reviewing this PR, as I will also be adding updates to the connection string articles to address issue:
https://issues.ravendb.net/issue/RDoc-4173/AI-Connection-Strings-Document-OpenAI-Responses-API-support

10. **Max concurrent embedding batches** (optional)
* Sets the maximum number of embedding batches RavenDB can process concurrently for each embeddings generation task that uses this connection string.
* The limit applies separately to batches of **source-document content** and to batches of **search terms** at query time.
* If not specified, RavenDB uses the value of the [Ai.Embeddings.MaxConcurrentBatches](../../../ai-integration/generating-embeddings/configuration.mdx#aiembeddingsmaxconcurrentbatches) configuration key (default: `4`).

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.

The link should be ../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches. We should also replace it in all other files.

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.

fixed


7. **Model**
7. **Endpoint** (optional)
* Select or enter the Google AI API endpoint.

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.

We only support the default endpoint for embeddings generation via Google provider I think

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.

I updated the text:
The Endpoint is used for chat requests and for listing models in Studio, and embeddings requests always go to https://generativelanguage.googleapis.com. The same change is in the Node.js, Python and Java files.

@Danielle9897 Danielle9897 changed the title RDoc-4188 AI Connection strings: Update the "Max concurrent query batches" description (now it is "Max concurrent embedding batches") RDoc-4188 + RDoc-4173 "Max concurrent embedding batches" and "OpenAI Responses API support" Dec 3, 2026
@Danielle9897
Danielle9897 marked this pull request as ready for review December 3, 2026 16:27
@Danielle9897
Danielle9897 requested review from Lwiel and M4xymm December 3, 2026 16:27

@M4xymm M4xymm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, two small fixes inline.

@@ -161,8 +160,8 @@ class VertexSettings
location; // string
aiVersion; // string (optional)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typed as a literal union in Node, same as aiVersion in the Google block:

Suggested change
aiVersion; // string (optional)
aiVersion; // "V1" | "V1_Beta" (optional)

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.

done

0.4); // Optionally, set the model's temperature
undefined, // dimensions is not relevant for chat models
undefined, // temperature is not set
true); // Optionally, enable or disable prompt prefix caching

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

enablePromptCache sends prompt_cache_key, so match the OpenAI sample wording:

Suggested change
true); // Optionally, enable or disable prompt prefix caching
true); // enable prompt cache key (optional)

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.

done

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.

4 participants