Class: Langchain::Processors::Markdown
- Defined in:
- lib/langchain/processors/markdown.rb
Constant Summary collapse
- EXTENSIONS =
[".markdown", ".md"]
- CONTENT_TYPES =
["text/markdown"]
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/markdown.rb', line 12 def parse(data) data.read end |