mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
4.8 test (#1394)
* 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:
@@ -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
|
||||
|
@@ -61,7 +61,15 @@ const ChatSchema = new Schema({
|
||||
outLinkUid: {
|
||||
type: String
|
||||
},
|
||||
|
||||
variableList: {
|
||||
type: Array
|
||||
},
|
||||
welcomeText: {
|
||||
type: String
|
||||
},
|
||||
variables: {
|
||||
// variable value
|
||||
type: Object,
|
||||
default: {}
|
||||
},
|
||||
|
Reference in New Issue
Block a user