compass.plugin.noop.NoOpTextCollector#

class NoOpTextCollector(*args, **kwargs)[source]#

Bases: BaseTextCollector

NoOp text collector that returns the full text

Parameters:
  • llm_service (Service) – LLM service used for queries.

  • usage_tracker (UsageTracker, optional) – Optional tracker instance to monitor token usage during LLM calls. By default, None.

  • **kwargs

    Keyword arguments to be passed to the underlying service processing function (i.e. llm_service.call(**kwargs)). Should not contain the following keys:

    • usage_sub_label

    • messages

    These arguments are provided by this caller object.

Methods

check_chunk(chunk_parser, ind)

Check a chunk at a given ind to see if it contains ordinance

Attributes

OUT_LABEL

Identifier for text collected by this class

relevant_text

Combined relevant text from the individual chunks

OUT_LABEL = 'relevant_text'#

Identifier for text collected by this class

property relevant_text#

Combined relevant text from the individual chunks

Type:

str

async check_chunk(chunk_parser, ind)[source]#

Check a chunk at a given ind to see if it contains ordinance

In this implementation, we store all chunks, so this method always returns True.

Parameters:
  • chunk_parser (ParseChunksWithMemory) – Instance that contains a parse_from_ind method.

  • ind (int) – Index of the chunk to check.

Returns:

bool – Boolean flag indicating whether or not the text in the chunk contains large wind energy conversion system ordinance text.