Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Merge branch 'pre/beta' into main
Marco Vinciguerrada93162b53bb
diff --cc CHANGELOG.mdindex 63d3fbe3,34cd76ae..dd30def0--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,11 -1,23 +1,27 @@@-## [1.7.0-beta.9](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.7.0-beta.8...v1.7.0-beta.9) (2024-06-16)+## [1.6.1](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.6.0...v1.6.1) (2024-06-15)++=======### Bug Fixes+* removed duplicate from ollama dictionary ([dcd216e](https://github.com/VinciGit00/Scrapegraph-ai/commit/dcd216e3457bdbbbc7b8dc27783866b748e322fa))++## [1.6.0](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.5.7...v1.6.0) (2024-06-09)+ * fix robot node ([2419003](https://github.com/VinciGit00/Scrapegraph-ai/commit/24190039996b9cbe04952f6734d996e0cdb15296))++ ## [1.7.0-beta.8](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.7.0-beta.7...v1.7.0-beta.8) (2024-06-16)+++ ### Bug Fixes++ * shallow copy config of create_embedder ([62b372b](https://github.com/VinciGit00/Scrapegraph-ai/commit/62b372b675a45ca4d031f337b6f8728151689442))+++ ### Refactor++ * add missing schemas and renamed files ([09cb6e9](https://github.com/VinciGit00/Scrapegraph-ai/commit/09cb6e964eaa41587237c622a1ea8894722d87cb))++ ## [1.7.0-beta.7](https://github.com/VinciGit00/Scrapegraph-ai/compare/v1.7.0-beta.6...v1.7.0-beta.7) (2024-06-14)### Featuresdiff --cc pyproject.tomlindex bfbdeba9,7d0fdec0..0263c6ea--- a/pyproject.toml+++ b/pyproject.toml@@@ -2,9 -2,10 +2,10 @@@name = "scrapegraphai"-version = "1.7.0b9"+version = "1.6.1"+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.pyindex 87a00f9b,f443c73a..b5e15e8f--- a/scrapegraphai/graphs/abstract_graph.py+++ b/scrapegraphai/graphs/abstract_graph.py@@@ -298,9 -275,7 +275,10 @@@ class AbstractGraph(ABC)google_api_key=llm_config["api_key"], model="models/embedding-001")if isinstance(self.llm_model, OpenAI):- return OpenAIEmbeddings(api_key=self.llm_model.openai_api_key)+ return OpenAIEmbeddings(api_key=self.llm_model.openai_api_key, base_url=self.llm_model.openai_api_base)+ elif isinstance(self.llm_model, DeepSeek):+ return OpenAIEmbeddings(api_key=self.llm_model.openai_api_key)++elif isinstance(self.llm_model, AzureOpenAIEmbeddings):return self.llm_modelelif isinstance(self.llm_model, AzureOpenAI):diff --cc scrapegraphai/helpers/models_tokens.pyindex ee20e9b9,0d227d63..0ec94795--- a/scrapegraphai/helpers/models_tokens.py+++ b/scrapegraphai/helpers/models_tokens.py@@@ -35,36 -35,53 +35,36 @@@ models_tokens ="gemini-1.5-pro-latest":128000,"models/embedding-001": 2048},-- "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,- "mistral-openorca": 32000,- "mixtral:8x22b-instruct": 65536,- "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,- "snowflake-arctic-embed:l": 8192,- "mxbai-embed-large": 512,+ "ollama": { "command-r": 12800,+ "codellama": 16000,+ "dbrx": 32768,+ "deepseek-coder:33b": 16000,+ "falcon": 2048,+ "llama2": 4096,+ "llama3": 8192,+ "scrapegraph": 8192,+ "llava": 4096,+ "mixtral:8x22b-instruct": 65536,+ "mistral-openorca": 32000,+ "nomic-embed-text": 8192,+ "nous-hermes2:34b": 4096,+ "orca-mini": 2048,+ "phi3:3.8b": 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+ "snowflake-arctic-embed": 8192,+ "mxbai-embed-large": 512},"oneapi": {- "qwen-turbo": 16380+ "qwen-turbo": 6000},"groq": {"llama3-8b-8192": 8192,