Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Choose a provider based on your needs.
...
}

public class OpenAiSettings : OpenAiBaseSettings
public class OpenAiSettings : OpenAiChatApiSettings
{
public string ApiKey { get; set; }
public string Endpoint { get; set; }
Expand All @@ -253,6 +253,8 @@ Choose a provider based on your needs.
public double? Temperature { get; set; }
public string OrganizationId { get; set; }
public string ProjectId { get; set; }
public OpenAiChatApiType? ChatApi { get; set; }
public string ReasoningEffort { get; set; }
}
```
</TabItem>
Expand All @@ -268,14 +270,16 @@ Choose a provider based on your needs.
...
}

public class AzureOpenAiSettings : OpenAiBaseSettings
public class AzureOpenAiSettings : OpenAiChatApiSettings
{
public string ApiKey { get; set; }
public string Endpoint { get; set; }
public string Model { get; set; }
public string DeploymentName { get; set; }
public int? Dimensions { get; set; }
public double? Temperature { get; set; }
public OpenAiChatApiType? ChatApi { get; set; }
public string ReasoningEffort { get; set; }
}
```
</TabItem>
Expand Down Expand Up @@ -320,10 +324,14 @@ Choose a provider based on your needs.
...
}

public class OllamaSettings : AbstractAiSettings
public class OllamaSettings : OpenAiChatApiSettings
{
public string Model { get; set; }
public string Uri { get; set; }
public string ApiKey { get; set; }
public OpenAiChatApiType? ChatApi { get; set; }
public bool? Think { get; set; }
public string ReasoningEffort { get; set; }
}
```
</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Or you can use a remote `OpenAI` service for its additional resources and capabi
api_key: str
endpoint: str
model: str
dimentsions: int
dimensions: int
organization_id: str
project_id: str
```
Expand Down
11 changes: 8 additions & 3 deletions docs/ai-integration/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ Higher values may improve throughput but can increase latency and require more r

### Ai.Embeddings.MaxConcurrentBatches

The maximum number of **query embedding batches** that can be processed concurrently.
This setting controls the degree of parallelism when sending query embedding requests to AI providers.
Higher values may improve throughput but can increase resource usage and may trigger rate limits.
* The default maximum number of batches RavenDB can send to the embedding model concurrently.
For each embeddings generation task, RavenDB applies this limit separately to batches for source documents and batches for search terms.

* To override the limit, set `EmbeddingsMaxConcurrentBatches` in the provider settings of the task's AI connection string.

* Higher values may improve throughput, but they can increase resource usage and make external provider rate limits easier to reach.

---

- **Type**: `int`
- **Default**: `4`
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/embedded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/google-ai-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/google-ai-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/hugging-face.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/mistral-ai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/ollama-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/ollama-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/open-ai-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ai-integration/connection-strings/assets/open-ai-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/ai-integration/connection-strings/assets/vertex-ai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion docs/ai-integration/connection-strings/azure-open-ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Connection String to Azure OpenAI"
sidebar_label: "Azure OpenAI"
description: "Define a RavenDB connection string to Azure OpenAI Service for text embedding generation, chat models, and AI-powered document processing."
sidebar_position: 2
supported_languages: ["csharp", "nodejs", "python"]
supported_languages: ["csharp", "java", "nodejs", "python"]
see_also:
- title: "Vector search overview"
link: "ai-integration/vector-search/overview"
Expand Down Expand Up @@ -35,6 +35,7 @@ import LanguageSwitcher from "@site/src/components/LanguageSwitcher";
import LanguageContent from "@site/src/components/LanguageContent";

import AzureOpenAiCsharp from './content/_azure-open-ai-csharp.mdx';
import AzureOpenAiJava from './content/_azure-open-ai-java.mdx';
import AzureOpenAiNodejs from './content/_azure-open-ai-nodejs.mdx';
import AzureOpenAiPython from './content/_azure-open-ai-python.mdx';

Expand All @@ -44,6 +45,10 @@ import AzureOpenAiPython from './content/_azure-open-ai-python.mdx';
<AzureOpenAiCsharp />
</LanguageContent>

<LanguageContent language="java">
<AzureOpenAiJava />
</LanguageContent>

<LanguageContent language="nodejs">
<AzureOpenAiNodejs />
</LanguageContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ 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#identifier) section.

3. **Model Type**
3. **Model type**
Select "Chat".
Anthropic is not listed as a connector when "Text Embeddings" is selected.
Anthropic is not listed as a connector when "Text embeddings" is selected.

4. **Connector**
Select **Anthropic** from the dropdown menu.
Expand Down Expand Up @@ -108,9 +108,9 @@ import Panel from '@site/src/components/Panel';
The Anthropic API version, sent in the `anthropic-version` request header.
If not set, `2023-06-01` is used.

12. Click **Test Connection** to confirm the connection string is set up correctly.
12. Click **Test connection** to confirm the connection string is set up correctly.

13. Click **Save** to store the connection string or **Cancel** to discard changes.
13. Click **Save connection string** to store the connection string or **Cancel** to discard changes.

</Panel>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ 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#identifier) section.

3. **Model Type**
3. **Model type**
Select "Chat".
Anthropic is not listed as a connector when "Text Embeddings" is selected.
Anthropic is not listed as a connector when "Text embeddings" is selected.

4. **Connector**
Select **Anthropic** from the dropdown menu.
Expand Down Expand Up @@ -108,9 +108,9 @@ import Panel from '@site/src/components/Panel';
The Anthropic API version, sent in the `anthropic-version` request header.
If not set, `2023-06-01` is used.

12. Click **Test Connection** to confirm the connection string is set up correctly.
12. Click **Test connection** to confirm the connection string is set up correctly.

13. Click **Save** to store the connection string or **Cancel** to discard changes.
13. Click **Save connection string** to store the connection string or **Cancel** to discard changes.

</Panel>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ 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#identifier) section.

3. **Model Type**
3. **Model type**
Select "Chat".
Anthropic is not listed as a connector when "Text Embeddings" is selected.
Anthropic is not listed as a connector when "Text embeddings" is selected.

4. **Connector**
Select **Anthropic** from the dropdown menu.
Expand Down Expand Up @@ -108,9 +108,9 @@ import Panel from '@site/src/components/Panel';
The Anthropic API version, sent in the `anthropic-version` request header.
If not set, `2023-06-01` is used.

12. Click **Test Connection** to confirm the connection string is set up correctly.
12. Click **Test connection** to confirm the connection string is set up correctly.

13. Click **Save** to store the connection string or **Cancel** to discard changes.
13. Click **Save connection string** to store the connection string or **Cancel** to discard changes.

</Panel>

Expand Down
Loading
Loading