AttributeError: ‘str’ object has no attribute ‘model_dump’ in langchain_core
I’ve encountered an error while working with the langchain_core
langchain-openai
library and I’m hoping someone can assist me in resolving this issue.
Integrate langchain agents as openai functions/tools
I’m currently working with two LangChain agents (Pandas agents) to retrieve information from large tabular datasets. I originally had both datasets (Iris and Titanic) in a single agent, but separating them into two agents has improved my inference accuracy.
How to input multiple inputs in RunnableWithMessageHistory of LangChain?
I would like to ask about LangChain for LLM in python.
Langchain and OpenAI NLP to SQL generating Wrong Query
I am trying to create a chatbot which can take input and generate query based on fined tuned model and provided schema. It was working fine previously but now every scenario which was working fine is generating wrong results/query I am using openai gpt3.5turbo Here’s my code
Issue with load_summarize_chain in LangChain Summarizing Incorrect Document Content
I’m using LangChain’s load_summarize_chain
function combined with map_reduce
and gpt-3.5-turbo-instruct
to summarize multiple documents within a specific folder. Each folder has a unique ID and contains documents related to a single topic. For example, a folder with the ID ‘xyz123’ contains only documents related to cooking, and I expect the summary output to solely reflect cooking-related content.
module ‘openai’ has no attribute ‘Embedding’
On the following code I’m unable to resolve this error:
LangChain with OpenAI not return full products in RAG QnA
I used Python LangChain UnstructuredURLLoader to retrieve all our products in our company website for RAG purpose. The products were on different pages in the company website.
Langchain RAG with history and citations
I’m trying to build a RAG with langchain. I’d like to consider the chat history and to be able to produce citations. I’ve followed the tutorial on Langchain but I struggle to put together history and citations.