mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 05:12:38 +02:00
6 lines
224 B
Python
6 lines
224 B
Python
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)]
|