orkgnlp.deepresearch.encoder.DeepResearchEncoder
- class DeepResearchEncoder(openai_api_key, firecrawl_api_key=None, research_provider='orkg', openai_endpoint='https://api.openai.com/v1', custom_model='o3-mini')[source]
Bases:
ORKGNLPBaseEncoderMethods
Encodes the
raw_inputto a model-friendly format.Releases the memory of all available attributes in a pipeline component.
- encode(raw_input, **kwargs)[source]
Encodes the
raw_inputto a model-friendly format.- Parameters:
raw_input (
Any) – The user’s input to be encoded.- Return type:
Tuple[Any,Dict[str,Any]]- Returns:
The model-friendly output and kwargs.
- release_memory()
Releases the memory of all available attributes in a pipeline component.