-
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
Langchain Tools and Agents #7269
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. Related IssuesClosed IssuesCan I use vectorstore with LLMChain?The suggested solution is: retriever = vectorstore.as_retriever(search_kwargs=dict(k=1))
memory = VectorStoreRetrieverMemory(retriever=retriever)
LLMChain(llm=llm, prompt=prompt, verbose=True, memory=memory) Open IssuesIssue: What if I want the langchain agent to answer an unseen type of question with its own knowledge from its pre-trained embedding?The suggested solution is:
Is there any way to combine chatbot and question answering over docs?The suggested solution is:
Another approach is to use the chat_vector_db approach as mentioned in the link: https://python.langchain.com/en/latest/modules/chains/index_examples/chat_vector_db.html. This approach mixes chat history and knowledge base. For a non-agent, non-server approach, the solution is to have the chatbot form a chat history memory for whatever topic the user is interested in. When the time comes for utilizing the vector db to answer a precise question, extract the chat history memory and feed it into the qa retrieval in the form of a question + chat history context. Agent answer questions that is not related to my custom dataNo solution found. 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. |
I am using Tools and Agents to query on different vectorstores. But when I am asking question which is not from the vectorstore.It responds. So is there any approach i can try where if the answer is not from the vectorstore it should respond i didn't found the answer. |
Try to use this approach https://python.langchain.com/docs/modules/agents/how_to/custom_agent_with_tool_retrieval |
I encountered a similar issue myself, but I discovered a solution. Just include this instruction in your system message prompt exactly as it is, and it should function very effectively.
|
Hi, @Ajaypawar02! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, the issue is about integrating chatGPT into Langchain Tools and Agents so that the conversation can continue even if a question is asked that is not from the vectorstore. It seems that the issue has been resolved by including a system message prompt, as suggested by khurramwbox. Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us 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 for your contribution to the LangChain repository! |
Issue you'd like to raise.
I am using Tools and Agents to query on different vectorstores. But when I am asking question which is not from the vectorstore.It responds i dont know. So is there any approach i can try where if the answer is not from the vectorstore i can carry out the conversation like chatgpt. If Yes? Can you Please let me know how we can integrate this
Suggestion:
No response
The text was updated successfully, but these errors were encountered: