Files
DeepTutor/tests
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-07-22 16:31:22 +08:00
2026-06-17 10:30:25 +08:00
2026-06-18 00:22:48 +08:00