All Questions
7 questions
1
vote
0
answers
88
views
chatbot memory problem for langchain using ConversationalRetrievalChain
i have build a chatbot on custom data using langchain, but the chatbot can not remember my previous questions, I found it difficult with the ConversationalRetrievalChain.
My code is as below:
`class ...
0
votes
2
answers
421
views
ChatBot langchain, set memory+retriever+map_reduce
I am new on this topics.I'd like to get a chain that allows me to use a retriever ,a memory and to set the chain_type = 'map_reduce'.In addition to that I'd like to know if is it possible to use the ...
2
votes
0
answers
854
views
AttributeError occurred in OpenAI and FAISS part: 'str' object has no attribute 'page_content'
I am loading my excel data from azure blob storage, the problem is when I fed my data to the model it answers a general data and not my custom data.
I can see the data clearly loaded from my terminal. ...
1
vote
0
answers
1k
views
How to train ChatGPT on custom data efficiently?
I am working with a dataset (csv format) and creating a custom trained chatbot using the ChatGPT API in Python. Approximately there are 1000 observations and 12 variables. I was able to train the ...
2
votes
1
answer
683
views
How can I optimize my OpenAI-based chatbot's NLP processing time in Python?
I ran the following code which is based on Langchain and Chroma and it is supposed to be functioning in a production environment with users as a client facing chat bot so I expect it or maybe I should ...
1
vote
0
answers
514
views
Why does my code using Langchain with Pinecone take a full minute to generate an answer?
Using Langchain with Pinecone, why does it take me a full minute to generate an answer using the following code?
def answer_with_pinecone(query, documents, embeddings):
pinecone.init(api_key=os....
1
vote
0
answers
324
views
What method can I use to add memory to my Discord chat bot?
I'm working on a Discord chat bot using Discord.js and OpenAI API, and I'm looking for ways to add memory to my bot so that it can remember past conversations and use that information to provide ...