Скелет проекта

This commit is contained in:
2026-01-30 22:21:12 +03:00
commit 84ded7d7a9
30 changed files with 752 additions and 0 deletions

9
tests/test_chunker.py Normal file
View File

@@ -0,0 +1,9 @@
from rag_agent.ingest.chunker import chunk_text
def test_chunk_text_basic():
text = "one two three four five six seven eight"
chunks = chunk_text(text, chunk_size=3, overlap=1)
assert len(chunks) == 3
assert chunks[0].text == "one two three"
assert chunks[1].text.startswith("three four")