Class: Langchain::Processors::JSON

Inherits:
Base
  • Object
show all
Defined in:
app/services/plain/ai_docs.rb

Constant Summary collapse

EXTENSIONS =
[".json"]
CONTENT_TYPES =
["application/json"]

Instance Method Summary collapse

Instance Method Details

#parse(data) ⇒ Hash

Parse the document and return the text

Parameters:

  • data (File)

Returns:

  • (Hash)


34
35
36
# File 'app/services/plain/ai_docs.rb', line 34

def parse(data)
  data.read
end