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:
@@ -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',
|
||||
};
|
||||
Reference in New Issue
Block a user