* fix: chat variable sync

* feat: chat save variable config

* fix: target handle hidden

* adapt v1 chat init

* adapt v1 chat init

* adapt v1 chat init

* adapt v1 chat init
This commit is contained in:
Archer
2024-05-08 19:49:17 +08:00
committed by GitHub
parent 7b75a99ba2
commit 3c6e5a6e00
20 changed files with 332 additions and 259 deletions

View File

@@ -41,6 +41,10 @@ export function reRankRecall({
.then((data) => {
addLog.info('ReRank finish:', { time: Date.now() - start });
if (!data?.results || data?.results?.length === 0) {
addLog.error('ReRank error, empty result', data);
}
return data?.results?.map((item) => ({
id: documents[item.index].id,
score: item.relevance_score

View File

@@ -61,7 +61,15 @@ const ChatSchema = new Schema({
outLinkUid: {
type: String
},
variableList: {
type: Array
},
welcomeText: {
type: String
},
variables: {
// variable value
type: Object,
default: {}
},