Closed oliveiracwb closed 4 days ago
This should have been fixed with the last commit, please try!
Please feel free to reopen this is the issue persist, but I believe it should be fixed now.
I wanted to let you know that the issue has been resolved, and everything is working perfectly now. Thank you so much for your prompt attention and support!
Describe the bug RuntimeError: Cannot return the results in a contiguous 2D array. Probably ef or M is too small
To Reproduce Steps to reproduce the behavior:
DOMAIN = "Quais os elementos envolvidos na história abaixo."
EXAMPLE_QUERIES = [ "Quais são os personagens, elementos e datas envolvidas e como elas se relacionam ?" ]
ENTITY_TYPES = ["Pessoas", "Lugares", "Datas"]
grag = GraphRAG( working_dir="./book_example", domain=DOMAIN, example_queries="\n".join(EXAMPLE_QUERIES), entity_types=ENTITY_TYPES )
with open("./book.txt") as f: grag.insert(f.read())
print(grag.query("Quais os elementos envolvidos?").response) ´´