You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importconcurrent.futuresfromconcurrent.futuresimportThreadPoolExecutor, as_completedfromtqdmimporttqdmMAX_WORKERS=10NUM_ARTICLES=200graph_documents= []
withThreadPoolExecutor(max_workers=MAX_WORKERS) asexecutor:
# Submitting all tasks and creating a list of future objectsfutures= [
executor.submit(process_text, f"{row['title']}{row['text']}")
fori, rowinnews.head(NUM_ARTICLES).iterrows()
]
forfutureintqdm(
as_completed(futures), total=len(futures), desc="Processing documents"
):
graph_document=future.result()
graph_documents.extend(graph_document)
graph.add_graph_documents(
graph_documents,
baseEntityLabel=True,
include_source=True
)
I get this error:
ValidationError: 1 validation error for Node
properties
Input should be a valid dictionary [type=dict_type, input_value=FieldInfo(default=Pydanti...class 'dict'>, extra={}), input_type=FieldInfo]
For further information visit https://errors.pydantic.dev/2.8/v/dict_type
Hi @arisylafeta, could you please share more details about your environment, including the versions of langchain and langchain-neo4j you’re using? It would also be helpful if you could provide the full script you’re running. I’m having difficulty reproducing the error based on the Neo4j or LangChain documentation. Thanks!
Hi, I was trying the GraphRAG tutorial from Neo4j:
https://neo4j.com/developer-blog/global-graphrag-neo4j-langchain/
and upon trying the snippet:
I get this error:
interestingly, I tried implementing one of the examples in the langchain docs: https://python.langchain.com/docs/how_to/graph_constructing/
and lo and behold I get the same error. It seems that something is broken. Can someone confirm getting the same issue?
The text was updated successfully, but these errors were encountered: