Skip to content

Commit 57a58e1

Browse files
committed
docs: Updated the graph_config in the documentation.
1 parent fe3aa28 commit 57a58e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+41
-41
lines changed

docs/chinese.md

Lines changed: 1 addition & 1 deletion

docs/japanese.md

Lines changed: 1 addition & 1 deletion

docs/korean.md

Lines changed: 1 addition & 1 deletion

docs/russian.md

Lines changed: 1 addition & 1 deletion

docs/source/getting_started/examples.rst

Lines changed: 1 addition & 1 deletion

examples/benchmarks/GenerateScraper/benchmark_openai_gpt35.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
graph_config = {
2525
"llm": {
2626
"api_key": openai_key,
27-
"model": "gpt-3.5-turbo",
27+
"model": "openai/gpt-3.5-turbo",
2828
},
2929
"library": "beautifoulsoup"
3030
}

examples/benchmarks/GenerateScraper/benchmark_openai_gpt4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
graph_config = {
2525
"llm": {
2626
"api_key": openai_key,
27-
"model": "gpt-4-turbo-2024-04-09",
27+
"model": "openai/gpt-4-turbo-2024-04-09",
2828
},
2929
"library": "beautifoulsoup"
3030
}

examples/benchmarks/SmartScraper/benchmark_openai_gpt35.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
graph_config = {
2525
"llm": {
2626
"api_key": openai_key,
27-
"model": "gpt-3.5-turbo",
27+
"model": "openai/gpt-3.5-turbo",
2828
},
2929
}
3030

examples/benchmarks/SmartScraper/benchmark_openai_gpt4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
graph_config = {
2626
"llm": {
2727
"api_key": openai_key,
28-
"model": "gpt-4-turbo",
28+
"model": "openai/gpt-4-turbo",
2929
},
3030
}
3131

examples/benchmarks/SmartScraper/benchmark_openai_gpt4o.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
graph_config = {
2626
"llm": {
2727
"api_key": openai_key,
28-
"model": "gpt-4o",
28+
"model": "openai/gpt-4o",
2929
},
3030
}
3131

