Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: graph_extractor miss entities while processing llm result #1183

Open
1 of 3 tasks
zqWu opened this issue Sep 23, 2024 · 0 comments · May be fixed by #1185
Open
1 of 3 tasks

[Bug]: graph_extractor miss entities while processing llm result #1183

zqWu opened this issue Sep 23, 2024 · 0 comments · May be fixed by #1185
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer

Comments

@zqWu
Copy link

zqWu commented Sep 23, 2024

Do you need to file an issue?

  • I have searched the existing issues and this bug is not already filed.
  • My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the bug

at workflow entity_extraction, after glean, the result from llm looks like

("entity"<|>避难层<|>建筑空间<|>建筑内用于人员暂时躲避火灾及其烟气危害的楼层)##
... other entities ...
<|COMPLETE|>("entity"<|>避难层<|>建筑空间<|>建筑内用于人员暂时躲避火灾及其烟气危害的楼层)##
... other entities ...
<|COMPLETE|>

after that, it will process the string to graph.

problem:
it cannot handle
<|COMPLETE|>("entity"<|>避难层<|>建筑空间<|>建筑内用于人员暂时躲避火灾及其烟气危害的楼层)

suggest solution:
pre_result + + glean_result
or
split result by complete_delimiter, then by record_delimiter

image

Steps to reproduce

No response

Expected Behavior

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

No response

Additional Information

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:
@zqWu zqWu added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Sep 23, 2024
@zqWu zqWu linked a pull request Sep 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant