Skip to content

Python scraper based on AI

smart_scraper_local.py: Allow using a remote Ollama #53

ftoppi64d8e7c3b638
diff --git a/examples/local/smart_scraper_local.py b/examples/local/smart_scraper_local.py
index 2ef08e38..0869ae48 100644
--- a/examples/local/smart_scraper_local.py
+++ b/examples/local/smart_scraper_local.py
@@ -20,7 +20,8 @@ graph_config = {
"model": "ollama/mistral",
"temperature": 0,
"format": "json", # Ollama needs the format to be specified explicitly
- # "model_tokens": 2000, # set context length arbitrarily
+ # "model_tokens": 2000, # set context length arbitrarily,
+ # "base_url": "http://ollama:11434", # set ollama URL arbitrarily
},
}