feat: implement QuestionBank CRUD with pagination and template query

- Add pagination support to findAll (page, limit query params)
- Add findByTemplateId method to service
- Add GET /by-template/:templateId endpoint to controller
- Service already includes CRUD for QuestionBank and QuestionBankItem
This commit is contained in:
Developer
2026-04-23 17:19:11 +08:00
commit 0a9588abb7
492 changed files with 112453 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
// server/src/defaults.ts
import { AppSettings, ModelConfig, ModelType } from './types'; // Import from local types
export const DEFAULT_MODELS: ModelConfig[] = [];
export const DEFAULT_SETTINGS: AppSettings = {
selectedLLMId: '',
selectedEmbeddingId: '',
selectedRerankId: '',
temperature: 0.3,
maxTokens: 8192,
enableRerank: false,
topK: 4,
similarityThreshold: 0.3,
rerankSimilarityThreshold: 0.5,
enableFullTextSearch: false,
hybridVectorWeight: 0.7,
enableQueryExpansion: false,
enableHyDE: false,
chunkSize: 1000,
chunkOverlap: 100,
language: 'zh',
};