Questions tagged [langchain]

LangChain is an open-source framework for developing applications powered by language models. Use [py-langchain] for the python-specific package.

LangChain is an open-source framework for developing applications powered by language models. Use [py-langchain] for the python-specific package.

672 questions
-2
votes
1 answer

How to extract structured data from a PDF document using Langchain, and use this data as input to ChatGPT

I'm working on a project where I need to extract data from a PDF document and use that extracted data as input for ChatGPT. I came across Langchain, a language extraction library. Specifically, I would like to know how to: Extract text or structured…
-2
votes
2 answers

How to create a multi-user chatbot with langchain

Hope you are doing good. I’ve prepared a chatbot based on the below langchain documentation: Langchain chatbot documentation In the above langchain documenation, the prompt template has two input variables - history and human input. I’ve variables…
Surya
  • 37
  • 1
  • 10
-2
votes
1 answer

Does LangChain uploads all data to referenced LLM vendor [openai or any other]?

I am currently exploring LangChain and find it really useful to contextualize LLMs for an enterprise and use it to build AI powered bots or solve common problems related to support or any process for a given enterprise. However, I am not finding any…
Kiran Pawar
  • 79
  • 1
  • 8
-3
votes
0 answers

How to develop a chatbot for cooking recipe

Good evening everyone, I am here to ask for your opinions regarding the design and development of a chatbot to help me create new cooking recipes. Specifically, I would like my chatbot to be trained on past recipes (given by me as input, so for…
-3
votes
0 answers

how to extract pdf data using langchain and openai and how to do embedding?

how to extract pdf, doc and image data and how to embed that data and how to store that into vecotrdb. I need examples of code. how to do that using python and is there open-source platform to do practice. sample python script expecting especially…
S Nagendra
  • 33
  • 4
-3
votes
0 answers

Rate limit reached for default-text-embedding-ada-002 on requests per min. Using python with langchain and Openai api

I have been using langchain for extracting data from a large text document. It has all been working fine until I have encountered this problem: Retrying langchain.embeddings.openai.embed_with_retry.._embed_with_retry in 10.0 seconds as it…
Nina
  • 1
  • 1
-3
votes
1 answer

Open AI Embeddings

import openai from langchain.embeddings.openai import OpenAIEmbeddings embeddings = OpenAIEmbeddings(model_name="ada") query_result = embeddings.embed_query("Hello world") len(query_result) When compiling the above code it gives the following…
-4
votes
0 answers

Error when installing langchain on Mac M1

I have a problem in installing langchain on my Mac M1 within my Jupyter notebook. I tried: !pip install langchain The output was: Requirement already satisfied: langchain in ./anaconda3/lib/python3.10/site-packages (0.0.259) Requirement already…
MG G
  • 3
  • 1
-5
votes
0 answers

Generative AI (image to image generator)

is there any image to image APi or model out there that I could use to generate Humanoid images from an image I upload ? OpenAI, midjourney etc. has anyone done a task like this before ? I want to build an AI tool that generates a humanoid kind of…
-7
votes
0 answers

Hello, I try the import the Langchain library but ı take the error

I try the import langchain library but ı take the error message. from langchain.chat_models import ChatOpenAI --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most…
1 2 3
44
45