Skip to content

Python scraper based on AI

add embeddings in the example

VinciGit0068f1ca1b7845
diff --git a/examples/local_models/Docker/smart_scraper_docker.py b/examples/local_models/Docker/smart_scraper_docker.py
index f5b98f82..3b182c29 100644
--- a/examples/local_models/Docker/smart_scraper_docker.py
+++ b/examples/local_models/Docker/smart_scraper_docker.py
@@ -15,6 +15,10 @@ graph_config = {
"format": "json",
# "model_tokens": 2000, # set context length arbitrarily,
},
+ "embeddings": {
+ "model": "ollama/nomic-embed-text",
+ "temperature": 0,
+ }
}
# ************************************************