@sinequa/assistant 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/chat/charts/chart/chart.component.d.ts +13 -13
  2. package/chat/chat-message/chat-message.component.d.ts +85 -81
  3. package/chat/chat-message/i18n/en.json +11 -0
  4. package/chat/chat-message/i18n/fr.json +11 -0
  5. package/chat/chat-reference/chat-reference.component.d.ts +14 -14
  6. package/chat/chat-reference/i18n/en.json +4 -0
  7. package/chat/chat-reference/i18n/fr.json +4 -0
  8. package/chat/chat-settings-v3/chat-settings-v3.component.d.ts +48 -50
  9. package/chat/chat-settings-v3/i18n/en.json +14 -0
  10. package/chat/chat-settings-v3/i18n/fr.json +14 -0
  11. package/chat/chat.component.d.ts +388 -1405
  12. package/chat/chat.service.d.ts +247 -228
  13. package/chat/debug-message/debug-message.component.d.ts +17 -17
  14. package/chat/debug-message/i18n/en.json +3 -0
  15. package/chat/debug-message/i18n/fr.json +3 -0
  16. package/chat/dialogs/delete-saved-chat.component.d.ts +22 -0
  17. package/chat/dialogs/i18n/en.json +19 -0
  18. package/chat/dialogs/i18n/fr.json +19 -0
  19. package/chat/dialogs/rename-saved-chat.component.d.ts +21 -0
  20. package/chat/dialogs/updates.component.d.ts +15 -0
  21. package/chat/documents-upload/document-list/document-list.component.d.ts +68 -77
  22. package/chat/documents-upload/document-overview/document-overview.component.d.ts +31 -41
  23. package/chat/documents-upload/document-upload/document-upload.component.d.ts +96 -98
  24. package/chat/documents-upload/documents-upload.model.d.ts +66 -66
  25. package/chat/documents-upload/documents-upload.service.d.ts +170 -174
  26. package/chat/documents-upload/i18n/en.json +24 -0
  27. package/chat/documents-upload/i18n/fr.json +24 -0
  28. package/chat/format-icon/format-icon.component.d.ts +10 -10
  29. package/chat/format-icon/icons.d.ts +5 -5
  30. package/chat/i18n/en.json +42 -0
  31. package/chat/i18n/fr.json +42 -0
  32. package/chat/index.d.ts +5 -5
  33. package/chat/initials-avatar/initials-avatar.component.d.ts +35 -35
  34. package/chat/instance-manager.service.d.ts +28 -28
  35. package/chat/pipes/message-content.pipe.d.ts +16 -0
  36. package/chat/prompt.component.d.ts +25 -21
  37. package/chat/public-api.d.ts +17 -17
  38. package/chat/references/i18n/en.json +6 -0
  39. package/chat/references/i18n/fr.json +6 -0
  40. package/chat/references/inline-image-reference.d.ts +21 -0
  41. package/chat/references/inline-page-reference.d.ts +21 -0
  42. package/chat/rest-chat.service.d.ts +31 -33
  43. package/chat/saved-chats/i18n/en.json +4 -0
  44. package/chat/saved-chats/i18n/fr.json +4 -0
  45. package/chat/saved-chats/saved-chats.component.d.ts +30 -36
  46. package/chat/services/app.service.d.ts +8 -0
  47. package/chat/services/dialog.service.d.ts +12 -0
  48. package/chat/services/notification.service.d.ts +10 -0
  49. package/chat/services/principal.service.d.ts +7 -0
  50. package/chat/services/search.service.d.ts +7 -0
  51. package/chat/services/signalR.web.service.d.ts +45 -0
  52. package/chat/services/ui.service.d.ts +13 -0
  53. package/chat/services/user-settings.service.d.ts +7 -0
  54. package/chat/token-progress-bar/i18n/en.json +4 -0
  55. package/chat/token-progress-bar/i18n/fr.json +4 -0
  56. package/chat/token-progress-bar/token-progress-bar.component.d.ts +24 -27
  57. package/chat/tooltip/tooltip.component.d.ts +12 -0
  58. package/chat/tooltip/tooltip.directive.d.ts +81 -0
  59. package/chat/types/message-content.types.d.ts +54 -0
  60. package/chat/types/message-reference.types.d.ts +11 -0
  61. package/chat/types.d.ts +913 -873
  62. package/chat/unified-plugins/embedded-image-reference.plugin.d.ts +3 -0
  63. package/chat/unified-plugins/embedded-page-reference.plugin.d.ts +3 -0
  64. package/chat/utils/assistant-json.d.ts +2 -0
  65. package/chat/websocket-chat.service.d.ts +102 -103
  66. package/esm2022/chat/charts/chart/chart.component.mjs +40 -0
  67. package/esm2022/chat/chat-message/chat-message.component.mjs +351 -0
  68. package/esm2022/chat/chat-reference/chat-reference.component.mjs +40 -0
  69. package/esm2022/chat/chat-settings-v3/chat-settings-v3.component.mjs +118 -0
  70. package/esm2022/chat/chat.component.mjs +1090 -0
  71. package/esm2022/chat/chat.service.mjs +417 -0
  72. package/esm2022/chat/debug-message/debug-message.component.mjs +43 -0
  73. package/esm2022/chat/dialogs/delete-saved-chat.component.mjs +81 -0
  74. package/esm2022/chat/dialogs/rename-saved-chat.component.mjs +84 -0
  75. package/esm2022/chat/dialogs/updates.component.mjs +61 -0
  76. package/esm2022/chat/documents-upload/document-list/document-list.component.mjs +140 -0
  77. package/esm2022/chat/documents-upload/document-overview/document-overview.component.mjs +65 -0
  78. package/esm2022/chat/documents-upload/document-upload/document-upload.component.mjs +256 -0
  79. package/{esm2020 → esm2022}/chat/documents-upload/documents-upload.model.mjs +1 -1
  80. package/esm2022/chat/documents-upload/documents-upload.service.mjs +291 -0
  81. package/{esm2020 → esm2022}/chat/format-icon/format-icon.component.mjs +23 -23
  82. package/{esm2020 → esm2022}/chat/format-icon/icons.mjs +137 -137
  83. package/{esm2020 → esm2022}/chat/initials-avatar/initials-avatar.component.mjs +60 -60
  84. package/esm2022/chat/instance-manager.service.mjs +46 -0
  85. package/esm2022/chat/pipes/message-content.pipe.mjs +34 -0
  86. package/esm2022/chat/prompt.component.mjs +88 -0
  87. package/{esm2020 → esm2022}/chat/public-api.mjs +18 -18
  88. package/esm2022/chat/references/inline-image-reference.mjs +110 -0
  89. package/esm2022/chat/references/inline-page-reference.mjs +110 -0
  90. package/esm2022/chat/rest-chat.service.mjs +296 -0
  91. package/esm2022/chat/saved-chats/saved-chats.component.mjs +82 -0
  92. package/esm2022/chat/services/app.service.mjs +19 -0
  93. package/esm2022/chat/services/dialog.service.mjs +40 -0
  94. package/esm2022/chat/services/notification.service.mjs +25 -0
  95. package/esm2022/chat/services/principal.service.mjs +16 -0
  96. package/esm2022/chat/services/search.service.mjs +13 -0
  97. package/esm2022/chat/services/signalR.web.service.mjs +79 -0
  98. package/esm2022/chat/services/ui.service.mjs +61 -0
  99. package/esm2022/chat/services/user-settings.service.mjs +22 -0
  100. package/{esm2020 → esm2022}/chat/sinequa-assistant-chat.mjs +4 -4
  101. package/esm2022/chat/token-progress-bar/token-progress-bar.component.mjs +52 -0
  102. package/esm2022/chat/tooltip/tooltip.component.mjs +44 -0
  103. package/esm2022/chat/tooltip/tooltip.directive.mjs +203 -0
  104. package/esm2022/chat/types/message-content.types.mjs +2 -0
  105. package/esm2022/chat/types/message-reference.types.mjs +2 -0
  106. package/esm2022/chat/types.mjs +130 -0
  107. package/esm2022/chat/unified-plugins/embedded-image-reference.plugin.mjs +57 -0
  108. package/esm2022/chat/unified-plugins/embedded-page-reference.plugin.mjs +57 -0
  109. package/esm2022/chat/utils/assistant-json.mjs +12 -0
  110. package/esm2022/chat/websocket-chat.service.mjs +654 -0
  111. package/{esm2020 → esm2022}/public-api.mjs +2 -2
  112. package/{esm2020 → esm2022}/sinequa-assistant.mjs +4 -4
  113. package/fesm2022/sinequa-assistant-chat.mjs +5340 -0
  114. package/fesm2022/sinequa-assistant-chat.mjs.map +1 -0
  115. package/{fesm2015 → fesm2022}/sinequa-assistant.mjs +3 -3
  116. package/index.d.ts +5 -5
  117. package/package.json +52 -25
  118. package/public-api.d.ts +1 -1
  119. package/chat/messages/de.d.ts +0 -4
  120. package/chat/messages/en.d.ts +0 -4
  121. package/chat/messages/fr.d.ts +0 -4
  122. package/chat/messages/index.d.ts +0 -4
  123. package/esm2020/chat/charts/chart/chart.component.mjs +0 -40
  124. package/esm2020/chat/chat-message/chat-message.component.mjs +0 -263
  125. package/esm2020/chat/chat-reference/chat-reference.component.mjs +0 -40
  126. package/esm2020/chat/chat-settings-v3/chat-settings-v3.component.mjs +0 -117
  127. package/esm2020/chat/chat.component.mjs +0 -1069
  128. package/esm2020/chat/chat.service.mjs +0 -333
  129. package/esm2020/chat/debug-message/debug-message.component.mjs +0 -43
  130. package/esm2020/chat/documents-upload/document-list/document-list.component.mjs +0 -191
  131. package/esm2020/chat/documents-upload/document-overview/document-overview.component.mjs +0 -80
  132. package/esm2020/chat/documents-upload/document-upload/document-upload.component.mjs +0 -258
  133. package/esm2020/chat/documents-upload/documents-upload.service.mjs +0 -289
  134. package/esm2020/chat/instance-manager.service.mjs +0 -46
  135. package/esm2020/chat/messages/de.mjs +0 -4
  136. package/esm2020/chat/messages/en.mjs +0 -4
  137. package/esm2020/chat/messages/fr.mjs +0 -4
  138. package/esm2020/chat/messages/index.mjs +0 -9
  139. package/esm2020/chat/prompt.component.mjs +0 -88
  140. package/esm2020/chat/rest-chat.service.mjs +0 -241
  141. package/esm2020/chat/saved-chats/saved-chats.component.mjs +0 -175
  142. package/esm2020/chat/token-progress-bar/token-progress-bar.component.mjs +0 -54
  143. package/esm2020/chat/types.mjs +0 -112
  144. package/esm2020/chat/websocket-chat.service.mjs +0 -641
  145. package/fesm2015/sinequa-assistant-chat.mjs +0 -4200
  146. package/fesm2015/sinequa-assistant-chat.mjs.map +0 -1
  147. package/fesm2020/sinequa-assistant-chat.mjs +0 -4171
  148. package/fesm2020/sinequa-assistant-chat.mjs.map +0 -1
  149. package/fesm2020/sinequa-assistant.mjs +0 -9
  150. package/fesm2020/sinequa-assistant.mjs.map +0 -1
  151. /package/{fesm2015 → fesm2022}/sinequa-assistant.mjs.map +0 -0
