langchain Questions
0
Building a langchain Q&A bot and serving up with a python dash app.
Error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 64.00 MiB (GPU 0; 4.00 GiB total capacity; 3.44 Gi...
Dishabille asked 27/5, 2023 at 12:48
1
I am trying to load a folder of JSON files in Langchain as:
loader = DirectoryLoader(r'C:...')
documents = loader.load()
But I got such an error message:
ValueError: Json schema does not match th...
Bard asked 17/5, 2023 at 15:31
1
Solved
I'm learning Langchain and vector databases.
Following the original documentation I can read some docs, update the database and then make a query.
https://python.langchain.com/en/harrison-docs-refa...
2
Solved
Getting the error while trying to run a langchain code.
ValueError: `run` not supported when there is not exactly one input key, got ['question', 'documents'].
Traceback:
File "c:\users\avipar...
1
Solved
I'm trying to implement a langchain agent that is able to ask clarifying questions in case some information is missing. Is this at all possible? A simple example would be
Input: "Please give m...
Shaylynn asked 4/5, 2023 at 7:4
1
I do not understand how customprompt works in the example documentation: https://python.langchain.com/en/latest/modules/chains/index_examples/qa_with_sources.html
prompt object is defined as:
PROMP...
Drying asked 24/4, 2023 at 16:2
2
The langchain docs include this example for configuring and invoking a PydanticOutputParser
# Define your desired data structure.
class Joke(BaseModel):
setup: str = Field(description="questi...
Linoleum asked 2/4, 2023 at 5:41
0
I have not found documentation regarding Question-Answering based on multiple text files, while referencing the text files individually.
Example:
I have file1.txt through file20.txt.
file1.txt is f...
Shortchange asked 22/4, 2023 at 2:39
1
I'm trying to create the load_summarize_chain for Langchain using prompts that I created myself.
llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.7)
PROMPT = PromptTemplate(temp...
Ebullience asked 12/4, 2023 at 22:36
2
Solved
I am trying to use langchain with gpt-35-turbo.
It seems that the new gpt3.5 turbo is not using certain parameters anymore as per the link Learn how to work with the ChatGPT and GPT-4 models (previ...
Graphomotor asked 30/3, 2023 at 5:35
© 2022 - 2024 — McMap. All rights reserved.