Class: Langchain::Processors::JSON
- Inherits:
-
Base
- Object
- Base
- Langchain::Processors::JSON
- Defined in:
- app/services/plain/ai_docs.rb
Constant Summary collapse
- EXTENSIONS =
[".json"]
- CONTENT_TYPES =
["application/json"]
Instance Method Summary collapse
-
#parse(data) ⇒ Hash
Parse the document and return the text.
Instance Method Details
#parse(data) ⇒ Hash
Parse the document and return the text
34 35 36 |
# File 'app/services/plain/ai_docs.rb', line 34 def parse(data) data.read end |