更新模型配置
This commit is contained in:
@ -2,14 +2,17 @@ from scrapegraphai.graphs import SmartScraperGraph
|
|||||||
|
|
||||||
graph_config = {
|
graph_config = {
|
||||||
"llm": {
|
"llm": {
|
||||||
# "model": "ollama/mistral-nemo:latest",
|
"model": "ollama/mistral-nemo:12b",
|
||||||
# "model": "ollama/mistral:latest",
|
"model_tokens": 1024000,
|
||||||
|
|
||||||
# "model": "ollama/llama3.2:latest",
|
# "model": "ollama/mistral:7b",
|
||||||
|
# "model_tokens": 32768,
|
||||||
|
|
||||||
|
# "model": "ollama/llama3.2:3b",
|
||||||
# "model_tokens": 131072, # ollama show llama3.2:latest
|
# "model_tokens": 131072, # ollama show llama3.2:latest
|
||||||
|
|
||||||
"model": "ollama/qwen2:7b",
|
# "model": "ollama/qwen2:7b",
|
||||||
"model_tokens": 32768, # ollama show qwen2:7b
|
# "model_tokens": 32768, # ollama show qwen2:7b
|
||||||
|
|
||||||
"temperature": 0, # 更准确执行任务
|
"temperature": 0, # 更准确执行任务
|
||||||
"format": "json", # Ollama 需要显式指定格式
|
"format": "json", # Ollama 需要显式指定格式
|
||||||
@ -21,11 +24,16 @@ graph_config = {
|
|||||||
# "headless": False,
|
# "headless": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
# 抓取网页标题
|
# smart_scraper_graph = SmartScraperGraph(
|
||||||
|
# # prompt="List all article titles on the page",
|
||||||
|
# prompt="列出页面上的所有文章标题",
|
||||||
|
# source="https://www.aivi.fyi/",
|
||||||
|
# config=graph_config
|
||||||
|
# )
|
||||||
|
|
||||||
smart_scraper_graph = SmartScraperGraph(
|
smart_scraper_graph = SmartScraperGraph(
|
||||||
# prompt="List all article titles on the page",
|
prompt="List all Stations on the page. the data is in tbody",
|
||||||
prompt="列出页面上的所有文章标题",
|
source="https://network.satnogs.org/stations/",
|
||||||
source="https://www.aivi.fyi/",
|
|
||||||
config=graph_config
|
config=graph_config
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user