[错误]: 当查询字符串为空时, rag_api /query 返回 500(embeddings 400)
作者: wichtking创建于 2026年9月16日更新于 2026年9月16日
发生了什么?
在一个具有文件搜索功能的代理上启动聊天失败,返回了 500 状态码:LibreChat 在 POST /api/agents 请求中报告了 Error creating context The server responded with status 500,而 rag_api 在 query_embeddings_by_file_id 中记录了未处理的异常,因为输入查询字符串为空:
查询嵌入失败 | 文件 ID: 26263cb6-... | 查询: | 错误: 错误代码: 400 - {'detail': 'input must be a non-empty string or list'}
内容来源: danny-avila/LibreChat