mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 10:28:42 +00:00
kb
This commit is contained in:
@@ -56,7 +56,7 @@ export async function generateVector(): Promise<any> {
|
||||
];
|
||||
|
||||
// 生成词向量
|
||||
const vectors = await getVector({
|
||||
const { vectors } = await getVector({
|
||||
model: data.model,
|
||||
input: dataItems.map((item) => item.q),
|
||||
userId
|
||||
|
@@ -19,6 +19,11 @@ const kbSchema = new Schema({
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
model: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: 'text-embedding-ada-002'
|
||||
},
|
||||
tags: {
|
||||
type: [String],
|
||||
default: []
|
||||
|
Reference in New Issue
Block a user