Comments (5)
The error you're encountering, "'BaseResponse' object has no attribute 'body_iterator'," suggests there's a mismatch between the expected interface of the response
object and its actual implementation in your custom Agent's search_knowledgebase_complex
function. This function is likely expecting a response object that supports asynchronous iteration, which isn't the case here.
To resolve this issue, you'll need to adjust the handling of the response
object within your function to match its actual structure. If the function is designed to work with an asynchronous iterable, ensure that the returned response
object from knowledge_base_chat
or any related function indeed conforms to this expectation. This might involve modifying the search_knowledgebase_complex
function to correctly process the response
object based on its actual attributes and methods.
Ensure that all external dependencies and services the function relies on are correctly configured and operational. Also, verify that your execution environment supports asynchronous operations, as the function and its dependencies appear to be designed for asynchronous execution.
In summary, check the structure of the response
object returned by the knowledge_base_chat
function, adjust your function to correctly handle this object, ensure all external services are properly configured, and confirm that your environment supports asyncio
.
Details
Sources
- agent对话时调用知识库对话报错
- server/agent/tools/search_knowledgebase_complex.py
- server/chat/knowledge_base_chat.py
- markdown_docs/server/agent/tools/search_knowledgebase_complex.md
- server/agent/model_contain.py
- markdown_docs/server/chat/knowledge_base_chat.md
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from langchain-chatchat.
from langchain-chatchat.
问答对话是这样的
你那现在调用agent好使不,我这按照脚本里调用本地知识库直接回复:I need to use the search_knowledgebase_complex tool to search the knowledge base for information about bigdata and its employment情况.然后没下文了
from langchain-chatchat.
问答对话是这样的
你那现在调用agent好使不,我这按照脚本里调用本地知识库直接回复:I need to use the search_knowledgebase_complex tool to search the knowledge base for information about bigdata and its employment情况.然后没下文了
没有,我到现在也没调通
from langchain-chatchat.
from langchain-chatchat.
Related Issues (20)
- 求助:如何不使用api,批量进行预测 HOT 2
- 启动startup.py,即便显卡不存在运行进程,依然显示报错:torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 134.00 MiB. GPU 0 has a total capacty of 21.99 GiB of which 119.06 MiB is free HOT 2
- [BUG] 知识库名称使用中文出现错误 HOT 1
- 0.2.10版本,知识库,不能基于上次回答的内容连续对话。
- 0.2.10版本,知识库内容拆分,指定特殊分割符,没有效果。
- 0.2.10版本,知识库对话,多个问题回答不了。
- [BUG] glm-4-9b-chat模型运行问题 HOT 9
- 自动生成测试用例
- bge-m3无法检索到内容
- 项目首页底下 微信交流群二维码失效了
- embedding 模型可以换成在线的API吗,怎么换成在线的API
- 能支持glm-4-9b-chat吗模型配置文件里面好像没有
- 大模型问答用户输入问题 冒号后面的英文被自动去除格式也错乱了
- [FEATURE] agent对话时,使用工具如何让用户确认是否执行工具呢?
- [BUG] 使用qwen-api在线模型报错ERROR: RemoteProtocolError: Caught exception: peer closed connection without sending complete message body (incomplete chunked read)
- [BUG] 容器化项目,添加文件到知识库卡住,一直running,成功上传,但是没有添加到向量库 HOT 3
- langchain agents executor throws: assert generation is not None #22585 HOT 2
- 0.2.10版本无法与Qwen2正常对话 HOT 1
- 知识库用的xlsx文件,为什么反馈不了有价值的信息?
- 运行 startup.pu报错,大佬们能帮忙看一下吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-chatchat.