| 49 | return extracted_content |
| 50 | |
| 51 | class NoExtractionStrategy(ExtractionStrategy): |
| 52 | def extract(self, url: str, html: str, *q, **kwargs) -> List[Dict[str, Any]]: |
| 53 | return [{"index": 0, "content": html}] |
| 54 | |
| 55 | def run(self, url: str, sections: List[str], *q, **kwargs) -> List[Dict[str, Any]]: |
| 56 | return [{"index": i, "tags": [], "content": section} for i, section in enumerate(sections)] |
| 57 | |
| 58 | class LLMExtractionStrategy(ExtractionStrategy): |
| 59 | def __init__(self, |
no outgoing calls
searching dependent graphs…