base_extraction_engine
BaseExtractionEngine
Bases: ABC
BaseExtractionEngine
Bases: ABC
griptape/engines/extraction/base_extraction_engine.py
chunk_joiner: str = field(default='\n\n', kw_only=True)
class-attribute
instance-attribute
chunker: BaseChunker = field(default=Factory(lambda self: TextChunker(tokenizer=self.prompt_driver.tokenizer, max_tokens=self.max_chunker_tokens), takes_self=True), kw_only=True)
class-attribute
instance-attribute
max_chunker_tokens: int
property
max_token_multiplier: float = field(default=0.5, kw_only=True)
class-attribute
instance-attribute
min_response_tokens: int
property
prompt_driver: BasePromptDriver = field(default=Factory(lambda: Defaults.drivers_config.prompt_driver), kw_only=True)
class-attribute
instance-attribute
extract_artifacts(artifacts, *, rulesets=None, **kwargs)
abstractmethod
extract_text(text, *, rulesets=None, **kwargs)
validate_max_token_multiplier(_, max_token_multiplier)
griptape/engines/extraction/base_extraction_engine.py