* 新功能: - 支持在线 Embeddings:zhipu-api, qwen-api, minimax-api, qianfan-api - API 增加 /other/embed_texts 接口 - init_database.py 增加 --embed-model 参数,可以指定使用的嵌入模型(本地或在线均可) 问题修复: - API 中 list_config_models 会删除 ONLINE_LLM_MODEL 中的敏感信息,导致第二轮API请求错误 开发者: - 优化 kb_service 中 Embeddings 操作: - 统一加载接口: server.utils.load_embeddings,利用全局缓存避免各处 Embeddings 传参 - 统一文本嵌入接口:server.embedding_api.[embed_texts, embed_documents] |
||
|---|---|---|
| .. | ||
| agent | ||
| api | ||
| custom_splitter | ||
| document_loader | ||
| kb_vector_db | ||
| samples | ||
| test_migrate.py | ||
| test_online_api.py | ||