Class: Langchain::Processors::RB

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

Instance Method Details

#parse(data) ⇒ String

Parse the document and return the text

Parameters:

  • data (File)

Returns:

  • (String)


10
11
12
# File 'app/services/plain/ai_docs.rb', line 10

def parse(data)
  data.read
end