Rajesh Sharma

Results 4 comments of Rajesh Sharma

Thank you @jrief I am using [this](https://github.com/ruoshui1314/Flask-uWSGI-WebSocket-demo) as a reference for my use case.

faiss_db_path = os.path.join(BASE_DIR, "workspace", "chat_with_text_files", "faiss_db") def load_db(): embeddings = OpenAIEmbeddings() vectordb = FAISS.load_local(faiss_db_path, embeddings) retriever = vectordb.as_retriever() return retriever def create_qa_chain(retriever): qa_chain = RetrievalQA.from_chain_type( llm=OpenAI(), chain_type="stuff", retriever=retriever, return_source_documents=True, verbose=True,...

Another error AttributeError: 'ConversationalRetrievalChain' object has no attribute 'input_key'. Did you mean: 'input_keys'? def create_qa_chain(retriever): memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) chat_llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=OPENAI_TEMPERATURE) qa_chain = ConversationalRetrievalChain.from_llm( llm=chat_llm, retriever=retriever, chain_type="stuff", verbose=True,...