Skip to content

Commit 3e8f047

Browse files
committed
Renamed smart_scraper_multi_abstract_graph back to smart_scraper_multi_graph.
1 parent 974f88a commit 3e8f047

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

scrapegraphai/graphs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .csv_scraper_graph import CSVScraperGraph
1414
from .omni_scraper_graph import OmniScraperGraph
1515
from .omni_search_graph import OmniSearchGraph
16-
from .smart_scraper_multi_abstract_graph import SmartScraperMultiAbstractGraph
16+
from .smart_scraper_multi_graph import SmartScraperMultiGraph
1717
from .json_scraper_multi_graph import JSONScraperMultiGraph
1818
from .csv_scraper_multi_graph import CSVScraperMultiGraph
1919
from .xml_scraper_multi_graph import XMLScraperMultiGraph
@@ -25,5 +25,5 @@
2525
from .smart_scraper_multi_concat_graph import SmartScraperMultiConcatGraph
2626
from .code_generator_graph import CodeGeneratorGraph
2727
from .depth_search_graph import DepthSearchGraph
28-
from .smart_scraper_multi_graph import SmartScraperMultiGraph
28+
from .smart_scraper_multi_lite_graph import SmartScraperMultiLiteGraph
2929
from .scrape_graph import ScrapeGraph

scrapegraphai/graphs/smart_scraper_multi_abstract_graph.py renamed to scrapegraphai/graphs/smart_scraper_multi_graph.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
)
1414
from ..utils.copy import safe_deepcopy
1515

16-
class SmartScraperMultiAbstractGraph(AbstractGraph):
16+
class SmartScraperMultiGraph(AbstractGraph):
1717
"""
18-
SmartScraperMultiAbstractGraph is a scraping pipeline that scrapes a
18+
SmartScraperMultiGraph is a scraping pipeline that scrapes a
1919
list of URLs and generates answers to a given prompt.
2020
It only requires a user prompt and a list of URLs.
21-
The difference with the SmartScraperMultiGraph is that in this case the content will be abstracted
21+
The difference with the SmartScraperMultiLiteGraph is that in this case the content will be abstracted
2222
by llm and then merged finally passed to the llm.
2323
2424
Attributes:
@@ -36,11 +36,15 @@ class SmartScraperMultiAbstractGraph(AbstractGraph):
3636
schema (Optional[BaseModel]): The schema for the graph output.
3737
3838
Example:
39-
>>> smart_scraper_multi_abstract_graph = SmartScraperMultiAbstractGraph(
40-
... "What is Chioggia famous for?",
41-
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
39+
>>> smart_scraper_multi_graph = SmartScraperMultiGraph(
40+
... prompt="Who is Marco Perini?",
41+
... source= [
42+
... "https://perinim.github.io/",
43+
... "https://perinim.github.io/cv/"
44+
... ],
45+
... config={"llm": {"model": "openai/gpt-3.5-turbo"}}
4246
... )
43-
>>> result = smart_scraper_multi_abstract_graph.run()
47+
>>> result = smart_scraper_multi_graph.run()
4448
"""
4549

4650
def __init__(self, prompt: str, source: List[str],

0 commit comments

Comments
 (0)