Class: Langchain::Chunker::Base
- Inherits:
-
Object
- Object
- Langchain::Chunker::Base
- Defined in:
- lib/langchain/chunker/base.rb
Overview
Chunkers
Chunkers are used to split documents into smaller chunks before indexing into vector search databases. Otherwise large documents, when retrieved and passed to LLMs, may hit the context window limits.
Available chunkers
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#chunks ⇒ Array<Langchain::Chunk>
17 18 19 |
# File 'lib/langchain/chunker/base.rb', line 17 def chunks raise NotImplementedError end |