Load community reports as context for global search¶
-
Load all community reports in the community_reports table from GraphRAG, to be used as context data for global search.
-
Load entities from the entities tables from GraphRAG, to be used for calculating community weights for context ranking. Note that this is optional (if no entities are provided, we will not calculate community weights and only use the rank attribute in the community reports table for context ranking)
-
Load all communities in the communities table from the GraphRAG, to be used to reconstruct the community graph hierarchy for dynamic community selection.
+
Load all community reports in the create_final_community_reports table from the GraphRAG, to be used as context data for global search.
+
Load entities from the create_final_nodes and create_final_entities tables from the GraphRAG, to be used for calculating community weights for context ranking. Note that this is optional (if no entities are provided, we will not calculate community weights and only use the rank attribute in the community reports table for context ranking)
+
Load all communities in the create_final_communites table from the GraphRAG, to be used to reconstruct the community graph hierarchy for dynamic community selection.
# parquet files generated from indexing pipelineINPUT_DIR="./inputs/operation dulce"
-COMMUNITY_TABLE="communities"
-COMMUNITY_REPORT_TABLE="community_reports"
-ENTITY_TABLE="entities"
+COMMUNITY_TABLE="create_final_communities"
+COMMUNITY_REPORT_TABLE="create_final_community_reports"
+ENTITY_TABLE="create_final_nodes"
+ENTITY_EMBEDDING_TABLE="create_final_entities"# community level in the Leiden community hierarchy from which we will load the community reports# higher value means we use reports from more fine-grained communities (at the cost of higher computation cost)
@@ -2171,9 +2172,10 @@ token_encoder = tiktoken.encoding_for_model(llm_model)
# parquet files generated from indexing pipeline
INPUT_DIR = "./inputs/operation dulce"
-COMMUNITY_TABLE = "communities"
-COMMUNITY_REPORT_TABLE = "community_reports"
-ENTITY_TABLE = "entities"
+COMMUNITY_TABLE = "create_final_communities"
+COMMUNITY_REPORT_TABLE = "create_final_community_reports"
+ENTITY_TABLE = "create_final_nodes"
+ENTITY_EMBEDDING_TABLE = "create_final_entities"
# community level in the Leiden community hierarchy from which we will load the community reports
# higher value means we use reports from more fine-grained communities (at the cost of higher computation cost)
@@ -2205,10 +2207,11 @@ COMMUNITY_LEVEL = 2
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[6], line 2
- 1 context_builder = GlobalCommunityContext(
-----> 2 community_reports=reports,
- 3 communities=communities,
- 4 entities=entities, # default to None if you don't want to use community weights for ranking
- 5 token_encoder=token_encoder,
- 6 )
-
-NameError: name 'reports' is not defined
-
-
-
-
@@ -2467,8 +2512,8 @@ reduce_llm_params = {
-
-
+
+
@@ -2517,36 +2562,6 @@ reduce_llm_params = {
-
-
-
-
-
-
-
-
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[8], line 3
- 1 search_engine = GlobalSearch(
- 2 llm=llm,
-----> 3 context_builder=context_builder,
- 4 token_encoder=token_encoder,
- 5 max_data_tokens=12_000, # change this based on the token limit you have on your model (if you are using a model with 8k limit, a good setting could be 5000)
- 6 map_llm_params=map_llm_params,
- 7 reduce_llm_params=reduce_llm_params,
- 8 allow_general_knowledge=False, # set this to True will add instruction to encourage the LLM to incorporate general knowledge in the response, which may increase hallucinations, but could be useful in some use cases.
- 9 json_mode=True, # set this to False if your LLM model does not support JSON mode.
- 10 context_builder_params=context_builder_params,
- 11 concurrent_coroutines=32,
- 12 response_type="multiple paragraphs", # free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report
- 13 )
-
-NameError: name 'context_builder' is not defined
-
-
-
-
@@ -2589,16 +2604,528 @@ print(result.response)
-
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[9], line 1
-----> 1 result =awaitsearch_engine.asearch(
- 2"What is Cosmic Vocalization and who are involved in it?"
- 3 )
- 5print(result.response)
-
-NameError: name 'search_engine' is not defined
+
Exception in _map_response_single_batch
+Traceback (most recent call last):
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/structured_search/global_search/search.py", line 232, in _map_response_single_batch
+ search_response = await self.llm.agenerate(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 142, in agenerate
+ async for attempt in retryer:
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 166, in __anext__
+ do = await self.iter(retry_state=self._retry_state)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
+ result = await action(retry_state)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/_utils.py", line 99, in inner
+ return call(*args, **kwargs)
+ ^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 418, in exc_check
+ raise retry_exc.reraise()
+ ^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 185, in reraise
+ raise self.last_attempt.result()
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/concurrent/futures/_base.py", line 449, in result
+ return self.__get_result()
+ ^^^^^^^^^^^^^^^^^^^
+ File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
+ raise self._exception
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 144, in agenerate
+ return await self._agenerate(
+ ^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 268, in _agenerate
+ response = await self.async_client.chat.completions.create( # type: ignore
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1720, in create
+ return await self._post(
+ ^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1849, in post
+ return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1543, in request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1644, in _request
+ raise self._make_status_error_from_response(err.response) from None
+openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
+
+
+
+
+
+
+
Exception in _map_response_single_batch
+Traceback (most recent call last):
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/structured_search/global_search/search.py", line 232, in _map_response_single_batch
+ search_response = await self.llm.agenerate(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 142, in agenerate
+ async for attempt in retryer:
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 166, in __anext__
+ do = await self.iter(retry_state=self._retry_state)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
+ result = await action(retry_state)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/_utils.py", line 99, in inner
+ return call(*args, **kwargs)
+ ^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 418, in exc_check
+ raise retry_exc.reraise()
+ ^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 185, in reraise
+ raise self.last_attempt.result()
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/concurrent/futures/_base.py", line 449, in result
+ return self.__get_result()
+ ^^^^^^^^^^^^^^^^^^^
+ File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
+ raise self._exception
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 144, in agenerate
+ return await self._agenerate(
+ ^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 268, in _agenerate
+ response = await self.async_client.chat.completions.create( # type: ignore
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1720, in create
+ return await self._post(
+ ^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1849, in post
+ return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1543, in request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1644, in _request
+ raise self._make_status_error_from_response(err.response) from None
+openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
+
+
+
+
+
+
+
Exception in _map_response_single_batch
+Traceback (most recent call last):
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/structured_search/global_search/search.py", line 232, in _map_response_single_batch
+ search_response = await self.llm.agenerate(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 142, in agenerate
+ async for attempt in retryer:
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 166, in __anext__
+ do = await self.iter(retry_state=self._retry_state)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
+ result = await action(retry_state)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/_utils.py", line 99, in inner
+ return call(*args, **kwargs)
+ ^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 418, in exc_check
+ raise retry_exc.reraise()
+ ^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/tenacity/__init__.py", line 185, in reraise
+ raise self.last_attempt.result()
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/concurrent/futures/_base.py", line 449, in result
+ return self.__get_result()
+ ^^^^^^^^^^^^^^^^^^^
+ File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
+ raise self._exception
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 144, in agenerate
+ return await self._agenerate(
+ ^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/work/graphrag/graphrag/graphrag/query/llm/oai/chat_openai.py", line 268, in _agenerate
+ response = await self.async_client.chat.completions.create( # type: ignore
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1720, in create
+ return await self._post(
+ ^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1849, in post
+ return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1543, in request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1629, in _request
+ return await self._retry_request(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1676, in _retry_request
+ return await self._request(
+ ^^^^^^^^^^^^^^^^^^^^
+ File "/home/runner/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1644, in _request
+ raise self._make_status_error_from_response(err.response) from None
+openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}
+
+
+
+
+
+
+
Warning: All map responses have score 0 (i.e., no relevant information found from the dataset), returning a canned 'I do not know' answer. You can try enabling `allow_general_knowledge` to encourage the LLM to incorporate relevant general knowledge, at the risk of increasing hallucinations.
+
+
+
+
+
+
+
I am sorry but I am unable to answer this question given the provided data.
+
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[10], line 2
- 1# inspect the data used to build the context for the LLM responses
-----> 2result.context_data["reports"]
+
+
Out[10]:
+
+
+
+
+
+
+
+
id
+
title
+
occurrence weight
+
content
+
rank
+
+
+
+
+
0
+
50
+
Alex Mercer and the Dulce Base Team
+
0.956522
+
# Alex Mercer and the Dulce Base Team\n\nThe c...
+
8.5
+
+
+
1
+
35
+
Kevin Scott and Technology Development
+
0.608696
+
# Kevin Scott and Technology Development\n\nTh...
+
7.5
+
+
+
2
+
53
+
Dulce Base and Paranormal Military Squad
+
0.565217
+
# Dulce Base and Paranormal Military Squad\n\n...
+
8.5
+
+
+
3
+
22
+
Paranormal Military Squad and Technological Ex...
+
0.434783
+
# Paranormal Military Squad and Technological ...
+
8.5
+
+
+
4
+
60
+
First Contact with Extraterrestrial Civilization
+
0.304348
+
# First Contact with Extraterrestrial Civiliza...
+
9.5
+
+
+
5
+
61
+
Dulce Base Operations and Distress
+
0.173913
+
# Dulce Base Operations and Distress\n\nThe co...
+
8.5
+
+
+
6
+
57
+
Operation: Dulce in New Mexico
+
0.130435
+
# Operation: Dulce in New Mexico\n\nThe commun...
+
7.5
+
+
+
7
+
48
+
Jacob Collier and Ben Bloomberg's First Tour
+
0.130435
+
# Jacob Collier and Ben Bloomberg's First Tour...
+
7.5
+
+
+
8
+
51
+
Cosmic Translators and Alien Script
+
0.086957
+
# Cosmic Translators and Alien Script\n\nThe c...
+
8.5
+
+
+
9
+
64
+
Terminal and Deep Hum
+
0.086957
+
# Terminal and Deep Hum\n\nThe community revol...
+
8.5
+
+
+
10
+
29
+
Paranormal Military Squad and Cosmic Dialogue
+
0.086957
+
# Paranormal Military Squad and Cosmic Dialogu...
+
8.5
+
+
+
11
+
39
+
Extraterrestrial Signal Decryption Community
+
0.086957
+
# Extraterrestrial Signal Decryption Community...
+
8.5
+
+
+
12
+
34
+
Growth Mindset and Stanford
+
0.086957
+
# Growth Mindset and Stanford\n\nThe community...
+
7.5
+
+
+
13
+
20
+
Jacob Collier and Taylor Swift's Albums
+
0.086957
+
# Jacob Collier and Taylor Swift's Albums\n\nT...
+
7.5
+
+
+
14
+
0
+
Omberg and Jacob Collier Collaboration
+
0.086957
+
# Omberg and Jacob Collier Collaboration\n\nTh...
+
7.5
+
+
+
15
+
65
+
Galactic Orchestra and Interstellar Duet
+
0.043478
+
# Galactic Orchestra and Interstellar Duet\n\n...
+
8.5
+
+
+
16
+
59
+
Alien Intelligence and Interstellar Siren's Call
+
0.043478
+
# Alien Intelligence and Interstellar Siren's ...
+
8.5
+
+
+
17
+
16
+
Jimmy Fallon Project on Primetime Television
+
0.043478
+
# Jimmy Fallon Project on Primetime Television...
+
6.5
+
+
+
18
+
42
+
Decryption Process and Digital Soundscape
+
0.043478
+
# Decryption Process and Digital Soundscape\n\...
+
6.5
+
+
+
19
+
5
+
Jacob Collier's Video Production
+
0.043478
+
# Jacob Collier's Video Production\n\nThe comm...
+
4.0
+
+
+
20
+
14
+
Ben Bloomberg's Phone System and House
+
0.043478
+
# Ben Bloomberg's Phone System and House\n\nTh...
+
3.0
+
+
+
21
+
9
+
Jacob Collier's Video Production
+
0.043478
+
# Jacob Collier's Video Production\n\nThe comm...
+
3.0
+
+
+
22
+
17
+
Ben Bloomberg's Phone System and Parental Conc...
+
0.043478
+
# Ben Bloomberg's Phone System and Parental Co...
+
3.0
+
+
+
23
+
58
+
Paranormal Military Squad and Alien Communicat...
+
0.956522
+
# Paranormal Military Squad and Alien Communic...
+
7.5
+
+
+
24
+
52
+
Paranormal Military Squad at Dulce Base
+
0.695652
+
# Paranormal Military Squad at Dulce Base\n\nT...
+
8.5
+
+
+
25
+
11
+
Jacob Collier and His Musical Collaborations
+
0.565217
+
# Jacob Collier and His Musical Collaborations...
+
8.5
+
+
+
26
+
54
+
Dr. Jordan Hayes and the Paranormal Military S...
+
0.347826
+
# Dr. Jordan Hayes and the Paranormal Military...
+
8.5
+
+
+
27
+
55
+
Operation: Dulce and Paranormal Military Squad
+
0.260870
+
# Operation: Dulce and Paranormal Military Squ...
+
8.5
+
+
+
28
+
68
+
Earth's Interstellar Communication and Galacti...
+
0.260870
+
# Earth's Interstellar Communication and Galac...
+
8.5
+
+
+
29
+
70
+
Paranormal Military Squad and Interstellar Com...
+
0.130435
+
# Paranormal Military Squad and Interstellar C...
+
8.5
+
+
+
30
+
71
+
Threshold and Humankind's Communication with E...
+
0.130435
+
# Threshold and Humankind's Communication with...
+
8.5
+
+
+
31
+
56
+
Dulce Military Base and Paranormal Operations
+
0.130435
+
# Dulce Military Base and Paranormal Operation...
+
8.5
+
+
+
32
+
69
+
Paranormal Military Squad and Interstellar Com...
+
0.130435
+
# Paranormal Military Squad and Interstellar C...
+
8.5
+
+
+
33
+
33
+
Behind the Tech and Microsoft Community
+
0.130435
+
# Behind the Tech and Microsoft Community\n\nT...
+
7.5
+
+
+
34
+
49
+
Djesse Vol. 3 and Djesse Albums Series
+
0.130435
+
# Djesse Vol. 3 and Djesse Albums Series\n\nTh...
+
7.5
+
+
+
35
+
66
+
Humanity and Cosmic Relationships
+
0.086957
+
# Humanity and Cosmic Relationships\n\nThe com...
+
8.5
+
+
+
36
+
19
+
Pandemic and Its Impact on Work and Art
+
0.086957
+
# Pandemic and Its Impact on Work and Art\n\nT...
+
8.5
+
+
+
37
+
67
+
Decryption and Understanding of Alien Signal
+
0.043478
+
# Decryption and Understanding of Alien Signal...
+
8.5
+
+
+
38
+
12
+
Montreux Jazz Festival and Key Performers
+
0.043478
+
# Montreux Jazz Festival and Key Performers\n\...
+
7.5
+
+
+
39
+
46
+
Robot Opera and Broadway
+
0.043478
+
# Robot Opera and Broadway\n\nThe community re...
+
7.5
+
+
+
40
+
21
+
Taylor Swift's Albums and Documentary
+
0.043478
+
# Taylor Swift's Albums and Documentary\n\nThe...
+
7.0
+
+
+
41
+
7
+
Stage Equipment and Transportation Network
+
0.043478
+
# Stage Equipment and Transportation Network\n...
+
6.5
+
+
+
42
+
37
+
Jaron Lanier and His Collection of Musical Ins...
+
0.043478
+
# Jaron Lanier and His Collection of Musical I...
+
4.5
+
+
+
43
+
45
+
Prince of Monaco and Monaco
+
0.043478
+
# Prince of Monaco and Monaco\n\nThe community...
+
4.0
+
+
+
44
+
62
+
Paranormal Military Squad at Dulce Base
+
1.000000
+
# Paranormal Military Squad at Dulce Base\n\nT...
+
8.5
+
+
+
45
+
63
+
Paranormal Military Squad and Operation: Dulce
+
0.782609
+
# Paranormal Military Squad and Operation: Dul...
+
9.0
+
+
+
46
+
43
+
Ben Bloomberg and the Harmoniser Project
+
0.478261
+
# Ben Bloomberg and the Harmoniser Project\n\n...
+
7.5
+
+
+
47
+
47
+
Ben and Jacob's Fusion of Art and Technology
+
0.173913
+
# Ben and Jacob's Fusion of Art and Technology...
+
7.5
+
+
+
48
+
28
+
Mission to Uncover Dulce's Mysteries
+
0.130435
+
# Mission to Uncover Dulce's Mysteries\n\nThe ...
+
8.5
+
+
+
49
+
18
+
Taylor Swift and Album of the Year
+
0.130435
+
# Taylor Swift and Album of the Year\n\nThe co...
+
7.5
+
+
+
50
+
40
+
Conversation between Kevin Scott and Jacob Col...
+
0.086957
+
# Conversation between Kevin Scott and Jacob C...
+
8.5
+
+
+
51
+
41
+
Humanity and the Unseen Partner
+
0.043478
+
# Humanity and the Unseen Partner\n\nThe commu...
+
8.5
+
+
+
52
+
15
+
Jimmy Fallon Project on Primetime TV
+
0.043478
+
# Jimmy Fallon Project on Primetime TV\n\nThe ...
+
7.5
+
+
+
53
+
38
+
Kevin Scott and the Engineering Mindset
+
0.043478
+
# Kevin Scott and the Engineering Mindset\n\nT...
+
6.5
+
+
+
54
+
44
+
North Hampton and Influential Musicians
+
0.043478
+
# North Hampton and Influential Musicians\n\nT...
+
6.5
+
+
+
55
+
36
+
Kevin Scott's Daughter and Her Fantasy Novel
+
0.043478
+
# Kevin Scott's Daughter and Her Fantasy Novel...
+
2.0
+
+
+
+
@@ -2690,17 +3686,9 @@ print(
-
-
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[11], line 3
- 1# inspect number of LLM calls and tokens
- 2print(
-----> 3f"LLM calls: {result.llm_calls}. Prompt tokens: {result.prompt_tokens}. Output tokens: {result.output_tokens}."
- 4 )
-
-NameError: name 'result' is not defined
Load community reports as context for global search¶
-
Load all community reports in the community_reports table from the indexing engine, to be used as context data for global search.
-
Load entities from the entities tables from the indexing engine, to be used for calculating community weights for context ranking. Note that this is optional (if no entities are provided, we will not calculate community weights and only use the rank attribute in the community reports table for context ranking)
-
Load all communities in the communities table from the indexing engine, to be used to reconstruct the community graph hierarchy for dynamic community selection.
+
Load all community reports in the create_final_community_reports table from the ire-indexing engine, to be used as context data for global search.
+
Load entities from the create_final_nodes and create_final_entities tables from the ire-indexing engine, to be used for calculating community weights for context ranking. Note that this is optional (if no entities are provided, we will not calculate community weights and only use the rank attribute in the community reports table for context ranking)
+
Load all communities in the create_final_communites table from the ire-indexing engine, to be used to reconstruct the community graph hierarchy for dynamic community selection.
# parquet files generated from indexing pipelineINPUT_DIR="./inputs/operation dulce"
-COMMUNITY_TABLE="communities"
-COMMUNITY_REPORT_TABLE="community_reports"
-ENTITY_TABLE="entities"
+COMMUNITY_TABLE="create_final_communities"
+COMMUNITY_REPORT_TABLE="create_final_community_reports"
+ENTITY_TABLE="create_final_nodes"
+ENTITY_EMBEDDING_TABLE="create_final_entities"# we don't fix a specific community level but instead use an agent to dynamicially# search through all the community reports to check if they are relevant.
@@ -2065,9 +2066,10 @@ token_encoder = tiktoken.encoding_for_model(llm_model)
# parquet files generated from indexing pipeline
INPUT_DIR = "./inputs/operation dulce"
-COMMUNITY_TABLE = "communities"
-COMMUNITY_REPORT_TABLE = "community_reports"
-ENTITY_TABLE = "entities"
+COMMUNITY_TABLE = "create_final_communities"
+COMMUNITY_REPORT_TABLE = "create_final_community_reports"
+ENTITY_TABLE = "create_final_nodes"
+ENTITY_EMBEDDING_TABLE = "create_final_entities"
# we don't fix a specific community level but instead use an agent to dynamicially
# search through all the community reports to check if they are relevant.
@@ -2099,16 +2101,17 @@ COMMUNITY_LEVEL = None
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[6], line 10
- 1 mini_llm = ChatOpenAI(
- 2 api_key=api_key,
- 3 model="gpt-4o-mini",
- 4 api_type=OpenaiApiType.OpenAI, # OpenaiApiType.OpenAI or OpenaiApiType.AzureOpenAI
- 5 max_retries=20,
- 6 )
- 7 mini_token_encoder = tiktoken.encoding_for_model(mini_llm.model)
- 9 context_builder = GlobalCommunityContext(
----> 10 community_reports=reports,
- 11 communities=communities,
- 12 entities=entities, # default to None if you don't want to use community weights for ranking
- 13 token_encoder=token_encoder,
- 14 dynamic_community_selection=True,
- 15 dynamic_community_selection_kwargs={
- 16"llm": mini_llm,
- 17"token_encoder": mini_token_encoder,
- 18 },
- 19 )
-
-NameError: name 'reports' is not defined
-
-
-
-
@@ -2415,8 +2448,8 @@ reduce_llm_params = {
-
-
+
+
@@ -2465,36 +2498,6 @@ reduce_llm_params = {
-
-
-
-
-
-
-
-
----------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[8], line 3
- 1 search_engine = GlobalSearch(
- 2 llm=llm,
-----> 3 context_builder=context_builder,
- 4 token_encoder=token_encoder,
- 5 max_data_tokens=12_000, # change this based on the token limit you have on your model (if you are using a model with 8k limit, a good setting could be 5000)
- 6 map_llm_params=map_llm_params,
- 7 reduce_llm_params=reduce_llm_params,
- 8 allow_general_knowledge=False, # set this to True will add instruction to encourage the LLM to incorporate general knowledge in the response, which may increase hallucinations, but could be useful in some use cases.
- 9 json_mode=True, # set this to False if your LLM model does not support JSON mode.
- 10 context_builder_params=context_builder_params,
- 11 concurrent_coroutines=32,
- 12 response_type="multiple paragraphs", # free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report
- 13 )
-
-NameError: name 'context_builder' is not defined
-
-
-
-
@@ -2539,14 +2542,317 @@ print(result.response)
---------------------------------------------------------------------------
-NameError Traceback (most recent call last)
+RateLimitError Traceback (most recent call last)
Cell In[9], line 1
-----> 1 result =awaitsearch_engine.asearch(
+----> 1 result =await search_engine.asearch(
2"What is Cosmic Vocalization and who are involved in it?" 3 )
5print(result.response)
-NameError: name 'search_engine' is not defined
This notebook is used to maintain data model parity with older indexes for version 2.0 of GraphRAG. If you have a pre-2.0 index and need to migrate without re-running the entire pipeline, you can use this notebook to only update the pieces necessary for alignment. If you have a pre-1.0 index, please run the v1 migration notebook first!
-
NOTE: we recommend regenerating your settings.yml with the latest version of GraphRAG using graphrag init. Copy your LLM settings into it before running this notebook. This ensures your config is aligned with the latest version for the migration. This also ensures that you have default vector store config, which is now required or indexing will fail.
-
WARNING: This will overwrite your parquet files, you may want to make a backup!
-
-
-
-
-
-
-
-
-
-
In [2]:
-
-
-
-
-Copied!
-
-
-
-
-
# This is the directory that has your settings.yaml
-PROJECT_DIRECTORY="<your project directory"
-
-
# This is the directory that has your settings.yaml
-PROJECT_DIRECTORY = "
-
----------------------------------------------------------------------------
-FileNotFoundError Traceback (most recent call last)
-Cell In[3], line 6
- 3fromgraphrag.config.load_configimport load_config
- 4fromgraphrag.storage.factoryimport StorageFactory
-----> 6 config =load_config(Path(PROJECT_DIRECTORY))
- 7 storage_config = config.output.model_dump()
- 8 storage = StorageFactory().create_storage(
- 9 storage_type=storage_config["type"],
- 10 kwargs=storage_config,
- 11 )
-
-File ~/work/graphrag/graphrag/graphrag/config/load_config.py:183, in load_config(root_dir, config_filepath, cli_overrides)
- 151"""Load configuration from a file.
- 152
- 153Parameters
- (...)
- 180 If there are pydantic validation errors when instantiating the config.
- 181"""
- 182 root = root_dir.resolve()
---> 183 config_path =_get_config_path(root,config_filepath)
- 184 _load_dotenv(config_path)
- 185 config_extension = config_path.suffix
-
-File ~/work/graphrag/graphrag/graphrag/config/load_config.py:106, in _get_config_path(root_dir, config_filepath)
- 104raiseFileNotFoundError(msg)
- 105else:
---> 106 config_path =_search_for_config_in_root_dir(root_dir)
- 108ifnot config_path:
- 109 msg =f"Config file not found in root directory: {root_dir}"
-
-File ~/work/graphrag/graphrag/graphrag/config/load_config.py:40, in _search_for_config_in_root_dir(root)
- 38ifnot root.is_dir():
- 39 msg =f"Invalid config path: {root} is not a directory"
----> 40raiseFileNotFoundError(msg)
- 42for file in _default_config_files:
- 43if (root / file).is_file():
-
-FileNotFoundError: Invalid config path: /home/runner/work/graphrag/graphrag/docs/examples_notebooks/<your project directory is not a directory
-
-
-
-
-
-
-
-
-
-
-
-
In [4]:
-
-
-
-
-Copied!
-
-
-
-
-
defremove_columns(df,columns):
-"""Remove columns from a DataFrame, suppressing errors."""
- df.drop(labels=columns,axis=1,errors="ignore",inplace=True)
-
-
def remove_columns(df, columns):
- """Remove columns from a DataFrame, suppressing errors."""
- df.drop(labels=columns, axis=1, errors="ignore", inplace=True)
-
-
-
-
-
-
-
-
-
-
-
-
In [5]:
-
-
-
-
-Copied!
-
-
-
-
-
fromgraphrag.utils.storageimport(
- delete_table_from_storage,
- load_table_from_storage,
- write_table_to_storage,
-)
-
-final_documents=awaitload_table_from_storage("create_final_documents",storage)
-final_text_units=awaitload_table_from_storage("create_final_text_units",storage)
-final_entities=awaitload_table_from_storage("create_final_entities",storage)
-final_nodes=awaitload_table_from_storage("create_final_nodes",storage)
-final_relationships=awaitload_table_from_storage(
- "create_final_relationships",storage
-)
-final_communities=awaitload_table_from_storage("create_final_communities",storage)
-final_community_reports=awaitload_table_from_storage(
- "create_final_community_reports",storage
-)
-
-# we've renamed document attributes as metadata
-if"attributes"infinal_documents.columns:
- final_documents.rename(columns={"attributes":"metadata"},inplace=True)
-
-# we're removing the nodes table, so we need to copy the graph columns into entities
-graph_props=(
- final_nodes.loc[:,["id","degree","x","y"]].groupby("id").first().reset_index()
-)
-final_entities=final_entities.merge(graph_props,on="id",how="left")
-
-# we renamed all the output files for better clarity now that we don't have workflow naming constraints from DataShaper
-awaitwrite_table_to_storage(final_documents,"documents",storage)
-awaitwrite_table_to_storage(final_text_units,"text_units",storage)
-awaitwrite_table_to_storage(final_entities,"entities",storage)
-awaitwrite_table_to_storage(final_relationships,"relationships",storage)
-awaitwrite_table_to_storage(final_communities,"communities",storage)
-awaitwrite_table_to_storage(final_community_reports,"community_reports",storage)
-
-# delete all the old versions
-awaitdelete_table_from_storage("create_final_documents",storage)
-awaitdelete_table_from_storage("create_final_text_units",storage)
-awaitdelete_table_from_storage("create_final_entities",storage)
-awaitdelete_table_from_storage("create_final_nodes",storage)
-awaitdelete_table_from_storage("create_final_relationships",storage)
-awaitdelete_table_from_storage("create_final_communities",storage)
-awaitdelete_table_from_storage("create_final_community_reports",storage)
-
-
from graphrag.utils.storage import (
- delete_table_from_storage,
- load_table_from_storage,
- write_table_to_storage,
-)
-
-final_documents = await load_table_from_storage("create_final_documents", storage)
-final_text_units = await load_table_from_storage("create_final_text_units", storage)
-final_entities = await load_table_from_storage("create_final_entities", storage)
-final_nodes = await load_table_from_storage("create_final_nodes", storage)
-final_relationships = await load_table_from_storage(
- "create_final_relationships", storage
-)
-final_communities = await load_table_from_storage("create_final_communities", storage)
-final_community_reports = await load_table_from_storage(
- "create_final_community_reports", storage
-)
-
-# we've renamed document attributes as metadata
-if "attributes" in final_documents.columns:
- final_documents.rename(columns={"attributes": "metadata"}, inplace=True)
-
-# we're removing the nodes table, so we need to copy the graph columns into entities
-graph_props = (
- final_nodes.loc[:, ["id", "degree", "x", "y"]].groupby("id").first().reset_index()
-)
-final_entities = final_entities.merge(graph_props, on="id", how="left")
-
-# we renamed all the output files for better clarity now that we don't have workflow naming constraints from DataShaper
-await write_table_to_storage(final_documents, "documents", storage)
-await write_table_to_storage(final_text_units, "text_units", storage)
-await write_table_to_storage(final_entities, "entities", storage)
-await write_table_to_storage(final_relationships, "relationships", storage)
-await write_table_to_storage(final_communities, "communities", storage)
-await write_table_to_storage(final_community_reports, "community_reports", storage)
-
-# delete all the old versions
-await delete_table_from_storage("create_final_documents", storage)
-await delete_table_from_storage("create_final_text_units", storage)
-await delete_table_from_storage("create_final_entities", storage)
-await delete_table_from_storage("create_final_nodes", storage)
-await delete_table_from_storage("create_final_relationships", storage)
-await delete_table_from_storage("create_final_communities", storage)
-await delete_table_from_storage("create_final_community_reports", storage)