extract

Extract Data from text using LLM

source

extract_data

 extract_data (source_text:str,
               questions:List[llm_data_extractor.models.Question],
               llm_config:llm_data_extractor.models.LLMConfig,
               source_id:Optional[str]=None, batch_id:Optional[str]=None)

*Extract structured data from unstructured text using LLM.

Args: source_text: The text to extract data from questions: List of questions to answer llm_config: LLM configuration source_id: Optional identifier for the source batch_id: Optional batch identifier

Returns: Tuple of (extraction_results, metadata)*