Class: Langchain::Chunker::Base

Inherits:
Object
  • Object
show all
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

Markdown, RecursiveText, Semantic, Sentence, Text

Instance Method Summary collapse

Instance Method Details

#chunksArray<Langchain::Chunk>

Returns:

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/langchain/chunker/base.rb', line 17

def chunks
  raise NotImplementedError
end