Class: Langchain::Processors::Base

Inherits:
Object
  • Object
show all
Includes:
DependencyHelper
Defined in:
lib/langchain/processors/base.rb

Overview

Processors load and parse/process various data types such as CSVs, PDFs, Word documents, HTML pages, and others.

Direct Known Subclasses

CSV, Docx, Eml, HTML, JSON, JSONL, Markdown, PDF, Pptx, Text, Xls, Xlsx

Constant Summary collapse

EXTENSIONS =
[]
CONTENT_TYPES =
[]

Instance Method Summary collapse

Methods included from DependencyHelper

#depends_on

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/langchain/processors/base.rb', line 12

def initialize(options = {})
  @options = options
end

Instance Method Details

#parse(data) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/langchain/processors/base.rb', line 16

def parse(data)
  raise NotImplementedError
end