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
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
Cell In[11], line 1 ----> 1 search_engine.search(query="whatr is thre summary of the Document") File ~/miniconda3/envs/graphrag/lib/python3.10/site-packages/graphrag/query/structured_search/global_search/search.py:195, in GlobalSearch.search(self, query, conversation_history, kwargs) 188 def search( 189 self, 190 query: str, 191 conversation_history: ConversationHistory | None = None, 192 kwargs: Any, 193 ) -> GlobalSearchResult: 194 """Perform a global search synchronously.""" --> 195 return asyncio.run(self.asearch(query, conversation_history)) File ~/miniconda3/envs/graphrag/lib/python3.10/asyncio/runners.py:33, in run(main, debug) 9 """Execute the coroutine and return the result. 10 11 This function runs the passed coroutine, taking care of (...) 30 asyncio.run(main()) 31 """ 32 if events._get_running_loop() is not None: ---> 33 raise RuntimeError( 34 "asyncio.run() cannot be called from a running event loop") 36 if not coroutines.iscoroutine(main): 37 raise ValueError("a coroutine was expected, got {!r}".format(main)) RuntimeError: asyncio.run() cannot be called from a running event loop
Steps to reproduce
i am getting error in the Starter Code OF the Graph Rag
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:
The text was updated successfully, but these errors were encountered:
bhupender101
added
bug
Something isn't working
triage
Default label assignment, indicates new issue needs reviewed by a maintainer
labels
Nov 7, 2024
bhupender101
changed the title
[Bug]: <title>
RuntimeError: asyncio.run() cannot be called from a running event loop
Nov 7, 2024
Do you need to file an issue?
Describe the bug
Cell In[11], line 1 ----> 1 search_engine.search(query="whatr is thre summary of the Document") File ~/miniconda3/envs/graphrag/lib/python3.10/site-packages/graphrag/query/structured_search/global_search/search.py:195, in GlobalSearch.search(self, query, conversation_history, kwargs) 188 def search( 189 self, 190 query: str, 191 conversation_history: ConversationHistory | None = None, 192 kwargs: Any, 193 ) -> GlobalSearchResult: 194 """Perform a global search synchronously.""" --> 195 return asyncio.run(self.asearch(query, conversation_history)) File ~/miniconda3/envs/graphrag/lib/python3.10/asyncio/runners.py:33, in run(main, debug) 9 """Execute the coroutine and return the result. 10 11 This function runs the passed coroutine, taking care of (...) 30 asyncio.run(main()) 31 """ 32 if events._get_running_loop() is not None: ---> 33 raise RuntimeError( 34 "asyncio.run() cannot be called from a running event loop") 36 if not coroutines.iscoroutine(main): 37 raise ValueError("a coroutine was expected, got {!r}".format(main)) RuntimeError: asyncio.run() cannot be called from a running event loop
Steps to reproduce
i am getting error in the Starter Code OF the Graph Rag
Expected Behavior
No response
GraphRAG Config Used
# Paste your config here
Logs and screenshots
No response
Additional Information
The text was updated successfully, but these errors were encountered: