fix: --upgrade flag for all pip instances (#557)

This commit is contained in:
Dev Khant
2023-09-08 08:12:55 +05:30
committed by GitHub
parent 3c3d98b9c3
commit 13fda2efe1
10 changed files with 13 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ app = OpenSourceApp()
- Here there is no need to setup any api keys. You just need to install embedchain package and these will get automatically installed. 📦 - Here there is no need to setup any api keys. You just need to install embedchain package and these will get automatically installed. 📦
- Once you have imported and instantiated the app, every functionality from here onwards is the same for either type of app. 📚 - Once you have imported and instantiated the app, every functionality from here onwards is the same for either type of app. 📚
- `OpenSourceApp` is opinionated. It uses the best open source embedding model and LLM on the market. - `OpenSourceApp` is opinionated. It uses the best open source embedding model and LLM on the market.
- extra dependencies are required for this app type. Install them with `pip install embedchain[opensource]`. - extra dependencies are required for this app type. Install them with `pip install --upgrade embedchain[opensource]`.
### CustomApp ### CustomApp

View File

@@ -91,7 +91,7 @@ app.add("https://docs.embedchain.ai/", data_type="docs_site")
``` ```
### Notion ### Notion
To use notion you must install the extra dependencies with `pip install embedchain[notion]`. To use notion you must install the extra dependencies with `pip install --upgrade embedchain[notion]`.
To load a notion page, use the data_type as `notion`. Since it is hard to automatically detect, forcing this is advised. To load a notion page, use the data_type as `notion`. Since it is hard to automatically detect, forcing this is advised.
The next argument must **end** with the `notion page id`. The id is a 32-character string. Eg: The next argument must **end** with the `notion page id`. The id is a 32-character string. Eg:

View File

@@ -26,7 +26,7 @@ Send Messages (under Text Permissions)
1. Install embedchain python package: 1. Install embedchain python package:
```bash ```bash
pip install "embedchain[discord]" pip install --upgrade "embedchain[discord]"
``` ```
2. Launch your Discord bot: 2. Launch your Discord bot:

View File

@@ -7,7 +7,7 @@ title: '🔮 Poe Bot'
1. Install embedchain python package: 1. Install embedchain python package:
```bash ```bash
pip install "embedchain[poe]" pip install --upgrade "embedchain[poe]"
``` ```
2. Create a free account on [Poe](https://www.poe.com?utm_source=embedchain). 2. Create a free account on [Poe](https://www.poe.com?utm_source=embedchain).

View File

@@ -7,7 +7,7 @@ title: '💬 WhatsApp Bot'
1. Install embedchain python package: 1. Install embedchain python package:
```bash ```bash
pip install embedchain pip install --upgrade embedchain
``` ```
2. Launch your WhatsApp bot: 2. Launch your WhatsApp bot:

View File

@@ -6,7 +6,7 @@ description: '💡 Start building LLM powered bots under 30 seconds'
Install embedchain python package: Install embedchain python package:
```bash ```bash
pip install embedchain pip install --upgrade embedchain
``` ```
Creating a chatbot involves 3 steps: Creating a chatbot involves 3 steps:

View File

@@ -14,7 +14,8 @@ try:
from slack_sdk import WebClient from slack_sdk import WebClient
except ModuleNotFoundError: except ModuleNotFoundError:
raise ModuleNotFoundError( raise ModuleNotFoundError(
"The required dependencies for Slack are not installed." 'Please install with `pip install "embedchain[slack]"`' "The required dependencies for Slack are not installed."
'Please install with `pip install --upgrade "embedchain[slack]"`'
) from None ) from None

View File

@@ -22,7 +22,7 @@ class GPT4ALLLlm(BaseLlm):
from gpt4all import GPT4All from gpt4all import GPT4All
except ModuleNotFoundError: except ModuleNotFoundError:
raise ModuleNotFoundError( raise ModuleNotFoundError(
"The GPT4All python package is not installed. Please install it with `pip install embedchain[opensource]`" # noqa E501 "The GPT4All python package is not installed. Please install it with `pip install --upgrade embedchain[opensource]`" # noqa E501
) from None ) from None
return GPT4All(model_name=model) return GPT4All(model_name=model)

View File

@@ -4,7 +4,9 @@ import os
try: try:
from llama_index import download_loader from llama_index import download_loader
except ImportError: except ImportError:
raise ImportError("Notion requires extra dependencies. Install with `pip install embedchain[community]`") from None raise ImportError(
"Notion requires extra dependencies. Install with `pip install --upgrade embedchain[community]`"
) from None
from embedchain.helper_classes.json_serializable import register_deserializable from embedchain.helper_classes.json_serializable import register_deserializable

View File

@@ -5,7 +5,7 @@ try:
from elasticsearch.helpers import bulk from elasticsearch.helpers import bulk
except ImportError: except ImportError:
raise ImportError( raise ImportError(
"Elasticsearch requires extra dependencies. Install with `pip install embedchain[elasticsearch]`" "Elasticsearch requires extra dependencies. Install with `pip install --upgrade embedchain[elasticsearch]`"
) from None ) from None
from embedchain.config import ElasticsearchDBConfig from embedchain.config import ElasticsearchDBConfig