feat: model related kb

This commit is contained in:
archer
2023-05-17 22:09:38 +08:00
parent a79429fdcd
commit 5bf95bd846
16 changed files with 178 additions and 117 deletions

View File

@@ -38,7 +38,7 @@ export interface ModelSchema {
status: `${ModelStatusEnum}`;
updateTime: number;
chat: {
useKb: boolean;
relatedKbs: string[];
searchMode: `${ModelVectorSearchModeEnum}`;
systemPrompt: string;
temperature: number;
@@ -50,13 +50,6 @@ export interface ModelSchema {
intro: string;
collection: number;
};
security: {
domain: string[];
contextMaxLen: number;
contentMaxLen: number;
expiredTime: number;
maxLoadAmount: number;
};
}
export interface ModelPopulate extends ModelSchema {