Skip to content

Python scraper based on AI

Merge branch 'pre/beta' into pass-common-params-graph

Eric Pagecc27b21c3f0c
diff --cc scrapegraphai/graphs/abstract_graph.py
index 9087901f,aff7289c..9bafa019
--- a/scrapegraphai/graphs/abstract_graph.py
+++ b/scrapegraphai/graphs/abstract_graph.py
@@@ -43,14 -48,10 +48,15 @@@ class AbstractGraph(ABC)
self.source = source
self.config = config
self.llm_model = self._create_llm(config["llm"], chat=True)
- self.embedder_model = self.llm_model if "embeddings" not in config else self._create_llm(
+ self.embedder_model = self._create_default_embedder(
+ ) if "embeddings" not in config else self._create_embedder(
config["embeddings"])
+ # Create the graph
+ self.graph = self._create_graph()
+ self.final_state = None
+ self.execution_info = None
+
# Set common configuration parameters
self.verbose = True if config is None else config.get("verbose", False)
self.headless = True if config is None else config.get(