@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.
21 lines (16 loc) • 620 B
text/typescript
import { StateCreator } from 'zustand/vanilla';
import { KnowledgeBaseStore } from '@/store/knowledgeBase/store';
import { RAGEvalDatasetAction, createRagEvalDatasetSlice } from './dataset';
import { RAGEvalEvaluationAction, createRagEvalEvaluationSlice } from './evaluation';
export interface RAGEvalAction extends RAGEvalDatasetAction, RAGEvalEvaluationAction {
// empty
}
export const createRagEvalSlice: StateCreator<
KnowledgeBaseStore,
[['zustand/devtools', never]],
[],
RAGEvalAction
> = (...params) => ({
...createRagEvalDatasetSlice(...params),
...createRagEvalEvaluationSlice(...params),
});