mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
fix: removed faiss
This commit is contained in:
parent
6f0b9d852a
commit
86f68770e9
@ -42,7 +42,7 @@ Additional dependecies can be added while installing the library:
|
|||||||
This group allows you to use additional language models like Fireworks, Groq, Anthropic, Together AI, Hugging Face, and Nvidia AI Endpoints.
|
This group allows you to use additional language models like Fireworks, Groq, Anthropic, Together AI, Hugging Face, and Nvidia AI Endpoints.
|
||||||
```bash
|
```bash
|
||||||
pip install scrapegraphai[other-language-models]
|
pip install scrapegraphai[other-language-models]
|
||||||
|
```
|
||||||
- <b>Semantic Options</b>: this group includes tools for advanced semantic processing, such as Graphviz.
|
- <b>Semantic Options</b>: this group includes tools for advanced semantic processing, such as Graphviz.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -55,6 +55,12 @@ pip install scrapegraphai[other-language-models]
|
|||||||
pip install scrapegraphai[more-browser-options]
|
pip install scrapegraphai[more-browser-options]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- <b>faiss Options</b>: this group includes faiss integration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install scrapegraphai[faiss-cpu]
|
||||||
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@ dependencies = [
|
|||||||
"langchain-aws>=0.1.3",
|
"langchain-aws>=0.1.3",
|
||||||
"mistral-common>=1.4.0",
|
"mistral-common>=1.4.0",
|
||||||
"html2text>=2024.2.26",
|
"html2text>=2024.2.26",
|
||||||
"faiss-cpu>=1.8.0",
|
|
||||||
"beautifulsoup4>=4.12.3",
|
"beautifulsoup4>=4.12.3",
|
||||||
"pandas>=2.2.2",
|
"pandas>=2.2.2",
|
||||||
"python-dotenv>=1.0.1",
|
"python-dotenv>=1.0.1",
|
||||||
@ -100,6 +99,11 @@ screenshot_scraper = [
|
|||||||
"pillow>=10.4.0",
|
"pillow>=10.4.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Group 5: Faiss CPU
|
||||||
|
faiss-cpu = [
|
||||||
|
"faiss-cpu>=1.8.0",
|
||||||
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|||||||
@ -80,8 +80,6 @@ docutils==0.19
|
|||||||
exceptiongroup==1.2.2
|
exceptiongroup==1.2.2
|
||||||
# via anyio
|
# via anyio
|
||||||
# via pytest
|
# via pytest
|
||||||
faiss-cpu==1.8.0.post1
|
|
||||||
# via scrapegraphai
|
|
||||||
fastapi==0.112.0
|
fastapi==0.112.0
|
||||||
# via burr
|
# via burr
|
||||||
fastapi-pagination==0.12.26
|
fastapi-pagination==0.12.26
|
||||||
@ -251,7 +249,6 @@ narwhals==1.3.0
|
|||||||
# via altair
|
# via altair
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
# via contourpy
|
# via contourpy
|
||||||
# via faiss-cpu
|
|
||||||
# via langchain
|
# via langchain
|
||||||
# via langchain-aws
|
# via langchain-aws
|
||||||
# via langchain-community
|
# via langchain-community
|
||||||
@ -274,7 +271,6 @@ orjson==3.10.7
|
|||||||
# via langsmith
|
# via langsmith
|
||||||
packaging==24.1
|
packaging==24.1
|
||||||
# via altair
|
# via altair
|
||||||
# via faiss-cpu
|
|
||||||
# via huggingface-hub
|
# via huggingface-hub
|
||||||
# via langchain-core
|
# via langchain-core
|
||||||
# via marshmallow
|
# via marshmallow
|
||||||
|
|||||||
@ -49,8 +49,6 @@ distro==1.9.0
|
|||||||
# via openai
|
# via openai
|
||||||
exceptiongroup==1.2.2
|
exceptiongroup==1.2.2
|
||||||
# via anyio
|
# via anyio
|
||||||
faiss-cpu==1.8.0.post1
|
|
||||||
# via scrapegraphai
|
|
||||||
filelock==3.15.4
|
filelock==3.15.4
|
||||||
# via huggingface-hub
|
# via huggingface-hub
|
||||||
# via transformers
|
# via transformers
|
||||||
@ -176,7 +174,6 @@ multiprocess==0.70.16
|
|||||||
mypy-extensions==1.0.0
|
mypy-extensions==1.0.0
|
||||||
# via typing-inspect
|
# via typing-inspect
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
# via faiss-cpu
|
|
||||||
# via langchain
|
# via langchain
|
||||||
# via langchain-aws
|
# via langchain-aws
|
||||||
# via langchain-community
|
# via langchain-community
|
||||||
@ -192,7 +189,6 @@ opencv-python-headless==4.10.0.84
|
|||||||
orjson==3.10.6
|
orjson==3.10.6
|
||||||
# via langsmith
|
# via langsmith
|
||||||
packaging==24.1
|
packaging==24.1
|
||||||
# via faiss-cpu
|
|
||||||
# via huggingface-hub
|
# via huggingface-hub
|
||||||
# via langchain-core
|
# via langchain-core
|
||||||
# via marshmallow
|
# via marshmallow
|
||||||
|
|||||||
@ -91,7 +91,7 @@ class GenerateAnswerNode(BaseNode):
|
|||||||
|
|
||||||
if isinstance(self.llm_model, (ChatOpenAI, ChatMistralAI)):
|
if isinstance(self.llm_model, (ChatOpenAI, ChatMistralAI)):
|
||||||
self.llm_model = self.llm_model.with_structured_output(
|
self.llm_model = self.llm_model.with_structured_output(
|
||||||
schema = self.node_config["schema"])
|
schema = self.node_config["schema"])
|
||||||
output_parser = get_structured_output_parser(self.node_config["schema"])
|
output_parser = get_structured_output_parser(self.node_config["schema"])
|
||||||
format_instructions = "NA"
|
format_instructions = "NA"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user