Skip to content

Commit dd2b3a8

Browse files
committed
add examples
1 parent 4f53b09 commit dd2b3a8

File tree

4 files changed

+1
-35
lines changed

4 files changed

+1
-35
lines changed

examples/gemini/smart_scraper_schema_gemini.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ class Projects(BaseModel):
5454

5555
graph_exec_info = smart_scraper_graph.get_execution_info()
5656
print(prettify_exec_info(graph_exec_info))
57+
```

examples/oneapi/pdf_scraper_graph_oneapi.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,11 @@
2424
the Beatrice of his earlier poetry, through the celestial spheres of Paradise.
2525
"""
2626

27-
schema = """
28-
{
29-
"type": "object",
30-
"properties": {
31-
"summary": {
32-
"type": "string"
33-
},
34-
"topics": {
35-
"type": "array",
36-
"items": {
37-
"type": "string"
38-
}
39-
}
40-
}
41-
}
42-
"""
4327

4428
pdf_scraper_graph = PDFScraperGraph(
4529
prompt="Summarize the text and find the main topics",
4630
source=source,
4731
config=graph_config,
48-
schema=schema,
4932
)
5033
result = pdf_scraper_graph.run()
5134

examples/openai/pdf_scraper_graph_openai.py

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

33-
schema = """
34-
{
35-
"type": "object",
36-
"properties": {
37-
"summary": {
38-
"type": "string"
39-
},
40-
"topics": {
41-
"type": "array",
42-
"items": {
43-
"type": "string"
44-
}
45-
}
46-
}
47-
}
48-
"""
49-
5033
pdf_scraper_graph = PDFScraperGraph(
5134
prompt="Summarize the text and find the main topics",
5235
source=source,
5336
config=graph_config,
54-
schema=schema,
5537
)
5638
result = pdf_scraper_graph.run()
5739

0 commit comments

Comments
 (0)