Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

dev: Add a default value to "semantic_configuration"

Clémence Lesné9732a46ec11f
diff --git a/README.md b/README.md
index bb22e6b..96f9e08 100644
--- a/README.md
+++ b/README.md
@@ -346,7 +346,6 @@ ai_search:
access_key: xxx
endpoint: https://xxx.search.windows.net
index: trainings
- semantic_configuration: default
content_safety:
access_key: xxx
diff --git a/bicep/app.bicep b/bicep/app.bicep
index 13bd72b..e69efc0 100644
--- a/bicep/app.bicep
+++ b/bicep/app.bicep
@@ -90,7 +90,6 @@ var config = {
access_key: search.listAdminKeys().primaryKey
endpoint: 'https://${search.name}.search.windows.net'
index: 'trainings'
- semantic_configuration: 'default'
}
content_safety: {
access_key: cognitiveContentsafety.listKeys().key1
diff --git a/helpers/config_models/ai_search.py b/helpers/config_models/ai_search.py
index 6b7d157..00a132f 100644
--- a/helpers/config_models/ai_search.py
+++ b/helpers/config_models/ai_search.py
@@ -8,7 +8,7 @@ class AiSearchModel(BaseModel, frozen=True):
endpoint: str
expansion_k: int = Field(default=5, ge=1)
index: str
- semantic_configuration: str
+ semantic_configuration: str = "default"
top_k: int = Field(default=15, ge=1)
@cache