-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question!! Multiple agent use? agent within agent? #7597
Comments
Answer generated by a 🤖 AnswerI found related issues that might be helpful. I did my best to summarize the solutions, but I recommend looking at the related issues yourself. Open IssuesIs there any way to combine chatbot and question answering over docs?The suggested solution is:
This solution is based on the comment with the most positive reactions. Another solution provided in the comments is to use the chat_vector_db approach as mentioned in the LangChain documentation. Agent answer questions that is not related to my custom dataThis issue was referenced by: This response is meant to be useful, save you time, and share context. 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. |
Hello @sk9288go, It seems like you have encountered a situation that appears quite similar to my own experience. I would like to bring your attention to my problem detailed in this DOC: How to properly initialize Function Agent as a Tool for other Agent #10375 In this issue, I discuss the usage of an Agent as a Tool for another Agent, and I suspect that attempting to implement this through the P.S |
Hi, @sk9288go I'm helping the LangChain team manage our backlog and am marking this issue as stale. The issue involves combining a CSV file and Pinecone DB to develop a chatbot, with the expected output deviating when using an agent. There have been related comments from dosubot, wolfassi123, and 1vash seeking community feedback and sharing experiences. Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
Close issue! |
I'm not sure if this is the best way, but today, I got it working like this: research_assistant_tool = Tool.from_function(
func=lambda s: research_assistant_chain.invoke(
{"question": s},
config=get_config(callbacks),
),
name="web-research-assistant",
description="this assistant returns a comprehensive report based on web research. for quick facts, use duckduckgo instead.",
) The current implementation is still messy, but the main point is to use I hope this is helpful; feel free to ask for clarification or further assistance. |
Feature request
Hello Langchain community!
I'm currently in the process of developing a company's chatbot, and I've chosen to use both a CSV file and Pinecone DB for the project.
Here's a basic outline of the structure I've adopted so far:
I've managed to set the two tools, and its example usage has been providing accurate answers
the first tool gets me the answers based on pandas’s result from the example usage, the answers are based on csv and it’s correct in all cases
Also set the second tool and its example usage is answered correctly.
until here things are very promising and i expected everything to work as it is.
so i have set the LLM and combined the two tools and used agent
However, when I combined both tools using an agent, the answers started to deviate from the expected output. I'm not entirely sure whether the method I'm using to utilize the agent is optimal.
To address this issue, I've experimented with the MultiretrievalQA chain using vector embedding. But the results are not consistently reliable, and moreover, I'd rather not generate new embeddings every time I modify the CSV.
Is there anyone in the community who can shed light on these issues I'm encountering? Any feedback on my current approach, suggestions on how to optimize it, or alternative strategies would be greatly appreciated!
Thank you.
Motivation
I'm making a company's gpt and i hope to link my csv with the chatbot so that whenever i change the csv the chatbot is automatically linked with it
Your contribution
um solving the problem would help others?
The text was updated successfully, but these errors were encountered: