compass.plugin.noop.NoOpTextExtractor#
- class NoOpTextExtractor(llm_service, usage_tracker=None, **kwargs)[source]#
Bases:
BaseTextExtractorNoOp text extractor 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
return_original(text_chunks)No processing, just return original text
Attributes
Identifier for text ingested by this class
Identifier for final text extracted by this class
Task description to show in progress bar
ID to use for this extraction for linking with LLM configs
Iterable of parsers provided by this extractor
- TASK_DESCRIPTION = 'Condensing text for extraction'#
Task description to show in progress bar
- TASK_ID = 'text_extraction'#
ID to use for this extraction for linking with LLM configs
- property parsers#
Iterable of parsers provided by this extractor
- Yields:
name (
str) – Name describing the type of text output by the parser.parser (
callable()) – Async function that takes atext_chunksinput and outputs parsed text.