- EmbeddingService: OpenAI 兼容 embedding API 客户端(单条+批量) - 从 settings 表读取配置(base_url/api_key/model) - KnowledgeSearchRepository: pgvector 余弦相似度搜索(references+guides UNION) - format_vector 辅助函数,Embedding 失败降级为 NULL - 6 个 embedding 单元测试通过
21 lines
421 B
Rust
21 lines
421 B
Rust
pub mod analysis;
|
|
pub mod analysis_queue;
|
|
pub mod auto_analysis;
|
|
pub mod cache;
|
|
pub mod comparison;
|
|
pub mod cost;
|
|
pub mod dialysis_risk_scorer;
|
|
pub mod embedding;
|
|
pub mod feature_flag_service;
|
|
pub mod insight_service;
|
|
pub mod local_rules;
|
|
pub mod output_parser;
|
|
pub mod post_process;
|
|
pub mod prompt;
|
|
pub mod quota;
|
|
pub mod reanalysis;
|
|
pub mod risk_service;
|
|
pub mod suggestion;
|
|
pub mod suggestion_feedback;
|
|
pub mod usage;
|