Spaces:
Running on Zero
Running on Zero
Update chunking.py
Browse files- chunking.py +1 -1
chunking.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
"""Split cleaned documents into overlapping text chunks."""
|
| 2 |
|
| 3 |
-
from
|
| 4 |
|
| 5 |
|
| 6 |
def chunk_text(text: str, chunk_size: int = CHUNK_SIZE, overlap: int = CHUNK_OVERLAP) -> list[str]:
|
|
|
|
| 1 |
"""Split cleaned documents into overlapping text chunks."""
|
| 2 |
|
| 3 |
+
from config import CHUNK_SIZE, CHUNK_OVERLAP
|
| 4 |
|
| 5 |
|
| 6 |
def chunk_text(text: str, chunk_size: int = CHUNK_SIZE, overlap: int = CHUNK_OVERLAP) -> list[str]:
|