Relative Content

Tag Archive for pythonopenai-apilangchain

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.

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.

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.