Skip to content

Python scraper based on AI

Merge branch 'pre/beta' into patch-1

Marco Vinciguerraf00ed35f7bfd
diff --cc CHANGELOG.md
index 43c5aeb4,7cdea914..ccb58c7b
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,24 -1,23 +1,26 @@@
- ## [1.4.0](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.3.2...v1.4.0) (2024-05-22)
++
+ ## [1.4.0-beta.2](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.4.0-beta.1...v1.4.0-beta.2) (2024-05-19)
### Features
-* **docloaders:** undetected-playwright ([7b3ee4e](https://github.com/VinciGit00/Scrapegraph-ai/commit/7b3ee4e71e4af04edeb47999d70d398b67c93ac4))
+* Add new models and update existing ones ([58289ec](https://github.com/VinciGit00/Scrapegraph-ai/commit/58289eccc523814a2898650c41410f9a35b4e4c2))
-## [1.4.0-beta.1](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.3.0...v1.4.0-beta.1) (2024-05-19)
+## [1.3.2](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.3.1...v1.3.2) (2024-05-22)
-### Features
+### Bug Fixes
+
+* pdf scraper bug ([f2dffe5](https://github.com/VinciGit00/Scrapegraph-ai/commit/f2dffe534f51aa83aed5ac491243604a443f4373))
+
+## [1.3.1](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.3.0...v1.3.1) (2024-05-21)
-* **base_graph:** alligned with main ([73fa31d](https://github.com/VinciGit00/Scrapegraph-ai/commit/73fa31db0f791d1fd63b489ac88cc6e595aa07f9))
+### Bug Fixes
-### CI
+* add deepseek embeddings ([659fad7](https://github.com/VinciGit00/Scrapegraph-ai/commit/659fad770a5b6ace87511513e5233a3bc1269009))
-* **release:** 1.2.0-beta.1 [skip ci] ([fd3e0aa](https://github.com/VinciGit00/Scrapegraph-ai/commit/fd3e0aa5823509dfb46b4f597521c24d4eb345f1))
-* **release:** 1.3.0-beta.1 [skip ci] ([191db0b](https://github.com/VinciGit00/Scrapegraph-ai/commit/191db0bc779e4913713b47b68ec4162a347da3ea))
+
## [1.3.0](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.2.4...v1.3.0) (2024-05-19)
diff --cc pyproject.toml
index ff93d1aa,21cb3e59..8b51660e
--- a/pyproject.toml
+++ b/pyproject.toml
@@@ -1,8 -1,8 +1,10 @@@
[project]
name = "scrapegraphai"
- version = "1.4.0"
++
+ version = "1.4.0b2"
+
+
description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."
authors = [
{ name = "Marco Vinciguerra", email = "[email protected]" },
diff --cc scrapegraphai/graphs/abstract_graph.py
index 9370297f,b923c89d..0377506a
--- a/scrapegraphai/graphs/abstract_graph.py
+++ b/scrapegraphai/graphs/abstract_graph.py
@@@ -7,10 -7,11 +7,13 @@@ from langchain_aws import BedrockEmbedd
from langchain_openai import AzureOpenAIEmbeddings, OpenAIEmbeddings
from langchain_community.embeddings import HuggingFaceHubEmbeddings, OllamaEmbeddings
from langchain_google_genai import GoogleGenerativeAIEmbeddings
+from ..helpers import models_tokens
+from ..models import AzureOpenAI, Bedrock, Gemini, Groq, HuggingFace, Ollama, OpenAI, Anthropic, DeepSeek
from langchain_google_genai.embeddings import GoogleGenerativeAIEmbeddings
+ from ..helpers import models_tokens
+ from ..models import AzureOpenAI, Bedrock, Gemini, Groq, HuggingFace, Ollama, OpenAI, Anthropic, DeepSeek
+
class AbstractGraph(ABC):
"""
diff --cc scrapegraphai/helpers/models_tokens.py
index d84e1094,934bf5fe..18be7bf8
--- a/scrapegraphai/helpers/models_tokens.py
+++ b/scrapegraphai/helpers/models_tokens.py
@@@ -33,36 -33,26 +33,43 @@@ models_tokens =
},
"ollama": {
+ "command-r": 12800,
+ "command-r-plus": 12800,
+ "codellama": 16000,
+ "dbrx": 32768,
+ "dbrx:instruct": 32768,
+ "deepseek-coder:33b": 16000,
+ "dolphin-mixtral": 32000,
"llama2": 4096,
"llama3": 8192,
+ "llama3:70b-instruct": 8192,
"llava": 4096,
+ "llava:34b": 4096,
"llava_next": 4096,
"mistral": 8192,
+ "falcon": 2048,
+ "codellama": 16000,
+ "dolphin-mixtral": 32000,
+ "mistral-openorca": 32000,
+ "stablelm-zephyr": 8192,
+ "command-r-plus": 12800,
+ "command-r": 12800,
"mistral:7b-instruct": 32768,
- "llama3:70b-instruct": 8192,
+ "mistral-openorca": 32000,
"mixtral:8x22b-instruct": 65536,
- "wizardlm2:8x22b": 65536,
- "dbrx": 32768,
- "dbrx:instruct": 32768,
"nous-hermes2:34b": 4096,
"orca-mini": 2048,
+ "phi3:3.8b": 12800,
+ "phi3:14b": 12800,
+ "qwen:0.5b": 32000,
+ "qwen:1.8b": 32000,
+ "qwen:4b": 32000,
+ "qwen:14b": 32000,
+ "qwen:32b": 32000,
+ "qwen:72b": 32000,
+ "qwen:110b": 32000,
+ "stablelm-zephyr": 8192,
+ "wizardlm2:8x22b": 65536,
# embedding models
"nomic-embed-text": 8192,
"snowflake-arctic-embed:335m": 8192,