mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ACS-8573] Allow user to ask question without file selection
This commit is contained in:
committed by
Aleksander Sklorz
parent
8abc6d495d
commit
d9258e88ed
@@ -93,6 +93,14 @@ export class AgentService {
|
|||||||
description:
|
description:
|
||||||
'Your Claims Doc Agent streamlines the extraction, analysis, and management of data from insurance claims documents.'
|
'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.'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -705,7 +705,6 @@
|
|||||||
"KNOWLEDGE_RETRIEVAL": {
|
"KNOWLEDGE_RETRIEVAL": {
|
||||||
"SEARCH": {
|
"SEARCH": {
|
||||||
"WARNINGS": {
|
"WARNINGS": {
|
||||||
"NO_FILES_SELECTED": "Please select some file.",
|
|
||||||
"TOO_MANY_FILES_SELECTED": "Please select no more than {{ maxFiles }} files.",
|
"TOO_MANY_FILES_SELECTED": "Please select no more than {{ maxFiles }} files.",
|
||||||
"NON_TEXT_FILE_SELECTED": "Only text related files are compatible with AI Agents.",
|
"NON_TEXT_FILE_SELECTED": "Only text related files are compatible with AI Agents.",
|
||||||
"FOLDER_SELECTED": "Folders are not compatible with AI Agents."
|
"FOLDER_SELECTED": "Folders are not compatible with AI Agents."
|
||||||
|
@@ -129,8 +129,6 @@ describe('SearchAiService', () => {
|
|||||||
translateService = TestBed.inject(TranslateService);
|
translateService = TestBed.inject(TranslateService);
|
||||||
spyOn(translateService, 'instant').and.callFake((key) => {
|
spyOn(translateService, 'instant').and.callFake((key) => {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NO_FILES_SELECTED':
|
|
||||||
return noFilesSelectedError;
|
|
||||||
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.TOO_MANY_FILES_SELECTED':
|
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.TOO_MANY_FILES_SELECTED':
|
||||||
return tooManyFilesSelectedError;
|
return tooManyFilesSelectedError;
|
||||||
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NON_TEXT_FILE_SELECTED':
|
case 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NON_TEXT_FILE_SELECTED':
|
||||||
|
@@ -133,11 +133,6 @@ export class SearchAiService {
|
|||||||
key: string;
|
key: string;
|
||||||
[parameter: string]: number | string;
|
[parameter: string]: number | string;
|
||||||
}[] = [];
|
}[] = [];
|
||||||
if (selectedNodesState.count === 0) {
|
|
||||||
messages.push({
|
|
||||||
key: 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.NO_FILES_SELECTED'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (selectedNodesState.count > maxSelectedNodes) {
|
if (selectedNodesState.count > maxSelectedNodes) {
|
||||||
messages.push({
|
messages.push({
|
||||||
key: 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.TOO_MANY_FILES_SELECTED',
|
key: 'KNOWLEDGE_RETRIEVAL.SEARCH.WARNINGS.TOO_MANY_FILES_SELECTED',
|
||||||
|
Reference in New Issue
Block a user