compass.plugin.noop.NoOpTextCollector#
- class NoOpTextCollector(*args, **kwargs)[source]#
Bases:
BaseTextCollectorNoOp 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
Identifier for text collected by this class
Combined relevant text from the individual chunks
- OUT_LABEL = 'relevant_text'#
Identifier for text collected by this class
- 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 aparse_from_indmethod.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.