Skip to content

Python scraper based on AI

Update pdf_scraper_graph_haiku.py

Marco Vinciguerrafe8083fe488c
diff --git a/examples/anthropic/pdf_scraper_graph_haiku.py b/examples/anthropic/pdf_scraper_graph_haiku.py
index 10080b0f..61be06b4 100644
--- a/examples/anthropic/pdf_scraper_graph_haiku.py
+++ b/examples/anthropic/pdf_scraper_graph_haiku.py
@@ -30,28 +30,10 @@ source = """
the Beatrice of his earlier poetry, through the celestial spheres of Paradise.
"""
-schema = """
- {
- "type": "object",
- "properties": {
- "summary": {
- "type": "string"
- },
- "topics": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
-"""
-
pdf_scraper_graph = PDFScraperGraph(
prompt="Summarize the text and find the main topics",
source=source,
config=graph_config,
- schema=schema,
)
result = pdf_scraper_graph.run()