Closed Rakin061 closed 1 day ago
Its kinda hard to read your post, would you mind editing and formatting like below? You just need to do triple `python {all your code} triple tilde again
from google.colab import userdata
# VectoreStore from Dataset
import pandas as pd
data = pd.read_json('testDataset.jsonl', lines=True)
data
import pinecone
Its kinda hard to read your post, would you mind editing and formatting like below? You just need to do triple `python {all your code} triple tilde again
from google.colab import userdata # VectoreStore from Dataset import pandas as pd data = pd.read_json('testDataset.jsonl', lines=True) data import pinecone
Code snippet updated with required format !
Checked other resources
-- coding: utf-8 --
"""Commands+RAG with personalization .ipynb
Automatically generated by Colab.
Original file is located at https://colab.research.google.com/drive/1RXFuNJKCcXsqP9oTGTL3oiBuAJYCnnui """
Error Message and Stack Trace (if applicable)
No response
Description
I'm trying to use LangChain to develop an agent having the capability of both RAG model for localization and OpenAI Function Calling feature for a single prompt together. But, agent fails to respond accurately while switching form the RAG and Functions back and forth. I'm facing two kind of problems:
Firstly, Despite using the ConversationBufferMemory to store chat history with the AgentExecutor, we are experiencing difficulty in obtaining the desired results.
Secondly, the agent is able to provide responses when questions are asked that have answers within the local document. However, it fails to respond to follow-up questions, even though the chat history is available.
Furthermore, when we use the {context} part in the prompt, particularly with functions that have multiple arguments, the agent attempts to guess the missing arguments although instructed not to. Afterwards, this behavior is inconsistent and unreliable.
We have experimented with various prompt descriptions in an attempt to address this issue. But, we have found that either the RAG model works properly or the Function Calling feature performs adequately, but not both simultaneously.
System Info
System Information
Package Information
Packages not installed (Not Necessarily a Problem)
The following packages were not found: