Method: Langchain::LLM::Base#summarize

Defined in:
lib/langchain/llm/base.rb

#summarizeObject

Generate a summary for a given text. Parameters depends on the LLM.

Raises:

  • NotImplementedError if not supported by the LLM


74
75
76
# File 'lib/langchain/llm/base.rb', line 74

def summarize(...)
  raise NotImplementedError, "#{self.class.name} does not support summarization"
end