Repository navigation
RDoc-4188 + RDoc-4173 "Max concurrent embedding batches" and "OpenAI Responses API support" - #2749
Danielle9897 wants to merge 5 commits into
Conversation
…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`). |
There was a problem hiding this comment.
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.
| * 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`). |
| 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`). |
There was a problem hiding this comment.
Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.
| * 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`). |
| 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`). |
There was a problem hiding this comment.
Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.
| * 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`). |
| 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`). |
There was a problem hiding this comment.
Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.
| * 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`). |
| 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`). |
There was a problem hiding this comment.
Same broken link as in _google-ai-nodejs.mdx: the section lives in ai-integration/configuration.mdx.
| * 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`). |
| @@ -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. | |||
There was a problem hiding this comment.
Same anchor issue: overview.mdx defines #identifier.
| 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. |
| @@ -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. | |||
There was a problem hiding this comment.
Same anchor issue: overview.mdx defines #identifier.
| 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. |
| @@ -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. | |||
There was a problem hiding this comment.
Same anchor issue: overview.mdx defines #identifier.
| 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. |
There was a problem hiding this comment.
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 temperatureThere was a problem hiding this comment.
Line 99, syntax block: the property is embeddedSettings, not mistralAiSettings.
embeddedSettings; // EmbeddedSettings|
@M4xymm @poissoncorp @LielNagar @Lwiel |
| 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`). |
There was a problem hiding this comment.
The link should be ../../../ai-integration/configuration.mdx#aiembeddingsmaxconcurrentbatches. We should also replace it in all other files.
|
|
||
| 7. **Model** | ||
| 7. **Endpoint** (optional) | ||
| * Select or enter the Google AI API endpoint. |
There was a problem hiding this comment.
We only support the default endpoint for embeddings generation via Google provider I think
There was a problem hiding this comment.
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.
M4xymm
left a comment
There was a problem hiding this comment.
Looks good, two small fixes inline.
| @@ -161,8 +160,8 @@ class VertexSettings | |||
| location; // string | |||
| aiVersion; // string (optional) | |||
There was a problem hiding this comment.
Typed as a literal union in Node, same as aiVersion in the Google block:
| aiVersion; // string (optional) | |
| aiVersion; // "V1" | "V1_Beta" (optional) |
| 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 |
There was a problem hiding this comment.
enablePromptCache sends prompt_cache_key, so match the OpenAI sample wording:
| true); // Optionally, enable or disable prompt prefix caching | |
| true); // enable prompt cache key (optional) |
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:
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.
For RDoc-4173 - AI Connection Strings: OpenAI Responses API support:
Temperature, clarified Endpoint, updated the embedding model.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
/templatesor readme)Changes in docs URLs
/scripts/redirects.jsonfile, setDocuments MovedPR label)Changes in UX/UI