@@ -1,13 +1,13 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { Chart } from 'chart.js';
3
- import * as i0 from "@angular/core";
4
- export declare class ChartComponent implements OnChanges {
5
- rawChartData: string;
6
- chart: Chart;
7
- private debounceTimer;
8
- constructor();
9
- ngOnChanges(changes: SimpleChanges): void;
10
- private initializeChart;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "sq-assistant-chart", never, { "rawChartData": "rawChartData"; }, {}, never, never, true>;
13
- }
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Chart } from 'chart.js';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ChartComponent implements OnChanges {
5
+ rawChartData: string;
6
+ chart: Chart;
7
+ private debounceTimer;
8
+ constructor();
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ private initializeChart;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "sq-assistant-chart", never, { "rawChartData": { "alias": "rawChartData"; "required": false; }; }, {}, never, never, true, never>;
13
+ }
@@ -1,81 +1,85 @@
1
- import { EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef, AfterViewInit, ElementRef } from "@angular/core";
2
- import { PrincipalWebService } from "@sinequa/core/web-services";
3
- import { SearchService } from "@sinequa/components/search";
4
- import { ChatContextAttachment, ChatMessage, SuggestedAction } from "../types";
5
- import { Processor } from "unified";
6
- import { Node } from "unist";
7
- import { UIService } from "@sinequa/components/utils";
8
- import "prismjs-components-importer/esm";
9
- import 'prismjs/plugins/autoloader/prism-autoloader';
10
- import * as i0 from "@angular/core";
11
- export declare class ChatMessageComponent implements OnChanges, AfterViewInit {
12
- searchService: SearchService;
13
- ui: UIService;
14
- principalService: PrincipalWebService;
15
- cdr: ChangeDetectorRef;
16
- el: ElementRef;
17
- message: ChatMessage;
18
- conversation: ChatMessage[];
19
- suggestedActions: SuggestedAction[] | undefined;
20
- assistantMessageIcon: string;
21
- userMessageIcon: string;
22
- connectionErrorMessageIcon: string;
23
- searchWarningMessageIcon: string;
24
- streaming: boolean;
25
- canEdit: boolean;
26
- canRegenerate: boolean;
27
- canCopy: boolean;
28
- canDebug: boolean;
29
- canLike: boolean;
30
- canDislike: boolean;
31
- openDocument: EventEmitter<{
32
- reference: ChatContextAttachment;
33
- partId?: number | undefined;
34
- }>;
35
- openPreview: EventEmitter<{
36
- reference: ChatContextAttachment;
37
- partId?: number | undefined;
38
- }>;
39
- suggestAction: EventEmitter<SuggestedAction>;
40
- edit: EventEmitter<ChatMessage>;
41
- copy: EventEmitter<ChatMessage>;
42
- regenerate: EventEmitter<ChatMessage>;
43
- like: EventEmitter<any>;
44
- dislike: EventEmitter<any>;
45
- debug: EventEmitter<ChatMessage>;
46
- processor: Processor;
47
- references: string[];
48
- referenceMap: Map<string, ChatContextAttachment>;
49
- showReferences: boolean;
50
- collapseProgress: boolean;
51
- iconSize: number;
52
- hiddenTooltip: boolean;
53
- constructor(searchService: SearchService, ui: UIService, principalService: PrincipalWebService, cdr: ChangeDetectorRef, el: ElementRef);
54
- ngOnChanges(changes: SimpleChanges): void;
55
- ngAfterViewInit(): void;
56
- get name(): string;
57
- get isAdmin(): boolean;
58
- /**
59
- * This Unified plugin looks a text nodes and replaces any reference in the
60
- * form [1], [2.3], etc. with custom nodes of type "chat-reference".
61
- */
62
- referencePlugin: (tree: Node) => Node<import("unist").Data>;
63
- placeholderPlugin: (tree: Node) => Node<import("unist").Data>;
64
- getLinkText(node: any): string;
65
- /**
66
- * Reformat [ids: 12.2, 42.5] to [12.2][42.5]
67
- */
68
- reformatReferences(content: string): string;
69
- /**
70
- * Match all references in a given message
71
- */
72
- getReferenceMatches(content: string): RegExpMatchArray[];
73
- private _copyToClipboard;
74
- copyMessage(message: ChatMessage): void;
75
- copyCode(code: string): void;
76
- openAttachmentPreview(attachment: ChatContextAttachment, partId?: number): void;
77
- openOriginalAttachment(attachment: ChatContextAttachment, partId?: number): void;
78
- hideTooltip(): void;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageComponent, "sq-chat-message", never, { "message": "message"; "conversation": "conversation"; "suggestedActions": "suggestedActions"; "assistantMessageIcon": "assistantMessageIcon"; "userMessageIcon": "userMessageIcon"; "connectionErrorMessageIcon": "connectionErrorMessageIcon"; "searchWarningMessageIcon": "searchWarningMessageIcon"; "streaming": "streaming"; "canEdit": "canEdit"; "canRegenerate": "canRegenerate"; "canCopy": "canCopy"; "canDebug": "canDebug"; "canLike": "canLike"; "canDislike": "canDislike"; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; "suggestAction": "suggestAction"; "edit": "edit"; "copy": "copy"; "regenerate": "regenerate"; "like": "like"; "dislike": "dislike"; "debug": "debug"; }, never, never, true>;
81
- }
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
2
+ import "prismjs-components-importer/esm";
3
+ import "prismjs/plugins/autoloader/prism-autoloader";
4
+ import { Processor } from "unified";
5
+ import { Node } from "unist";
6
+ import { PrincipalService } from "../services/principal.service";
7
+ import { UIService } from "../services/ui.service";
8
+ import { ChatContextAttachment, ChatMessage, SuggestedAction } from "../types";
9
+ import { MessageImageReference } from "../types/message-reference.types";
10
+ import * as i0 from "@angular/core";
11
+ export declare class ChatMessageComponent implements OnChanges, AfterViewInit {
12
+ ui: UIService;
13
+ principalService: PrincipalService;
14
+ cdr: ChangeDetectorRef;
15
+ el: ElementRef;
16
+ message: ChatMessage;
17
+ conversation: ChatMessage[];
18
+ suggestedActions: SuggestedAction[] | undefined;
19
+ assistantMessageIcon: string;
20
+ userMessageIcon: string;
21
+ connectionErrorMessageIcon: string;
22
+ searchWarningMessageIcon: string;
23
+ streaming: boolean;
24
+ canEdit: boolean;
25
+ canRegenerate: boolean;
26
+ canCopy: boolean;
27
+ canDebug: boolean;
28
+ canLike: boolean;
29
+ canDislike: boolean;
30
+ openDocument: EventEmitter<{
31
+ reference: ChatContextAttachment;
32
+ partId?: number;
33
+ }>;
34
+ openPreview: EventEmitter<{
35
+ reference: ChatContextAttachment;
36
+ partId?: number;
37
+ }>;
38
+ suggestAction: EventEmitter<SuggestedAction>;
39
+ edit: EventEmitter<ChatMessage>;
40
+ copy: EventEmitter<ChatMessage>;
41
+ regenerate: EventEmitter<ChatMessage>;
42
+ like: EventEmitter<any>;
43
+ dislike: EventEmitter<any>;
44
+ debug: EventEmitter<ChatMessage>;
45
+ processor: Processor;
46
+ references: string[];
47
+ referenceMap: Map<string, ChatContextAttachment>;
48
+ imageReferencesMap: Map<string, MessageImageReference>;
49
+ pageReferencesMap: Map<string, MessageImageReference>;
50
+ showReferences: boolean;
51
+ collapseProgress: boolean;
52
+ iconSize: number;
53
+ hiddenTooltip: boolean;
54
+ constructor(ui: UIService, principalService: PrincipalService, cdr: ChangeDetectorRef, el: ElementRef);
55
+ ngOnChanges(changes: SimpleChanges): void;
56
+ ngAfterViewInit(): void;
57
+ getEmbeddedImageReference(ref: string): MessageImageReference | undefined;
58
+ getEmbeddedPageReference(ref: string): MessageImageReference | undefined;
59
+ get name(): string;
60
+ get isAdmin(): boolean;
61
+ processMessageType(message: ChatMessage): void;
62
+ /**
63
+ * This Unified plugin looks a text nodes and replaces any reference in the
64
+ * form [1], [2.3], etc. with custom nodes of type "chat-reference".
65
+ */
66
+ referencePlugin: (tree: Node) => Node<import("unist").Data>;
67
+ placeholderPlugin: (tree: Node) => Node<import("unist").Data>;
68
+ getLinkText(node: any): string;
69
+ /**
70
+ * Reformat [ids: 12.2, 42.5] to [12.2][42.5]
71
+ */
72
+ reformatReferences(content: string): string;
73
+ /**
74
+ * Match all references in a given message
75
+ */
76
+ getReferenceMatches(content: string): RegExpExecArray[];
77
+ private _copyToClipboard;
78
+ copyMessage(message: ChatMessage): void;
79
+ copyCode(code: string): void;
80
+ openAttachmentPreview(attachment: ChatContextAttachment, partId?: number): void;
81
+ openOriginalAttachment(attachment: ChatContextAttachment, partId?: number): void;
82
+ hideTooltip(): void;
83
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageComponent, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageComponent, "sq-chat-message", never, { "message": { "alias": "message"; "required": false; }; "conversation": { "alias": "conversation"; "required": false; }; "suggestedActions": { "alias": "suggestedActions"; "required": false; }; "assistantMessageIcon": { "alias": "assistantMessageIcon"; "required": false; }; "userMessageIcon": { "alias": "userMessageIcon"; "required": false; }; "connectionErrorMessageIcon": { "alias": "connectionErrorMessageIcon"; "required": false; }; "searchWarningMessageIcon": { "alias": "searchWarningMessageIcon"; "required": false; }; "streaming": { "alias": "streaming"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "canRegenerate": { "alias": "canRegenerate"; "required": false; }; "canCopy": { "alias": "canCopy"; "required": false; }; "canDebug": { "alias": "canDebug"; "required": false; }; "canLike": { "alias": "canLike"; "required": false; }; "canDislike": { "alias": "canDislike"; "required": false; }; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; "suggestAction": "suggestAction"; "edit": "edit"; "copy": "copy"; "regenerate": "regenerate"; "like": "like"; "dislike": "dislike"; "debug": "debug"; }, never, never, true, never>;
85
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "viewProgress": "View progress",
3
+ "copyCode": "Copy code",
4
+ "references": "References",
5
+ "copyText": "Copy text",
6
+ "editMessage": "Edit message",
7
+ "likeAnswer": "Like the answer",
8
+ "reportIssue": "Report an issue",
9
+ "regenerateResponse": "Regenerate response",
10
+ "showLogInformation": "Show log information"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "viewProgress": "Voir la progression",
3
+ "copyCode": "Copier le code",
4
+ "references": "Références",
5
+ "copyText": "Copier le texte",
6
+ "editMessage": "Modifier le message",
7
+ "likeAnswer": "Aimer la réponse",
8
+ "reportIssue": "Signaler un problème",
9
+ "regenerateResponse": "Régénérer la réponse",
10
+ "showLogInformation": "Afficher les informations de journal"
11
+ }
@@ -1,14 +1,14 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { ChatContextAttachment, DocumentPart } from '../types';
3
- import * as i0 from "@angular/core";
4
- export declare class ChatReferenceComponent {
5
- reference: string;
6
- attachment: ChatContextAttachment;
7
- partId?: number;
8
- openDocument: EventEmitter<ChatContextAttachment>;
9
- openPreview: EventEmitter<ChatContextAttachment>;
10
- get parts(): DocumentPart[];
11
- expandAttachment(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatReferenceComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatReferenceComponent, "sq-chat-reference", never, { "reference": "reference"; "attachment": "attachment"; "partId": "partId"; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; }, never, never, true>;
14
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ChatContextAttachment, DocumentPart } from '../types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ChatReferenceComponent {
5
+ reference: string;
6
+ attachment: ChatContextAttachment;
7
+ partId?: number;
8
+ openDocument: EventEmitter<ChatContextAttachment>;
9
+ openPreview: EventEmitter<ChatContextAttachment>;
10
+ get parts(): DocumentPart[];
11
+ expandAttachment(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatReferenceComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatReferenceComponent, "sq-chat-reference", never, { "reference": { "alias": "reference"; "required": false; }; "attachment": { "alias": "attachment"; "required": false; }; "partId": { "alias": "partId"; "required": false; }; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; }, never, never, true, never>;
14
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "previewDocument": "Preview Document",
3
+ "openDocument": "Open Document"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "previewDocument": "Aperçu du document",
3
+ "openDocument": "Ouvrir le document"
4
+ }
@@ -1,50 +1,48 @@
1
- import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
- import { Subscription } from "rxjs";
3
- import { AppService } from "@sinequa/core/app-utils";
4
- import { LoginService } from "@sinequa/core/login";
5
- import { PrincipalWebService } from "@sinequa/core/web-services";
6
- import { ChatService } from "../chat.service";
7
- import { InstanceManagerService } from "../instance-manager.service";
8
- import { ChatConfig, GllmModelDescription } from "../types";
9
- import * as i0 from "@angular/core";
10
- export declare class ChatSettingsV3Component implements OnInit, OnDestroy {
11
- /** Define the key based on it, the appropriate chatService instance will be returned from instanceManagerService */
12
- instanceId: string;
13
- _update: EventEmitter<ChatConfig>;
14
- _cancel: EventEmitter<ChatConfig>;
15
- chatService: ChatService;
16
- config: ChatConfig;
17
- subscription: Subscription;
18
- selectedModel: GllmModelDescription | undefined;
19
- functions: {
20
- name: string;
21
- enabled: boolean;
22
- }[];
23
- isAdmin: boolean;
24
- showDebugToggle: boolean;
25
- loginService: LoginService;
26
- instanceManagerService: InstanceManagerService;
27
- principalService: PrincipalWebService;
28
- appService: AppService;
29
- ngOnInit(): void;
30
- ngOnDestroy(): void;
31
- get hasPrompts(): boolean;
32
- get hasAdvancedParameters(): boolean;
33
- get hasModel(): boolean;
34
- instantiateChatService(): void;
35
- onChatModelChange(selectedModel: GllmModelDescription): void;
36
- getFunctionDescription(name: string): string;
37
- toggleFunctionsSelection(name: string): void;
38
- private initFunctionsList;
39
- /**
40
- * Save the new chat config in the chat service and the user preferences
41
- * If the user has never modified the default values, we need to save the hash of the standard default values, as defined by the admin, in order to properly track changes afterwards.
42
- */
43
- save(): void;
44
- /**
45
- * Cancel the current changes
46
- */
47
- cancel(): void;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatSettingsV3Component, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatSettingsV3Component, "sq-chat-settings-v3", never, { "instanceId": "instanceId"; }, { "_update": "update"; "_cancel": "cancel"; }, never, never, true>;
50
- }
1
+ import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+ import { Subscription } from "rxjs";
3
+ import { ChatService } from "../chat.service";
4
+ import { InstanceManagerService } from "../instance-manager.service";
5
+ import { ChatConfig, GllmModelDescription } from "../types";
6
+ import { AppService } from "../services/app.service";
7
+ import { PrincipalService } from "../services/principal.service";
8
+ import * as i0 from "@angular/core";
9
+ export declare class ChatSettingsV3Component implements OnInit, OnDestroy {
10
+ /** Define the key based on it, the appropriate chatService instance will be returned from instanceManagerService */
11
+ instanceId: string;
12
+ _update: EventEmitter<ChatConfig>;
13
+ _cancel: EventEmitter<ChatConfig>;
14
+ chatService: ChatService;
15
+ config: ChatConfig;
16
+ subscription: Subscription;
17
+ selectedModel: GllmModelDescription | undefined;
18
+ functions: {
19
+ name: string;
20
+ enabled: boolean;
21
+ }[];
22
+ isAdmin: boolean;
23
+ showDebugToggle: boolean;
24
+ instanceManagerService: InstanceManagerService;
25
+ principalService: PrincipalService;
26
+ appService: AppService;
27
+ ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ get hasPrompts(): boolean;
30
+ get hasAdvancedParameters(): boolean;
31
+ get hasModel(): boolean;
32
+ instantiateChatService(): void;
33
+ onChatModelChange(selectedModel: GllmModelDescription): void;
34
+ getFunctionDescription(name: string): string;
35
+ toggleFunctionsSelection(name: string): void;
36
+ private initFunctionsList;
37
+ /**
38
+ * Save the new chat config in the chat service and the user preferences
39
+ * If the user has never modified the default values, we need to save the hash of the standard default values, as defined by the admin, in order to properly track changes afterwards.
40
+ */
41
+ save(): Promise<void>;
42
+ /**
43
+ * Cancel the current changes
44
+ */
45
+ cancel(): void;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatSettingsV3Component, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatSettingsV3Component, "sq-chat-settings-v3", never, { "instanceId": { "alias": "instanceId"; "required": false; }; }, { "_update": "update"; "_cancel": "cancel"; }, never, never, true, never>;
48
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "model": "Model",
3
+ "functions": "Functions",
4
+ "debug": "Debug",
5
+ "advancedParameters": "Advanced parameters",
6
+ "temperature": "Temperature",
7
+ "topP": "Top P",
8
+ "MaxGeneratedTokens": "Max generated tokens per answer",
9
+ "Prompts": "Prompts",
10
+ "systemPrompt": "System prompt (hidden)",
11
+ "initialUserPrompt": "Initial user prompt",
12
+ "cancel": "Cancel",
13
+ "save": "Save"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "model": "Modèle",
3
+ "functions": "Fonctions",
4
+ "debug": "Déboguer",
5
+ "advancedParameters": "Paramètres avancés",
6
+ "temperature": "Température",
7
+ "topP": "Top P",
8
+ "MaxGeneratedTokens": "Nombre maximal de tokens générés par réponse",
9
+ "Prompts": "Prompts",
10
+ "systemPrompt": "Prompt système (caché)",
11
+ "initialUserPrompt": "Prompt utilisateur initial",
12
+ "cancel": "Annuler",
13
+ "save": "Enregistrer"
14
+ }