Skip to content

Commit cec5537

Browse files
add new tests
Co-Authored-By: Matteo Vedovati <[email protected]>
1 parent 40043f3 commit cec5537

10 files changed

+2
-43
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ name = "scrapegraphai"
55
version = "1.14.0b1"
66

77

8-
98
description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."
109

1110
authors = [

scrapegraphai/nodes/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from .base_node import BaseNode
66
from .fetch_node import FetchNode
7-
from .conditional_node import ConditionalNode
87
from .get_probable_tags_node import GetProbableTagsNode
98
from .generate_answer_node import GenerateAnswerNode
109
from .parse_node import ParseNode

tests/graphs/scrape_plain_text_llama3_test.py renamed to tests/graphs/scrape_plain_text_llama3.1_test.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,10 @@ def graph_config():
2626
"""
2727
return {
2828
"llm": {
29-
"model": "ollama/llama3",
29+
"model": "ollama/llama3.1",
3030
"temperature": 0,
3131
"format": "json",
3232
"base_url": "http://localhost:11434",
33-
},
34-
"embeddings": {
35-
"model": "ollama/nomic-embed-text",
36-
"temperature": 0,
37-
"base_url": "http://localhost:11434",
3833
}
3934
}
4035

tests/graphs/scrape_plain_text_mistral_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ def graph_config():
3030
"temperature": 0,
3131
"format": "json",
3232
"base_url": "http://localhost:11434",
33-
},
34-
"embeddings": {
35-
"model": "ollama/nomic-embed-text",
36-
"temperature": 0,
37-
"base_url": "http://localhost:11434",
3833
}
3934
}
4035

tests/graphs/scrape_xml_ollama_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ def graph_config():
3232
"temperature": 0,
3333
"format": "json",
3434
"base_url": "http://localhost:11434",
35-
},
36-
"embeddings": {
37-
"model": "ollama/nomic-embed-text",
38-
"temperature": 0,
39-
"base_url": "http://localhost:11434",
4035
}
4136
}
4237

tests/graphs/script_generator_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ def graph_config():
1818
"base_url": "http://localhost:11434",
1919
"library": "beautifulsoup",
2020
},
21-
"embeddings": {
22-
"model": "ollama/nomic-embed-text",
23-
"temperature": 0,
24-
"base_url": "http://localhost:11434",
25-
},
2621
"library": "beautifulsoup"
2722
}
2823

tests/graphs/search_link_ollama.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
def test_smart_scraper_pipeline():
55
graph_config = {
66
"llm": {
7-
"model": "ollama/llama3",
7+
"model": "ollama/llama3.1",
88
"temperature": 0,
99
"format": "json",
1010
},
11-
"embeddings": {
12-
"model": "ollama/nomic-embed-text",
13-
"temperature": 0,
14-
},
1511
"verbose": True,
1612
"headless": False
1713
}

tests/graphs/smart_scraper_ernie_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ def graph_config():
1616
"ernie_client_id": "<ernie_client_id>",
1717
"ernie_client_secret": "<ernie_client_secret>",
1818
"temperature": 0.1
19-
},
20-
"embeddings": {
21-
"model": "ollama/nomic-embed-text",
22-
"temperature": 0,
23-
"base_url": "http://localhost:11434",
2419
}
2520
}
2621

tests/graphs/smart_scraper_fireworks_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ def graph_config():
2020
"api_key": fireworks_api_key,
2121
"model": "fireworks/accounts/fireworks/models/mixtral-8x7b-instruct"
2222
},
23-
"embeddings": {
24-
"model": "ollama/nomic-embed-text",
25-
"temperature": 0,
26-
# "base_url": "http://localhost:11434", # set ollama URL arbitrarily
27-
},
2823
"verbose": True,
2924
"headless": False,
3025
}

tests/graphs/smart_scraper_ollama_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ def graph_config():
1616
"temperature": 0,
1717
"format": "json",
1818
"base_url": "http://localhost:11434",
19-
},
20-
"embeddings": {
21-
"model": "ollama/nomic-embed-text",
22-
"temperature": 0,
23-
"base_url": "http://localhost:11434",
2419
}
2520
}
2621

0 commit comments

Comments
 (0)