mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
Change embedding (#1463)
* rebuild embedding queue * dataset menu * feat: rebuild data api * feat: ui change embedding model * dataset ui * feat: rebuild index ui * rename collection
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
TeamMemberCollectionName
|
||||
} from '@fastgpt/global/support/user/team/constant';
|
||||
|
||||
export const DatasetTrainingCollectionName = 'dataset.trainings';
|
||||
export const DatasetTrainingCollectionName = 'dataset_trainings';
|
||||
|
||||
const TrainingDataSchema = new Schema({
|
||||
teamId: {
|
||||
@@ -35,8 +35,7 @@ const TrainingDataSchema = new Schema({
|
||||
},
|
||||
billId: {
|
||||
// concat bill
|
||||
type: String,
|
||||
default: ''
|
||||
type: Schema.Types.ObjectId
|
||||
},
|
||||
mode: {
|
||||
type: String,
|
||||
@@ -78,6 +77,9 @@ const TrainingDataSchema = new Schema({
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
dataId: {
|
||||
type: Schema.Types.ObjectId
|
||||
},
|
||||
indexes: {
|
||||
type: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user