-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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
$ graphrag index --dry-run --verbose
--- Logging error ---
Traceback (most recent call last):
File "D:\Program Files\Python311\Lib\logging_init_.py", line 1110, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\logging_init_.py", line 953, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\logging_init_.py", line 687, in format
record.message = record.getMessage()
^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\logging_init_.py", line 377, in getMessage
msg = msg % self.args
~~~~^~~~~~~~~~~
TypeError: not all arguments converted during string formatting
Call stack:
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "D:\Program Files\Python311\Scripts\graphrag.exe_main.py", line 5, in
sys.exit(app())
File "D:\Program Files\Python311\Lib\site-packages\typer\main.py", line 319, in call
return get_command(self)(*args, **kwargs)
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1442, in call
return self.main(*args, **kwargs)
File "D:\Program Files\Python311\Lib\site-packages\typer\core.py", line 814, in main
return _main(
File "D:\Program Files\Python311\Lib\site-packages\typer\core.py", line 190, in _main
rv = self.invoke(ctx)
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\Program Files\Python311\Lib\site-packages\click\core.py", line 794, in invoke
return callback(*args, **kwargs)
File "D:\Program Files\Python311\Lib\site-packages\typer\main.py", line 706, in wrapper
return callback(**use_params)
File "D:\Program Files\Python311\Lib\site-packages\graphrag\cli\main.py", line 186, in _index_cli
index_cli(
File "D:\Program Files\Python311\Lib\site-packages\graphrag\cli\index.py", line 54, in index_cli
_run_index(
File "D:\Program Files\Python311\Lib\site-packages\graphrag\cli\index.py", line 119, in _run_index
logger.info("Dry run complete, exiting...", True)
Message: 'Dry run complete, exiting...'
Arguments: (True,)
D:\Program Files\Python311\Lib\site-packages\litellm\llms\custom_httpx\async_client_cleanup.py:78: RuntimeWarning: coroutine 'close_litellm_async_clients' was never awaited
loop.close()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Steps to reproduce
Expected Behavior
$ graphrag index --dry-run --verbose
GraphRAG Config Used
embedding_models:
default_embedding_model:
model_provider: openai
auth_method: api_key
api_key: "ollama" #${GRAPHRAG_API_KEY}
model: nomic-embed-text
api_base: http://localhost:11434/v1
retry:
type: exponential_backoff
vector_store:
type: lancedb
db_uri: output\lancedb
community_full_content:
vector_size: 768
entity_description:
vector_size: 768
text_unit_text:
vector_size: 768Logs and screenshots
No response
Additional Information
- GraphRAG Version:3.0.4
- Operating System: Windows 10
- Python Version: 3.11
- Related Issues: