splitter
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
TextChunk llmling_agent.splitter Chunk of text with metadata. |
||
TextChunker llmling_agent.splitter Base class for text chunkers. |
🛈 DocStrings¶
Base classes for text chunking implementations.
TextChunk
¶
Chunk of text with metadata.
Source code in src/llmling_agent/splitter.py
13 14 15 16 17 18 19 20 21 22 |
|
TextChunker
¶
Bases: ABC
Base class for text chunkers.
Source code in src/llmling_agent/splitter.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
split
abstractmethod
¶
Split text into chunks.
Source code in src/llmling_agent/splitter.py
28 29 30 31 32 33 |
|
split_async
async
¶
split_async(
text: str, document_metadata: dict[str, Any] | None = None
) -> AsyncIterable[TextChunk]
Split text asynchronously into chunks.
Source code in src/llmling_agent/splitter.py
35 36 37 38 39 40 41 |
|
split_texts
¶
Split multiple texts into chunks.
Source code in src/llmling_agent/splitter.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|