diff --git a/src/adapters/makeIAMessage.ts b/src/adapters/makeIAMessage.ts
index e8a60fb..8bb08bb 100644
--- a/src/adapters/makeIAMessage.ts
+++ b/src/adapters/makeIAMessage.ts
@@ -14,9 +14,10 @@ export function makeIAMessage(response: BHLQuestResponse): BHLQuestMessage {
(item): BHLQuestMessageReference =>
({
link: item.outlink,
+ pageId: item.pageId,
+ score: item.score,
text: item.text,
title: item.reference,
- pageId: item.pageId,
pageIndex: item.pageIndex,
pages: item.pages.map((item) => ({
id: item.id,
diff --git a/src/components/Chat/BHLQuest/BHLQuestMessage.vue b/src/components/Chat/BHLQuest/BHLQuestMessage.vue
index 3232df0..feb2deb 100644
--- a/src/components/Chat/BHLQuest/BHLQuestMessage.vue
+++ b/src/components/Chat/BHLQuest/BHLQuestMessage.vue
@@ -8,14 +8,14 @@
/>
I cannot provide an answer to your question.
- References
+ References
@@ -70,6 +81,7 @@ const {
openSettings,
referenceExpanded,
referencePreformattedText,
+ referenceScore,
parameters
} = useSettings()
diff --git a/src/components/VCard.vue b/src/components/VCard.vue
index 5691ff9..f1ff216 100644
--- a/src/components/VCard.vue
+++ b/src/components/VCard.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/store/settings.ts b/src/store/settings.ts
index e70843c..d419b27 100644
--- a/src/store/settings.ts
+++ b/src/store/settings.ts
@@ -6,6 +6,7 @@ const state = reactive
({
openSettings: true,
referenceExpanded: true,
referencePreformattedText: true,
+ referenceScore: true,
parameters: {
scoreThreshold: 0.65,
maxResults: 5
diff --git a/src/types/BHLQuestMessage.ts b/src/types/BHLQuestMessage.ts
index 12fde2f..4db4097 100644
--- a/src/types/BHLQuestMessage.ts
+++ b/src/types/BHLQuestMessage.ts
@@ -2,11 +2,12 @@ import { ChatMessage } from './ChatMessage'
export type BHLQuestMessageReference = {
link: string
- text: string[]
- title: string
- pageIndex: number
pageId: number
+ pageIndex: number
pages: Page[]
+ score: number
+ text: string[]
+ title: string
}
type Page = {
diff --git a/src/types/StoreSettings.ts b/src/types/StoreSettings.ts
index 7dd344c..4028119 100644
--- a/src/types/StoreSettings.ts
+++ b/src/types/StoreSettings.ts
@@ -1,8 +1,9 @@
export type StoreSettings = {
keepChat: boolean
- referenceExpanded: boolean
openSettings: boolean
+ referenceExpanded: boolean
referencePreformattedText: boolean
+ referenceScore: boolean
parameters: RequestParameters
}