Skip to content

Python scraper based on AI

docs(refactor): changed example

Marco Perinic7ec114274da
diff --git a/examples/openai/search_graph_openai.py b/examples/openai/search_graph_openai.py
index fa4ea60e..9d23ac3b 100644
--- a/examples/openai/search_graph_openai.py
+++ b/examples/openai/search_graph_openai.py
@@ -17,7 +17,7 @@ openai_key = os.getenv("OPENAI_APIKEY")
graph_config = {
"llm": {
"api_key": openai_key,
- "model": "gpt-4-turbo",
+ "model": "gpt-3.5-turbo",
},
"max_results": 2,
"verbose": True,
@@ -28,7 +28,7 @@ graph_config = {
# ************************************************
search_graph = SearchGraph(
- prompt="List me the heir of the British throne.",
+ prompt="List me the Chioggia typical dishes",
config=graph_config
)
diff --git a/examples/openai/smart_scraper_openai.py b/examples/openai/smart_scraper_openai.py
index 444890f1..01448a5b 100644
--- a/examples/openai/smart_scraper_openai.py
+++ b/examples/openai/smart_scraper_openai.py
@@ -30,7 +30,7 @@ graph_config = {
# ************************************************
smart_scraper_graph = SmartScraperGraph(
- prompt="List me all the links in the page",
+ prompt="List me all the projects with their description.",
# also accepts a string with the already downloaded HTML code
source="https://perinim.github.io/projects/",
config=graph_config