@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
54 lines (42 loc) • 1 kB
text/typescript
import { FilesConfigItem } from '../user/settings/filesConfig';
export enum KnowledgeBaseTabs {
Files = 'files',
Settings = 'Settings',
Testing = 'testing',
}
export interface KnowledgeBaseItem {
avatar: string | null;
createdAt: Date;
description?: string | null;
enabled?: boolean;
id: string;
isPublic: boolean | null;
name: string;
settings: any;
// different types of knowledge bases need to be distinguished
type: string | null;
updatedAt: Date;
}
export interface CreateKnowledgeBaseParams {
avatar?: string;
description?: string;
name: string;
}
export enum KnowledgeType {
File = 'file',
KnowledgeBase = 'knowledgeBase',
}
export interface KnowledgeItem {
avatar?: string | null;
description?: string | null;
enabled?: boolean;
fileType?: string;
id: string;
name: string;
type: KnowledgeType;
}
export interface SystemEmbeddingConfig {
embeddingModel: FilesConfigItem;
queryMode: string;
rerankerModel: FilesConfigItem;
}