Skip to content

Commit 13fda2e

Browse files
authored
fix: --upgrade flag for all pip instances (mem0ai#557)
1 parent 3c3d98b commit 13fda2e

File tree

10 files changed

+13
-10
lines changed

10 files changed

+13
-10
lines changed

Diff for: docs/advanced/app_types.mdx

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

6868
### CustomApp
6969

Diff for: docs/advanced/data_types.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ app.add("https://docs.embedchain.ai/", data_type="docs_site")
9191
```
9292

9393
### Notion
94-
To use notion you must install the extra dependencies with `pip install embedchain[notion]`.
94+
To use notion you must install the extra dependencies with `pip install --upgrade embedchain[notion]`.
9595

9696
To load a notion page, use the data_type as `notion`. Since it is hard to automatically detect, forcing this is advised.
9797
The next argument must **end** with the `notion page id`. The id is a 32-character string. Eg:

Diff for: docs/examples/discord_bot.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Send Messages (under Text Permissions)
2626
1. Install embedchain python package:
2727

2828
```bash
29-
pip install "embedchain[discord]"
29+
pip install --upgrade "embedchain[discord]"
3030
```
3131

3232
2. Launch your Discord bot:

Diff for: docs/examples/poe_bot.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: '🔮 Poe Bot'
77
1. Install embedchain python package:
88

99
```bash
10-
pip install "embedchain[poe]"
10+
pip install --upgrade "embedchain[poe]"
1111
```
1212

1313
2. Create a free account on [Poe](https://www.poe.com?utm_source=embedchain).

Diff for: docs/examples/whatsapp_bot.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: '💬 WhatsApp Bot'
77
1. Install embedchain python package:
88

99
```bash
10-
pip install embedchain
10+
pip install --upgrade embedchain
1111
```
1212

1313
2. Launch your WhatsApp bot:

Diff for: docs/quickstart.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: '💡 Start building LLM powered bots under 30 seconds'
66
Install embedchain python package:
77

88
```bash
9-
pip install embedchain
9+
pip install --upgrade embedchain
1010
```
1111

1212
Creating a chatbot involves 3 steps:

Diff for: embedchain/bots/slack.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
from slack_sdk import WebClient
1515
except ModuleNotFoundError:
1616
raise ModuleNotFoundError(
17-
"The required dependencies for Slack are not installed." 'Please install with `pip install "embedchain[slack]"`'
17+
"The required dependencies for Slack are not installed."
18+
'Please install with `pip install --upgrade "embedchain[slack]"`'
1819
) from None
1920

2021

Diff for: embedchain/llm/gpt4all_llm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _get_instance(model):
2222
from gpt4all import GPT4All
2323
except ModuleNotFoundError:
2424
raise ModuleNotFoundError(
25-
"The GPT4All python package is not installed. Please install it with `pip install embedchain[opensource]`" # noqa E501
25+
"The GPT4All python package is not installed. Please install it with `pip install --upgrade embedchain[opensource]`" # noqa E501
2626
) from None
2727

2828
return GPT4All(model_name=model)

Diff for: embedchain/loaders/notion.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
try:
55
from llama_index import download_loader
66
except ImportError:
7-
raise ImportError("Notion requires extra dependencies. Install with `pip install embedchain[community]`") from None
7+
raise ImportError(
8+
"Notion requires extra dependencies. Install with `pip install --upgrade embedchain[community]`"
9+
) from None
810

911

1012
from embedchain.helper_classes.json_serializable import register_deserializable

Diff for: embedchain/vectordb/elasticsearch_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from elasticsearch.helpers import bulk
66
except ImportError:
77
raise ImportError(
8-
"Elasticsearch requires extra dependencies. Install with `pip install embedchain[elasticsearch]`"
8+
"Elasticsearch requires extra dependencies. Install with `pip install --upgrade embedchain[elasticsearch]`"
99
) from None
1010

1111
from embedchain.config import ElasticsearchDBConfig

0 commit comments

Comments
 (0)