Improve deps installation by converting them to one liner (#967)

This commit is contained in:
Sidharth Mohanty
2023-11-29 23:38:34 +05:30
committed by GitHub
parent 38426a7af1
commit e35eaf1bfc
13 changed files with 21 additions and 272 deletions

View File

@@ -30,15 +30,6 @@
"outputId": "efdce0dc-fb30-4e01-f5a8-ef1a7f4e8c09" "outputId": "efdce0dc-fb30-4e01-f5a8-ef1a7f4e8c09"
}, },
"outputs": [], "outputs": [],
"source": [
"!pip install embedchain"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [ "source": [
"!pip install embedchain[dataloaders]" "!pip install embedchain[dataloaders]"
] ]

View File

@@ -22,16 +22,6 @@
"id": "b80ff15a", "id": "b80ff15a",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [
"!pip install embedchain"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "692ff37b",
"metadata": {},
"outputs": [],
"source": [ "source": [
"!pip install embedchain[dataloaders]" "!pip install embedchain[dataloaders]"
] ]
@@ -158,14 +148,6 @@
" answer = app.query(question)\n", " answer = app.query(question)\n",
" print(answer)" " print(answer)"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e1f2ead5",
"metadata": {},
"outputs": [],
"source": []
} }
], ],
"metadata": { "metadata": {

View File

@@ -25,15 +25,6 @@
"id": "-NbXjAdlh0vJ" "id": "-NbXjAdlh0vJ"
}, },
"outputs": [], "outputs": [],
"source": [
"!pip install embedchain"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [ "source": [
"!pip install embedchain[dataloaders]" "!pip install embedchain[dataloaders]"
] ]

View File

@@ -30,16 +30,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,cohere]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -48,27 +39,11 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set Cohere related environment variables and install the dependencies\n", "### Step-2: Set Cohere related environment variables\n",
"\n", "\n",
"You can find `OPENAI_API_KEY` on your [OpenAI dashboard](https://platform.openai.com/account/api-keys) and `COHERE_API_KEY` key on your [Cohere dashboard](https://dashboard.cohere.com/api-keys)." "You can find `OPENAI_API_KEY` on your [OpenAI dashboard](https://platform.openai.com/account/api-keys) and `COHERE_API_KEY` key on your [Cohere dashboard](https://dashboard.cohere.com/api-keys)."
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
},
"id": "S5jTywPZNtrj",
"outputId": "4a23c813-c9e5-4b6c-e3d9-b41e4fdbc54d"
},
"outputs": [],
"source": [
"!pip install embedchain[cohere]"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,

View File

@@ -26,16 +26,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,elasticsearch]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -44,20 +35,9 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set OpenAI environment variables and install the dependencies.\n", "### Step-2: Set OpenAI environment variables.\n",
"\n", "\n",
"You can find this env variable on your [OpenAI dashboard](https://platform.openai.com/account/api-keys). Now lets install the dependencies needed for Elasticsearch." "You can find this env variable on your [OpenAI dashboard](https://platform.openai.com/account/api-keys)."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "-MUFRfxV7Jk7"
},
"outputs": [],
"source": [
"!pip install --upgrade 'embedchain[elasticsearch]'"
] ]
}, },
{ {

View File

@@ -30,16 +30,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,opensource]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -48,24 +39,9 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set GPT4ALL related environment variables and install dependencies\n", "### Step-2: Set GPT4ALL related environment variables\n",
"\n", "\n",
"GPT4All is free for all and doesn't require any API Key to use it. Just import the dependencies." "GPT4All is free for all and doesn't require any API Key to use it. So you can use it for free!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "dGOE4u3dC6at",
"outputId": "c1c0087b-3f14-49fa-fb86-a4a3391ba14c"
},
"outputs": [],
"source": [
"!pip install --upgrade embedchain[opensource]"
] ]
}, },
{ {

View File

@@ -31,16 +31,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,huggingface_hub,opensource]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -49,39 +40,9 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set Hugging Face Hub related environment variables and install dependencies\n", "### Step-2: Set Hugging Face Hub related environment variables\n",
"\n", "\n",
"You can find your `HUGGINGFACE_ACCESS_TOKEN` key on your [Hugging Face Hub dashboard](https://huggingface.co/settings/tokens) and install the dependencies" "You can find your `HUGGINGFACE_ACCESS_TOKEN` key on your [Hugging Face Hub dashboard](https://huggingface.co/settings/tokens)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "VfDNZJCqNfqo",
"outputId": "34894d35-7142-42ee-8564-2e9f718afcbb"
},
"outputs": [],
"source": [
"!pip install embedchain[huggingface-hub]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "SCNT8khqcR3G",
"outputId": "b789ee77-ef50-4330-8ac6-5da645dc36d6"
},
"outputs": [],
"source": [
"!pip install embedchain[opensource]"
] ]
}, },
{ {
@@ -209,15 +170,6 @@
" answer = app.query(question)\n", " answer = app.query(question)\n",
" print(answer)" " print(answer)"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "HvZVn6gU5xB_"
},
"outputs": [],
"source": []
} }
], ],
"metadata": { "metadata": {

View File

@@ -30,15 +30,6 @@
"outputId": "69cb79a6-c758-4656-ccf7-9f3105c81d16" "outputId": "69cb79a6-c758-4656-ccf7-9f3105c81d16"
}, },
"outputs": [], "outputs": [],
"source": [
"!pip install embedchain"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [ "source": [
"!pip install embedchain[dataloaders]" "!pip install embedchain[dataloaders]"
] ]

View File

@@ -30,16 +30,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,llama2]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -48,20 +39,9 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set LLAMA2 related environment variables and install dependencies\n", "### Step-2: Set LLAMA2 related environment variables\n",
"\n", "\n",
"You can find `OPENAI_API_KEY` on your [OpenAI dashboard](https://platform.openai.com/account/api-keys) and `REPLICATE_API_TOKEN` key on your [Replicate dashboard](https://replicate.com/account/api-tokens). Now lets install the dependencies for LLAMA2." "You can find `OPENAI_API_KEY` on your [OpenAI dashboard](https://platform.openai.com/account/api-keys) and `REPLICATE_API_TOKEN` key on your [Replicate dashboard](https://replicate.com/account/api-tokens)."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "qoBUbocNtUUD"
},
"outputs": [],
"source": [
"!pip install embedchain[llama2]"
] ]
}, },
{ {

View File

@@ -30,15 +30,6 @@
"outputId": "6c630676-c7fc-4054-dc94-c613de58a037" "outputId": "6c630676-c7fc-4054-dc94-c613de58a037"
}, },
"outputs": [], "outputs": [],
"source": [
"!pip install embedchain"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [ "source": [
"!pip install embedchain[dataloaders]" "!pip install embedchain[dataloaders]"
] ]

View File

@@ -26,16 +26,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,opensearch]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -49,17 +40,6 @@
"You can find this env variable on your [OpenAI dashboard](https://platform.openai.com/account/api-keys). Now lets install the dependencies needed for Opensearch." "You can find this env variable on your [OpenAI dashboard](https://platform.openai.com/account/api-keys). Now lets install the dependencies needed for Opensearch."
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "-MUFRfxV7Jk7"
},
"outputs": [],
"source": [
"!pip install --upgrade 'embedchain[opensearch]'"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,

View File

@@ -26,16 +26,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,pinecone]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -44,20 +35,9 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set environment variables needed for Pinecone and install the dependencies.\n", "### Step-2: Set environment variables needed for Pinecone\n",
"\n", "\n",
"You can find this env variable on your [OpenAI dashboard](https://platform.openai.com/account/api-keys) and [Pinecone dashboard](https://app.pinecone.io/). Now lets install the dependencies needed for Pinecone." "You can find this env variable on your [OpenAI dashboard](https://platform.openai.com/account/api-keys) and [Pinecone dashboard](https://app.pinecone.io/)."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "-MUFRfxV7Jk7"
},
"outputs": [],
"source": [
"!pip install --upgrade 'embedchain[pinecone]'"
] ]
}, },
{ {

View File

@@ -30,16 +30,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install embedchain" "!pip install embedchain[dataloaders,vertexai]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
] ]
}, },
{ {
@@ -48,20 +39,9 @@
"id": "nGnpSYAAh2bQ" "id": "nGnpSYAAh2bQ"
}, },
"source": [ "source": [
"### Step-2: Set VertexAI related environment variables and install dependencies.\n", "### Step-2: Set VertexAI related environment variables\n",
"\n", "\n",
"You can find `OPENAI_API_KEY` on your [OpenAI dashboard](https://platform.openai.com/account/api-keys). Now lets install the dependencies." "You can find `OPENAI_API_KEY` on your [OpenAI dashboard](https://platform.openai.com/account/api-keys)."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "a_shbIFBtnwu"
},
"outputs": [],
"source": [
"!pip install embedchain[vertexai]"
] ]
}, },
{ {