Recognize self capability questions
CI / test (push) Failing after 58s
CI / test (pull_request) Failing after 54s

This commit is contained in:
m
2026-08-25 19:54:06 +03:00
parent 21583528c0
commit 6ba8265686
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -661,7 +661,7 @@ func informationRequestKind(message string, candidate interaction.SemanticCandid
if cognitiveSubject && inventoryRequest && inventoryCue {
return interaction.InformationRequestCognitiveModelInventory
}
capabilitySubject := containsStemInTokens(tokens, "уме", "возможност", "способн", "capabilit")
capabilitySubject := containsStemInTokens(tokens, "уме", "возможност", "способн", "capabilit") || (containsMeaningfulInterrogative(tokens) && containsToken(tokens, "можешь"))
if inquiry && capabilitySubject {
return interaction.InformationRequestCapabilityInventory
}
+1
View File
@@ -120,6 +120,7 @@ func TestInformationRequestsAreClassifiedOnceByInteraction(t *testing.T) {
{"какие модели доступны?", interaction.InformationRequestCognitiveModelInventory},
{"назови доступные модели", interaction.InformationRequestCognitiveModelInventory},
{"какая модель отвечает?", interaction.InformationRequestCognitiveCurrentModel},
{"что ты можешь сделать без внешних моделей?", interaction.InformationRequestCapabilityInventory},
{"что ты умеешь?", interaction.InformationRequestCapabilityInventory},
{"проверь состояние локального канала", interaction.InformationRequestCognitiveChannelStatus},
{"нет связи с ИИ, восстанови канал", interaction.InformationRequestCognitiveRecovery},