Skip to content

Commit 5dc6165

Browse files
committed
add example
1 parent c78aa43 commit 5dc6165

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

examples/anthropic/pdf_scraper_graph_haiku.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,10 @@
2828
the Beatrice of his earlier poetry, through the celestial spheres of Paradise.
2929
"""
3030

31-
schema = """
32-
{
33-
"type": "object",
34-
"properties": {
35-
"summary": {
36-
"type": "string"
37-
},
38-
"topics": {
39-
"type": "array",
40-
"items": {
41-
"type": "string"
42-
}
43-
}
44-
}
45-
}
46-
"""
47-
4831
pdf_scraper_graph = PDFScraperGraph(
4932
prompt="Summarize the text and find the main topics",
5033
source=source,
5134
config=graph_config,
52-
schema=schema,
5335
)
5436
result = pdf_scraper_graph.run()
5537

examples/anthropic/smart_scraper_haiku.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
# required environment variables in .env
12-
# HUGGINGFACEHUB_API_TOKEN
1312
# ANTHROPIC_API_KEY
1413
load_dotenv()
1514

0 commit comments

Comments
 (0)