[ACS-8573] Allow user to ask question without file selection

This commit is contained in:
Jacek Pluta
2024-08-08 16:50:53 +02:00
committed by Aleksander Sklorz
parent 8abc6d495d
commit d9258e88ed
4 changed files with 8 additions and 8 deletions

View File

@@ -93,6 +93,14 @@ export class AgentService {
description:
'Your Claims Doc Agent streamlines the extraction, analysis, and management of data from insurance claims documents.'
}
},
{
entry: {
id: '3',
name: 'Rules & Rates Agent',
description:
'Your Claims Doc Agent streamlines the extraction, analysis, and management of data from insurance claims documents.'
}
}
]
}

View File

@@ -705,7 +705,6 @@
"KNOWLEDGE_RETRIEVAL": {
"SEARCH": {
"WARNINGS": {
"NO_FILES_SELECTED": "Please select some file.",
"TOO_MANY_FILES_SELECTED": "Please select no more than {{ maxFiles }} files.",
"NON_TEXT_FILE_SELECTED": "Only text related files are compatible with AI Agents.",
"FOLDER_SELECTED": "Folders are not compatible with AI Agents."

View File

@@ -129,8 +129,6 @@ describe('SearchAiService', () => {
translateService = TestBed.inject(TranslateService);
spyOn(translateService, 'instant').and.callFake((key) => {
switch (key) {
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NO_FILES_SELECTED':
return noFilesSelectedError;
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.TOO_MANY_FILES_SELECTED':
return tooManyFilesSelectedError;
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NON_TEXT_FILE_SELECTED':

View File

@@ -133,11 +133,6 @@ export class SearchAiService {
key: string;
[parameter: string]: number | string;
}[] = [];
if (selectedNodesState.count === 0) {
messages.push({
key: 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NO_FILES_SELECTED'
});
}
if (selectedNodesState.count > maxSelectedNodes) {
messages.push({
key: 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.TOO_MANY_FILES_SELECTED',