feat: implement and test index method

This commit is contained in:
CREDO23 2026-02-25 01:40:30 +02:00
parent 497ed681d5
commit 61e50834e6
8 changed files with 218 additions and 31 deletions

View file

@ -0,0 +1,6 @@
from app.config import config
def chunk_text(text: str) -> list[str]:
"""Chunk a text string using the configured chunker and return the chunk texts."""
return [c.text for c in config.chunker_instance.chunk(text)]