Class: HotwireClub::MCP::FreeLoader

Inherits:
Loader
  • Object
show all
Defined in:
lib/hotwire_club/mcp/loader.rb

Overview

Loader for free documents only

Class Method Summary collapse

Class Method Details

.load_docs(corpus_path = "corpus") ⇒ Array<Doc>

Load only free documents from corpus directory

Parameters:

  • corpus_path (String) (defaults to: "corpus")

    Path to corpus directory

Returns:

  • (Array<Doc>)

    Array of Doc objects for files with ready: true and free: true



29
30
31
# File 'lib/hotwire_club/mcp/loader.rb', line 29

def self.load_docs(corpus_path = "corpus")
  super.select(&:free)
end