Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(parse): ignore sqlite database extensions (#1598)
euyua90472b65f3395
diff --git a/openviking/parse/parsers/constants.py b/openviking/parse/parsers/constants.pyindex 33622a7c1..8561e31a8 100644--- a/openviking/parse/parsers/constants.py+++ b/openviking/parse/parsers/constants.py@@ -43,7 +43,8 @@ IGNORE_EXTENSIONS = {".iso",".img",".db",- ".sqlitive",+ ".sqlite",+ ".sqlite3",# Archive formats".zip",".tar",diff --git a/tests/test_upload_utils.py b/tests/test_upload_utils.pyindex 53def2003..61c2bf712 100644--- a/tests/test_upload_utils.py+++ b/tests/test_upload_utils.py@@ -189,6 +189,14 @@ class TestShouldSkipFile:assert skip is Trueassert ".jpg" in reason+ def test_sqlite_extensions_are_ignored(self, tmp_path: Path) -> None:+ for name in ["cache.sqlite", "cache.sqlite3"]:+ f = tmp_path / name+ f.write_bytes(b"SQLite format 3\x00")+ skip, reason = should_skip_file(f)+ assert skip is True+ assert f.suffix in reason+def test_large_file(self, tmp_path: Path) -> None:f = tmp_path / "big.txt"f.write_bytes(b"x" * 100)