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]: error when local query after incremental indexing #1207

Open
xxll88 opened this issue Sep 24, 2024 · 0 comments
Open

[Bug]: error when local query after incremental indexing #1207

xxll88 opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer

Comments

@xxll88
Copy link

xxll88 commented Sep 24, 2024

Describe the bug

When using create_final_entities_new.parquet instead of create_final_entities.parquet in output directory, an error occurs during local query after incremental indexing:

File "/home/lile/graphrag/graphrag/query/main.py", line 83, in
run_local_search(
File "/home/lile/graphrag/graphrag/query/cli.py", line 171, in run_local_search
return asyncio.run(run_streaming_search())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/mambaforge/envs/graphrag/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/home/ubuntu/mambaforge/envs/graphrag/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/mambaforge/envs/graphrag/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/lile/graphrag/graphrag/query/cli.py", line 149, in run_streaming_search
async for stream_chunk in api.local_search_streaming(
File "/home/lile/graphrag/graphrag/query/api.py", line 268, in local_search_streaming
_entities = read_indexer_entities(nodes, entities, community_level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lile/graphrag/graphrag/query/indexer_adapters.py", line 118, in read_indexer_entities
return read_entities(
^^^^^^^^^^^^^^
File "/home/lile/graphrag/graphrag/query/input/loaders/dfs.py", line 60, in read_entities
text_unit_ids=to_optional_list(row, text_unit_ids_col),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lile/graphrag/graphrag/query/input/loaders/utils.py", line 82, in to_optional_list
raise ValueError(msg)
ValueError: value is not a list: 342a830b6233b359ffad639d572e658b,aab773a9369df5ca277e312b5a7d67da (<class 'str'>)

@xxll88 xxll88 added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Sep 24, 2024
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

No branches or pull requests

1 participant