Replies: 4 comments 6 replies
-
The error "Must write to at least one of []" typically indicates that the Chroma vector store is not properly configured to write to a collection. In your code, the To resolve this error, ensure that the # Add to vectorDB
vectorstore = Chroma.from_documents(
documents=doc_splits,
collection_name="rag-chroma",
embedding=OpenAIEmbeddings(),
)
retriever = vectorstore.as_retriever() Make sure that |
Beta Was this translation helpful? Give feedback.
-
Hello @dosu, The example I mentioned is different from your instructions. It uses Langgraph, and the issue occurs when I execute app.graph.ainvoke. Your example works very well but does not solve my problem. Please check the exact source code of the example. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hey, My Graph is similar to :
"enter_delivery_preference", )
Please help! |
Beta Was this translation helpful? Give feedback.
-
Hi @mrctito , input = {"input": "your input"}
for s in self.graph.stream(input):
print(list(s.values())[0])
print("----") |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Hi @dosu!
Im running this LangGraph demo:
https://github.com/langchain-ai/langgraph/blob/main/examples/agent_executor/force-calling-a-tool-first.ipynb
At this point:
I changed to:
inputs = {"input": input,
"dia_da_semana": "Segunda",
"idioma": "Português",
'email_usuario': self.email_usuario,
'data_hoje': "12/2/2024",
"chat_history": []}
result = await self.graph.ainvoke(inputs, debug=True)
And its raising this error:
Must write to at least one of []
System Info
langchain==0.2.6
langchain-community==0.2.6
langchain-core==0.2.10
langchain-experimental==0.0.62
langchain-openai==0.1.13
langchain-qdrant==0.1.0
langchain-text-splitters==0.2.1
Beta Was this translation helpful? Give feedback.
All reactions