Closed
Description
from crawl4ai import WebCrawler
from crawl4ai.chunking_strategy import SlidingWindowChunking
from crawl4ai.extraction_strategy import LLMExtractionStrategy
crawler = WebCrawler()
crawler.warmup()
strategy = LLMExtractionStrategy(
provider='openai',
api_token=os.getenv('OPENAI_API_KEY')
)
loader = crawler.run(url=all_urls[0], extraction_strategy=strategy)
chunker = SlidingWindowChunking(window_size=2000, step=50)
texts = chunker.chunk(loader)
print(texts)
I want text in chunks from the crawler.run, so to further use these text in storing embeddings, how can I?
its showing me the error : 'CrawlResult' object has no attribute 'split'
Activity