Sfoglia il codice sorgente

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

Dev Khant 1 anno fa
parent
commit
13fda2efe1

+ 1 - 1
docs/advanced/app_types.mdx

@@ -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. 📦
 - 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.
-- 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
 

+ 1 - 1
docs/advanced/data_types.mdx

@@ -91,7 +91,7 @@ app.add("https://docs.embedchain.ai/", data_type="docs_site")
 ```
 
 ### 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.
 The next argument must **end** with the `notion page id`. The id is a 32-character string. Eg:

+ 1 - 1
docs/examples/discord_bot.mdx

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

+ 1 - 1
docs/examples/poe_bot.mdx

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

+ 1 - 1
docs/examples/whatsapp_bot.mdx

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

+ 1 - 1
docs/quickstart.mdx

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

+ 2 - 1
embedchain/bots/slack.py

@@ -14,7 +14,8 @@ try:
     from slack_sdk import WebClient
 except 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
 
 

+ 1 - 1
embedchain/llm/gpt4all_llm.py

@@ -22,7 +22,7 @@ class GPT4ALLLlm(BaseLlm):
             from gpt4all import GPT4All
         except 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
 
         return GPT4All(model_name=model)

+ 3 - 1
embedchain/loaders/notion.py

@@ -4,7 +4,9 @@ import os
 try:
     from llama_index import download_loader
 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

+ 1 - 1
embedchain/vectordb/elasticsearch_db.py

@@ -5,7 +5,7 @@ try:
     from elasticsearch.helpers import bulk
 except 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 embedchain.config import ElasticsearchDBConfig