Class: Langchain::Processors::RB
- Inherits:
-
Base
- Object
- Base
- Langchain::Processors::RB
- Defined in:
- app/services/plain/ai_docs.rb
Constant Summary collapse
- EXTENSIONS =
[".rb", ".js", ".erb", ".md", ".gemspec"]
- CONTENT_TYPES =
["text/plain"]
Instance Method Summary collapse
-
#parse(data) ⇒ String
Parse the document and return the text.
Instance Method Details
#parse(data) ⇒ String
Parse the document and return the text
10 11 12 |
# File 'app/services/plain/ai_docs.rb', line 10 def parse(data) data.read end |