Skip to content

docs: fix missing imports in quickstart LLM extraction example - #2323

Open
jrlprost wants to merge 1 commit into
unclecode:developfrom
jrlprost:fix/docs-1001-0129
Open

jrlprost wants to merge 1 commit into
unclecode:developfrom
jrlprost:fix/docs-1001-0129

Conversation

@jrlprost

Copy link
Copy Markdown

The LLM-based extraction example in section 6 of docs/md_v2/core/quickstart.md uses BrowserConfig, CacheMode, and Dict without importing them, so running it as documented fails with NameError: name 'Dict' is not defined (and would then fail again on BrowserConfig).

Verified by extracting the exact snippet and running it: it raises NameError before the fix and runs past that point after adding from typing import Dict and importing BrowserConfig/CacheMode from crawl4ai.

This is the same class of issue already fixed in section 4 by #1715; section 6 was missed.

The example in section 6 (Simple Data Extraction - LLM-based) uses
BrowserConfig, CacheMode, and Dict without importing them, causing
the snippet to fail with NameError when run as documented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant