Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

I am using the LangChain 1.0 new agent = create_agent() method to create an agent but I am getting inconsistent output response types. Case 1: str as output When the user query is simple such as "...
universality's user avatar
1 vote
1 answer
256 views

I'm trying to import ConversationBufferMemory and ConversationalRetrievalChain in my Python notebook as follows: from langchain.memory import ConversationBufferMemory from langchain.chains import ...
Shaffan's user avatar
  • 23
-4 votes
1 answer
98 views

I’m trying to create an agent in LangChain using Google Gemini, but I’m running into some issues because of the latest LangChain updates. As a result, I haven’t been able to create a chain with the ...
Andrey Rosa Dias's user avatar
0 votes
1 answer
44 views

I have code below in ReAct prompt template. I have input_variables like tools, tool_names, etc. But when we are calling, not all input_variables are passed. Then, to my understanding, it should throw ...
venkysmarty's user avatar
  • 11.5k
0 votes
0 answers
48 views

I'm encountering a critical issue using LangChain's AgentExecutor where a dynamic, per-call variable passed via the config dictionary is not being propagated to a custom @tool called by the agent. ...
SubFunction's user avatar
1 vote
0 answers
51 views

I built a RAG chatbot using LangChain + ChromaDB + OpenAI embeddings. The pipeline works, but sometimes the chatbot doesn’t return the most relevant PDF content, even though it exists in the vector DB....
Naitik Mittal's user avatar
1 vote
0 answers
65 views

I want to use Langchain to automatically update a helm chart via Gitlab-Python API. I realise it might work without langchain/llm with a more deterministic approach. However, i use it for testing ...
Tonio Liebrand's user avatar
2 votes
2 answers
548 views

This is a very basic example how I am trying to use langchain to invoke a llm and find the tool to use: import asyncio import json from langchain.agents import AgentExecutor, ...
hitesh's user avatar
  • 389
0 votes
1 answer
61 views

I’m trying to use LangChain with FAISS to build a simple document retriever. I’ve indexed several documents, but when I call similarity_search, I always get an empty list. from langchain.embeddings....
Tony Guo's user avatar
1 vote
0 answers
161 views

I have defined a Global variable in Langflow, which is basically the API key of an API I want to call. The API requires me to send the API key as a query param. So I am trying to use a prompt node to ...
guiltyspark's user avatar
1 vote
1 answer
80 views

How can I find the package version that can work with other package requirement. For my case, I have hard requirement for numpy==1.24.4 and I am looking to install langchain-core which the latest ...
Dyson's user avatar
  • 165
0 votes
0 answers
51 views

I have an agent with LangChain. I have a database with these tables: CREATE TABLE teams ( team_id INT PRIMARY KEY, team_name VARCHAR(50) UNIQUE NOT NULL, coach VARCHAR(50) NOT NULL ); ...
AleGallagher's user avatar
  • 2,033
1 vote
1 answer
246 views

I manage to run Ollama as a k8s STS. I am using it for Python Langchain LLM/RAG application. However the following Dockerfile ENTRYPOINT script which tries to pull a list of images exported as MODELS ...
khteh's user avatar
  • 4,280
0 votes
0 answers
347 views

I am using Google VertexAI gemini-2.0-flash with LangChain. I keep getting InvalidArgument: 400 Request contains an invalid argument error when making ainvoke, astream and with_structured_output to ...
khteh's user avatar
  • 4,280
0 votes
0 answers
26 views

I am having trouble figuring out why I can't see the print statements in the terminal for my retrieveInfoForQuery function and trying to figure out what is wrong. I have verified the chroma db is on ...
Chris Westbrook's user avatar
0 votes
1 answer
604 views

I am getting below error when running the code snippet in AWS sagemaker JupyterLab notebook: ModuleNotFoundError: No module named 'ragas.metrics.critique' import warnings warnings.filterwarnings('...
ggcoder's user avatar
  • 31
1 vote
1 answer
273 views

Trying to import RegexTextSplitter using from langchain.text_splitter import RegexTextSplitter ,RecursiveCharacterTextSplitter And I get the error from langchain.text_splitter import RegexTextSplitter ...
Dev_A's user avatar
  • 23
0 votes
1 answer
338 views

How to use google_vertexai or google_genai with LangChain in Python? I get the following error: USER_AGENT environment variable not set, consider setting it to identify your requests. Traceback (most ...
khteh's user avatar
  • 4,280
1 vote
1 answer
305 views

I can't figure out how to use a custom function as a tool with langgraph + ChatOpenAI and Ollama. The "TavilySearchResults" and "DuckDuckGoSearchResults" community tools work fine,...
swv's user avatar
  • 799
0 votes
1 answer
2k views

For those who have integrated the ChromaDB client with the Langchain framework, I am proposing the following approach to implement the Hybrid search (Vector Search + BM25Retriever): from ...
Diallo Francis Patrick's user avatar
0 votes
1 answer
350 views

I am currently trying to work on the following code to log my Langchain - chain using mlflow. But it throws me following error while doing mlflow.langchain.log_model and I am not sure what exactly is ...
skad00sh's user avatar
  • 171
1 vote
1 answer
761 views

I’m working on a LangGraph-based agent and running into an issue with state management when using LangGraph Studio. Specifically, I’m getting a KeyError: 'RAG_attempts' when my agent hits a downstream ...
Ariel Nurieli's user avatar
0 votes
1 answer
270 views

I am using langchain's create_pandas_dataframe_agent agent to analyse a dataframe. The code looks like below: from langchain_experimental.agents import create_pandas_dataframe_agent import pandas as ...
Ankush Pandit's user avatar
3 votes
1 answer
748 views

I am getting this error while trying intiliaze FlashrankRerank PydanticUserError: FlashrankRerank is not fully defined; you should define Ranker, then call FlashrankRerank.model_rebuild() This is my ...
Jerin Jude's user avatar
0 votes
0 answers
130 views

I have loaded data in FAISS using the chunks as my data was very large. So, after the process 110 chunks have been made with respective .faiss & .pkl files. I have written this code import faiss ...
Dilpreet Singh's user avatar
5 votes
1 answer
3k views

I need to understand how exactly does langchain convert information from code to LLM prompt, because end of the day, the LLM will need only text to be passed to it. If I am incorrect somewhere in my ...
Anmol Deep's user avatar
0 votes
0 answers
76 views

I had a working code to translate documents (pdf, docx and text). Suddenly since past few days, I am getting following error. There has been no change in the code. Error in doc_translate_openai of ...
Aniruddha's user avatar
  • 3,327
0 votes
1 answer
152 views

Problem Description: I’m developing an agent using LangChain, langchain_openai, and a custom tool to send emails. The tool, named mail_tool, is designed to follow a strict set of rules and a specific ...
Alexander idid's user avatar
2 votes
1 answer
2k views

I am trying to get Langchain working with tool calling. I've been following the tutorial on their website and am getting some unexpected behaviour. This is the tutorial: https://python.langchain.com/...
AhmedAbbas's user avatar
0 votes
1 answer
995 views

I am using a vectorstore of some documents in Chroma and implemented everything using the LangChain package. Here’s the package I am using: from langchain_chroma import Chroma I need to check if a ...
s.espriz's user avatar
0 votes
0 answers
202 views

I am following the tutorial given here, trying to create a very simple tool-calling function. I have followed the code exactly, only changing the tool itself. from langchain_huggingface import ...
mulberry's user avatar
0 votes
2 answers
1k views

Using the Anthropic messsages API directly and providing multiple tools to the model, it's possible to instruct the model to only invoke one tool at a time by setting disable_parallel_tool_use=true in ...
Laizer's user avatar
  • 6,210
0 votes
0 answers
365 views

I have a Fast API Python app that streams output from a bot using Langchain and Langgraph, deployed on a Render Web Service (Currently free tier). Currently it uses threads to distinguish between ...
ethanworker's user avatar
0 votes
0 answers
234 views

I have the code to perform RAG on the Chroma DB collection with LangChain and Streamlit but I get an error as shown below: An error occurred: st.session_state has no attribute "retriever". ...
Shaik Naveed's user avatar
1 vote
0 answers
354 views

I have implemented streaming response in our rag(Retrieval-Augmented-Generation) chatbot. However, I am unable to figure out a proper way to send the metadata information with the streaming response....
Abdullah Muhammad Moosa's user avatar
0 votes
0 answers
31 views

im looking for solution for My Asana-Langchain app. Im trying to place a hook for all task in whole workspace, there is anyway to go over it? Whats the best solution for it ? Im considering how im ...
Karol's user avatar
  • 1
0 votes
0 answers
61 views

After updating my code to replace LLMChain (deprecated) with the new pipeline approach, I am getting an error because Constitutional Chain does expect the old LLMChain format. Can anyone suggest a ...
Tartaglia's user avatar
  • 1,051
1 vote
1 answer
155 views

I'm following a git repo and learning how to make a chatbot using pinecone and llama-2, but I'm getting an attribute error while using the Pinecone module, even though I've copied the same code as ...
Pkun's user avatar
  • 11
0 votes
2 answers
375 views

While learning text splitter, i got a doubt, here is the code below from langchain.text_splitter import RecursiveCharacterTextSplitter rsplitter = RecursiveCharacterTextSplitter(chunk_size=10,...
sachin murali's user avatar
0 votes
1 answer
221 views

async def get_response(self, messages, model): try: memory = self.memory llm = ChatOllama(model=model) config = {"configurable": {"thread_id&...
Neo Mx's user avatar
  • 1
3 votes
1 answer
6k views

I am attempting to use LangChain's ConversationSummaryBufferMemory and running into this error: pydantic.errors.PydanticUserError: `ConversationSummaryBufferMemory` is not fully defined; you should ...
Minura Punchihewa's user avatar
2 votes
0 answers
498 views

First of all, let's see how I set up my tool, model, agent, callback handler and AgentExecutor : Tool : from datetime import datetime from typing import Literal, Annotated from langchain_core.tools ...
Thomas Dussaut's user avatar
0 votes
2 answers
3k views

I am trying to install langchain_openai in my local machine with the python version 3.9 using pip i passed below command: pip install langchain_openai I am getting below error ERROR: ERROR: Failed to ...
Hari Adhi's user avatar
0 votes
2 answers
454 views

I want to be able to get the similarity scores of the retrieved documents when using the SelfQueryRetriever as seen below. I have made a selfquery retriever as follows: retriever = SelfQueryRetriever....
Emil Toft's user avatar
-1 votes
1 answer
643 views

just started to learn LangChain and move my project onto langchain. To keep moving forward i got this github project: https://github.com/Cbase-ai/asana-task-agent I do install everything. What ...
Karol's user avatar
  • 1
1 vote
2 answers
257 views

I am currently using two data frames and I wish to compare two columns across them, and then create an output variable. However, I want to store the output in the form of a pandas dataframe, or ...
Teestaa Saha's user avatar
0 votes
0 answers
230 views

I am using python 3.7.16 in a virtual environment (venv). Upon running the code below I get into an error regarding the langchain.embeddings module. I cannot upgrade langchain higher than 0.0.27, ...
Sanjiv Pradhanang's user avatar
0 votes
0 answers
115 views

I'm developing a Telegram bot that allows users to send PDF files. The bot should extract text from the PDFs using pdfminer and respond to user queries. However, I'm facing dependency issues, ...
Jeeva's user avatar
  • 9
2 votes
0 answers
841 views

I am trying to build one text to sql app where I have used ollama and mistral. Now without agent it is sql queries but sometime it is generating table names which is not present in the db and ...
Abhra Sarkar's user avatar
0 votes
0 answers
108 views

I'm trying to create a process where I can break down a user query into multiple searchable queries using LLMs and then fetch the results online. I've set up two chains for extracting information and ...
Q_Q_'s user avatar
  • 23

1
2 3 4 5
9