Add RAG basic implementation

This commit is contained in:
2026-11-09 08:43:30 +03:00
parent 447464c16c
commit 7fa1d774a0
76 changed files with 3030 additions and 124 deletions
+13
View File
@@ -38,3 +38,16 @@ def backend_dsn(request, tmp_path) -> str:
url = f"sqlite:///{tmp_path / 'test.db'}"
create_schema(url)
return url
@pytest.fixture
def sleeps():
"""A fake `sleep` that records the pauses a retry loop asks for instead of waiting."""
calls: list[float] = []
async def fake_sleep(seconds: float) -> None:
calls.append(seconds)
fake_sleep.calls = calls
return fake_sleep