File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import pytest
1313
1414from app .config import ChunkStrategy , RetrievalConfig
15- from app .generation .providers import count_tokens
1615from app .db .models import ExtractionMethod
16+ from app .generation .providers import count_tokens
1717from app .ingest .chunk import build_chunks , chunk_fixed , chunk_recursive
1818from app .ingest .parse import Heading , ParsedPage
1919
@@ -274,8 +274,8 @@ def test_zero_overlap_config_carries_nothing(recursive_config):
274274
275275
276276def test_carried_overlap_respects_the_token_budget (recursive_config ):
277- from app .ingest .chunk import _tail_within_budget
278277 from app .generation .providers import count_tokens
278+ from app .ingest .chunk import _tail_within_budget
279279
280280 text = " " .join (f"word{ i } " for i in range (500 )) + "."
281281 for budget in (10 , 45 , 90 ):
You can’t perform that action at this time.
0 commit comments