0a9588abb7
- 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
29 lines
597 B
TypeScript
29 lines
597 B
TypeScript
// 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',
|
|
};
|