4.6.3-website dataset (#532)

This commit is contained in:
Archer
2023-12-03 20:45:57 +08:00
committed by GitHub
parent b916183848
commit a9ae270335
122 changed files with 3793 additions and 1360 deletions

View File

@@ -79,6 +79,9 @@ const DatasetDataSchema = new Schema({
chunkIndex: {
type: Number,
default: 0
},
inited: {
type: Boolean
}
});
@@ -88,7 +91,7 @@ try {
DatasetDataSchema.index({ collectionId: 1 });
// full text index
DatasetDataSchema.index({ datasetId: 1, fullTextToken: 'text' });
DatasetDataSchema.index({ fullTextToken: 1 });
DatasetDataSchema.index({ inited: 1 });
} catch (error) {
console.log(error);
}