Giter Club home page Giter Club logo

Comments (5)

dosubot avatar dosubot commented on June 15, 2024

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


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.

li775176364 avatar li775176364 commented on June 15, 2024

问答对话是这样的
image

from langchain-chatchat.

ReverseSystem001 avatar ReverseSystem001 commented on June 15, 2024

问答对话是这样的 image
你那现在调用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.

li775176364 avatar li775176364 commented on June 15, 2024

问答对话是这样的 image
你那现在调用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.

ReverseSystem001 avatar ReverseSystem001 commented on June 15, 2024

from langchain-chatchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.