v4.6.6-search test adapt diff search mode (#685)

This commit is contained in:
Archer
2024-01-03 15:40:03 +08:00
committed by GitHub
parent c766a0ed8a
commit 13b10720ac
57 changed files with 1101 additions and 612 deletions

View File

@@ -80,8 +80,8 @@ const ChatItemSchema = new Schema({
});
try {
ChatItemSchema.index({ dataId: -1 });
ChatItemSchema.index({ time: -1 });
ChatItemSchema.index({ userId: 1 });
ChatItemSchema.index({ appId: 1 });
ChatItemSchema.index({ chatId: 1 });
ChatItemSchema.index({ userGoodFeedback: 1 });

View File

@@ -86,6 +86,8 @@ export const getSameRawTextCollection = async ({
datasetId: string;
hashRawText?: string;
}) => {
if (!hashRawText) return undefined;
const collection = await MongoDatasetCollection.findOne({
datasetId,
hashRawText