Class: Langchain::Chunk
- Inherits:
-
Object
- Object
- Langchain::Chunk
- Defined in:
- lib/langchain/chunk.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
The chunking process is the process of splitting a document into smaller chunks and creating instances of Langchain::Chunk.
Instance Method Summary collapse
-
#initialize(text:) ⇒ Langchain::Chunk
constructor
Initialize a new chunk.
Constructor Details
#initialize(text:) ⇒ Langchain::Chunk
Initialize a new chunk
12 13 14 |
# File 'lib/langchain/chunk.rb', line 12 def initialize(text:) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
The chunking process is the process of splitting a document into smaller chunks and creating instances of Langchain::Chunk
7 8 9 |
# File 'lib/langchain/chunk.rb', line 7 def text @text end |