Files
DeepTutor/deeptutor
Amir Fathi a252a0a83e fix: escape $ in GraphRAG file_pattern, fix cache type (#699)
GraphRAG's load_config() runs string.Template substitution on the raw
settings.yaml text before parsing it, so the literal $ in our
file_pattern regex (.*\.txt$) raises "Invalid placeholder". Escape
it as $$.

cache.type was set to "file", which is a storage type, not a
registered cache type (GraphRAG's CacheFactory only knows
json/memory/none); the first indexing run raises
"CacheConfig.type 'file' is not registered in the CacheFactory".
Changed to "json".

Verified both failures and the fix against the real graphrag==3.1.1
package (graphrag.config.load_config.load_config +
graphrag_cache.cache_factory.create_cache, the same call
run_pipeline.py makes), not just a yaml roundtrip. Added a regression
test guarded with pytest.importorskip("graphrag") since the package
is not installed in this repo's CI; ran RED on unpatched config.py and
GREEN after the fix, both with graphrag installed in Docker.

Fixes #695
2026-07-26 20:22:11 +08:00
..
2026-06-11 20:03:34 +08:00
2026-07-24 03:06:58 +08:00
2026-07-18 19:47:03 +08:00
2026-04-23 19:29:16 +08:00
2026-06-17 00:56:27 +08:00
2026-05-01 13:51:45 +08:00
2026-06-27 18:47:53 +08:00
2026-07-19 16:56:34 +08:00
2026-04-23 19:29:16 +08:00
2026-07-24 18:16:04 +08:00