Skip to main content
0 votes
0 answers
13 views

How can I update the next node from the state in langgraph?

I'm currently facing an issue with my LangGraph application. If OpenAI fails to respond during the graph execution, the process terminates and leaves the thread stuck at the next node. However, I'd ...
Juan Camilo R's user avatar
1 vote
1 answer
54 views

How to let a tool return a picture when using langgraph/langchain?

I am using a LLM model which is capable of processing images. When the LLM calls "get_screenshot" tool, I want to provide a screenshot of a website to it. For example: from langchain_core....
Letian's user avatar
  • 11
0 votes
1 answer
60 views

Langgraph: Getting ValueError: Found edge ending at unknown node `<function chatbot at 0x..>` while compiling

As part of experimenting Langgraph, i created below flow def chatbot(state:State): return {"messages":llm.invoke(state['messages'])} def chat_history(state:State): global chat_history ...
Hari Umesh's user avatar
1 vote
0 answers
30 views

Langchain runnable stuck in a loop

I'm trying to make Langchain use a tool when asked about IP address. The tool just returns an ip address. As visible in the logs the call happens, but repeatedly. It seems stuck in a loop. I'm not ...
Gervasius Twinklewinkleson's user avatar
0 votes
0 answers
33 views

Get the first message posted by the user (HumanMessage)

In LangGraph I keep track of messages (SysteMessage, AiMessage and HumanMessage) and their contents by adding them to a list, which is also the state of the graph: from langgraph.graph.message import ...
Simone's user avatar
  • 4,960
0 votes
0 answers
38 views

Does langgraph.prebuilt.create_react_agent in LangGraph 0.3.x Use a Default ReAct Prompt Internally?

I am working with langgraph version 0.3.x, specifically using the langgraph.prebuilt.create_react_agent function to set up an agent. The function signature allows for an optional prompt parameter. My ...
何子洋's user avatar
0 votes
2 answers
31 views

SitemapLoader(sitemap_url).load() hangs

from langchain_community.document_loaders import SitemapLoader def crawl(self): print("Starting crawler...") sitemap_url = "https://gringo.co.il/sitemap.xml" ...
Gulzar's user avatar
  • 28.3k
0 votes
0 answers
50 views

passing correct context to the model via the Ollama api

I am teaching myself LLM programming by developing a RAG application. I am running Llama 3.2 on my laptop using Ollama, and using a mix of SQLite and langchain. I can pass a context to the llm along ...
punkish's user avatar
  • 15.3k
0 votes
2 answers
71 views

Triggering next node in langgraph

I am making a chatbot using langgraph each node allocated to teach a topic e.g AI, Prompts and LLM etc. i am using this Docuemnt: https://langchain-ai.github.io/langgraph/how-tos/multi-agent-network/ ...
Raheem Tariq's user avatar
-2 votes
0 answers
30 views

lower time cost by the ai answering when using langchain [closed]

when i uses langchain,i found it costs too much time when i send message to the AI.I want to know how to lower the time cost by creating the answering chain.Here is the function that cost the most ...
Jun xi L's user avatar
-2 votes
0 answers
41 views

LangChain SQL Agent not returning DB summaries for complex queries using FastAPI and Groq LLM [closed]

I'm building an LLM-powered FastAPI backend where users ask natural language questions. It uses LangChain's SQL agent with ChatGroq to generate SQL based on a natural language prompt. Executes the ...
Shashank's user avatar
0 votes
1 answer
35 views

Memory leak due to accumulating threads after add_documents with Pinecone

I have a question regarding thread behavior when embedding data into Pinecone using LangChain. When I call the add_documents method, I notice that seven new threads are spawned—which seems expected. ...
Mohamed Hachemi's user avatar
1 vote
1 answer
446 views

How do I fix the ImportError Problem I'm facing when running "from langchain_openai import ChatOpenAI" in my Google Collab?

Up until a few days ago I was able to run the line from langchain_openai import ChatOpenAI in my Google Colab notebook but now I'm receiving the error message ImportError: cannot import name '...
Bureh_Engineer's user avatar
0 votes
2 answers
95 views

Langgraph: How to retrieve and store chat history throughout the session

I am new to the Langgraph. I am trying to retrieve chathistory from state into a variable untill the session close. below what i have tried llm = ChatOpenAI(temperature=1.0) class State(TypedDict): ...
Hari Umesh's user avatar
0 votes
0 answers
19 views

LLMGraphTransformer - Is there a library in langchain with this name?

There are several code examples to be found using from langchain_experimental.graph_transformers import LLMGraphTransformer But I am getting this error message: ImportError: cannot import ...
Satyajit Datta's user avatar

15 30 50 per page
1
2 3 4 5
147