Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
35 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
-4 votes
1 answer
77 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
0 answers
46 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
62 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
0 votes
1 answer
59 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
1 answer
77 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
1 vote
1 answer
240 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
23 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
1 vote
1 answer
257 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
1 vote
1 answer
298 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
337 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
0 votes
1 answer
252 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
0 votes
0 answers
129 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
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
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
0 answers
196 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
0 answers
362 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
1 vote
0 answers
350 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
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
0 votes
2 answers
370 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
220 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
2 votes
0 answers
482 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
449 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 vote
2 answers
255 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
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

1
2 3 4 5
9