examples/extras/custom_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
graph_config = {
2222
"llm": {
2323
"api_key": openai_key,
24-
"model": "gpt-3.5-turbo",
24+
"model": "openai/gpt-3.5-turbo",
2525
},
2626
"additional_info": prompt,
2727
"verbose": True,

examples/extras/no_cut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
graph_config = {
1616
"llm": {
1717
"api_key": "s",
18-
"model": "gpt-3.5-turbo",
18+
"model": "openai/gpt-3.5-turbo",
1919
},
2020
"cut": False,
2121
"verbose": True,

examples/extras/proxy_rotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
graph_config = {
1414
"llm": {
1515
"api_key": "API_KEY",
16-
"model": "gpt-3.5-turbo",
16+
"model": "openai/gpt-3.5-turbo",
1717
},
1818
"loader_kwargs": {
1919
"proxy" : {

examples/extras/rag_caching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
graph_config = {
2020
"llm": {
2121
"api_key": openai_key,
22-
"model": "gpt-3.5-turbo",
22+
"model": "openai/gpt-3.5-turbo",
2323
},
2424
"caching": True
2525
}

examples/extras/serch_graph_scehma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Ceos(BaseModel):
2323
graph_config = {
2424
"llm": {
2525
"api_key": openai_key,
26-
"model": "gpt-4o",
26+
"model": "openai/gpt-4o",
2727
},
2828
"max_results": 2,
2929
"verbose": True,

examples/integrations/indexify_node_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Images(BaseModel):
3232
graph_config = {
3333
"llm": {
3434
"api_key":openai_key,
35-
"model": "gpt-3.5-turbo",
35+
"model": "openai/gpt-3.5-turbo",
3636
},
3737
"verbose": True,
3838
"headless": False,

examples/oneapi/pdf_scraper_multi_oneapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
graph_config = {
1414
"llm": {
1515
"api_key": openai_key,
16-
"model": "gpt-3.5-turbo",
16+
"model": "openai/gpt-3.5-turbo",
1717
},
1818
}
1919

examples/oneapi/xml_scraper_graph_multi_oneapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
graph_config = {
2929
"llm": {
3030
"api_key": openai_key,
31-
"model": "gpt-3.5-turbo",
31+
"model": "openai/gpt-3.5-turbo",
3232
},
3333
}
3434

examples/oneapi/xml_scraper_oneapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
graph_config = {
2929
"llm": {
3030
"api_key": openai_key,
31-
"model": "gpt-3.5-turbo",
31+
"model": "openai/gpt-3.5-turbo",
3232
},
3333
"verbose":False,
3434
}

examples/openai/script_generator_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
graph_config = {
1919
"llm": {
2020
"api_key": os.getenv("OPENAI_API_KEY"),
21-
"model": "gpt-4o",
21+
"model": "openai/gpt-4o",
2222
},
2323
"verbose": True,
2424
"headless": False,

scrapegraphai/graphs/abstract_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AbstractGraph(ABC):
4040
... return graph
4141
...
4242
>>> my_graph = MyGraph("Example Graph",
43-
{"llm": {"model": "gpt-3.5-turbo"}}, "example_source")
43+
{"llm": {"model": "openai/gpt-3.5-turbo"}}, "example_source")
4444
>>> result = my_graph.run()
4545
"""
4646

scrapegraphai/graphs/csv_scraper_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CSVScraperMultiGraph(AbstractGraph):
3636
Example:
3737
>>> search_graph = MultipleSearchGraph(
3838
... "What is Chioggia famous for?",
39-
... {"llm": {"model": "gpt-3.5-turbo"}}
39+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4040
... )
4141
>>> result = search_graph.run()
4242
"""

scrapegraphai/graphs/deep_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DeepScraperGraph(AbstractGraph):
4646
>>> deep_scraper = DeepScraperGraph(
4747
... "List me all the job titles and detailed job description.",
4848
... "https://www.google.com/about/careers/applications/jobs/results/?location=Bangalore%20India",
49-
... {"llm": {"model": "gpt-3.5-turbo"}}
49+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
5050
... )
5151
>>> result = deep_scraper.run()
5252
)

scrapegraphai/graphs/json_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class JSONScraperGraph(AbstractGraph):
3535
>>> json_scraper = JSONScraperGraph(
3636
... "List me all the attractions in Chioggia.",
3737
... "data/chioggia.json",
38-
... {"llm": {"model": "gpt-3.5-turbo"}}
38+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
3939
... )
4040
>>> result = json_scraper.run()
4141
"""

scrapegraphai/graphs/json_scraper_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class JSONScraperMultiGraph(AbstractGraph):
3737
Example:
3838
>>> search_graph = MultipleSearchGraph(
3939
... "What is Chioggia famous for?",
40-
... {"llm": {"model": "gpt-3.5-turbo"}}
40+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4141
... )
4242
>>> result = search_graph.run()
4343
"""

scrapegraphai/graphs/markdown_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MDScraperGraph(AbstractGraph):
3535
>>> smart_scraper = MDScraperGraph(
3636
... "List me all the attractions in Chioggia.",
3737
... "https://en.wikipedia.org/wiki/Chioggia",
38-
... {"llm": {"model": "gpt-3.5-turbo"}}
38+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
3939
... )
4040
>>> result = smart_scraper.run()
4141
"""

scrapegraphai/graphs/markdown_scraper_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MDScraperMultiGraph(AbstractGraph):
3636
>>> search_graph = MDScraperMultiGraph(
3737
... "What is Chioggia famous for?",
3838
... ["http://example.com/page1", "http://example.com/page2"],
39-
... {"llm_model": {"model": "gpt-3.5-turbo"}}
39+
... {"llm_model": {"model": "openai/gpt-3.5-turbo"}}
4040
... )
4141
>>> result = search_graph.run()
4242
"""

scrapegraphai/graphs/omni_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class OmniScraperGraph(AbstractGraph):
4242
>>> omni_scraper = OmniScraperGraph(
4343
... "List me all the attractions in Chioggia and describe their pictures.",
4444
... "https://en.wikipedia.org/wiki/Chioggia",
45-
... {"llm": {"model": "gpt-4o"}}
45+
... {"llm": {"model": "openai/gpt-4o"}}
4646
... )
4747
>>> result = omni_scraper.run()
4848
)

scrapegraphai/graphs/omni_search_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class OmniSearchGraph(AbstractGraph):
3838
Example:
3939
>>> omni_search_graph = OmniSearchGraph(
4040
... "What is Chioggia famous for?",
41-
... {"llm": {"model": "gpt-4o"}}
41+
... {"llm": {"model": "openai/gpt-4o"}}
4242
... )
4343
>>> result = search_graph.run()
4444
"""

scrapegraphai/graphs/pdf_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class PDFScraperGraph(AbstractGraph):
3939
>>> pdf_scraper = PDFScraperGraph(
4040
... "List me all the attractions in Chioggia.",
4141
... "data/chioggia.pdf",
42-
... {"llm": {"model": "gpt-3.5-turbo"}}
42+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4343
... )
4444
>>> result = pdf_scraper.run()
4545
"""

scrapegraphai/graphs/pdf_scraper_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PdfScraperMultiGraph(AbstractGraph):
3737
Example:
3838
>>> search_graph = MultipleSearchGraph(
3939
... "What is Chioggia famous for?",
40-
... {"llm": {"model": "gpt-3.5-turbo"}}
40+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4141
... )
4242
>>> result = search_graph.run()
4343
"""

scrapegraphai/graphs/script_creator_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ScriptCreatorGraph(AbstractGraph):
3838
>>> script_creator = ScriptCreatorGraph(
3939
... "List me all the attractions in Chioggia.",
4040
... "https://en.wikipedia.org/wiki/Chioggia",
41-
... {"llm": {"model": "gpt-3.5-turbo"}}
41+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4242
... )
4343
>>> result = script_creator.run()
4444
"""

scrapegraphai/graphs/script_creator_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ScriptCreatorMultiGraph(AbstractGraph):
3434
>>> script_graph = ScriptCreatorMultiGraph(
3535
... "What is Chioggia famous for?",
3636
... source=[],
37-
... config={"llm": {"model": "gpt-3.5-turbo"}}
37+
... config={"llm": {"model": "openai/gpt-3.5-turbo"}}
3838
... schema={}
3939
... )
4040
>>> result = script_graph.run()

scrapegraphai/graphs/search_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SearchGraph(AbstractGraph):
3939
Example:
4040
>>> search_graph = SearchGraph(
4141
... "What is Chioggia famous for?",
42-
... {"llm": {"model": "gpt-3.5-turbo"}}
42+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4343
... )
4444
>>> result = search_graph.run()
4545
>>> print(search_graph.get_considered_urls())

scrapegraphai/graphs/search_link_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SearchLinkGraph(AbstractGraph):
3434
>>> smart_scraper = SearchLinkGraph(
3535
... "List me all the attractions in Chioggia.",
3636
... "https://en.wikipedia.org/wiki/Chioggia",
37-
... {"llm": {"model": "gpt-3.5-turbo"}}
37+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
3838
... )
3939
>>> result = smart_scraper.run()
4040
"""

scrapegraphai/graphs/smart_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SmartScraperGraph(AbstractGraph):
3939
>>> smart_scraper = SmartScraperGraph(
4040
... "List me all the attractions in Chioggia.",
4141
... "https://en.wikipedia.org/wiki/Chioggia",
42-
... {"llm": {"model": "gpt-3.5-turbo"}}
42+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4343
... )
4444
>>> result = smart_scraper.run()
4545
)

scrapegraphai/graphs/smart_scraper_multi_concat_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SmartScraperMultiConcatGraph(AbstractGraph):
3939
Example:
4040
>>> search_graph = SmartScraperMultiConcatGraph(
4141
... "What is Chioggia famous for?",
42-
... {"llm": {"model": "gpt-3.5-turbo"}}
42+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4343
... )
4444
>>> result = search_graph.run()
4545
"""

scrapegraphai/graphs/smart_scraper_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SmartScraperMultiGraph(AbstractGraph):
3737
Example:
3838
>>> search_graph = MultipleSearchGraph(
3939
... "What is Chioggia famous for?",
40-
... {"llm": {"model": "gpt-3.5-turbo"}}
40+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4141
... )
4242
>>> result = search_graph.run()
4343
"""

scrapegraphai/graphs/speech_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SpeechGraph(AbstractGraph):
4141
>>> speech_graph = SpeechGraph(
4242
... "List me all the attractions in Chioggia and generate an audio summary.",
4343
... "https://en.wikipedia.org/wiki/Chioggia",
44-
... {"llm": {"model": "gpt-3.5-turbo"}}
44+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4545
"""
4646

4747
def __init__(self, prompt: str, source: str, config: dict, schema: Optional[BaseModel] = None):

scrapegraphai/graphs/xml_scraper_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class XMLScraperGraph(AbstractGraph):
3838
>>> xml_scraper = XMLScraperGraph(
3939
... "List me all the attractions in Chioggia.",
4040
... "data/chioggia.xml",
41-
... {"llm": {"model": "gpt-3.5-turbo"}}
41+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4242
... )
4343
>>> result = xml_scraper.run()
4444
"""

scrapegraphai/graphs/xml_scraper_multi_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class XMLScraperMultiGraph(AbstractGraph):
3737
Example:
3838
>>> search_graph = MultipleSearchGraph(
3939
... "What is Chioggia famous for?",
40-
... {"llm": {"model": "gpt-3.5-turbo"}}
40+
... {"llm": {"model": "openai/gpt-3.5-turbo"}}
4141
... )
4242
>>> result = search_graph.run()
4343
"""

0 commit comments

Comments
 (0)