Class: Langchain::Processors::Text
- Defined in:
- lib/langchain/processors/text.rb
Constant Summary collapse
- EXTENSIONS =
[".txt"]
- CONTENT_TYPES =
["text/plain"]
Instance Method Summary collapse
-
#parse(data) ⇒ String
Parse the document and return the text.
Methods inherited from Base
Methods included from DependencyHelper
Constructor Details
This class inherits a constructor from Langchain::Processors::Base
Instance Method Details
#parse(data) ⇒ String
Parse the document and return the text
12 13 14 |
# File 'lib/langchain/processors/text.rb', line 12 def parse(data) data.read end |