|
@@ -31,16 +31,7 @@
|
|
},
|
|
},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
- "!pip install embedchain"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "cell_type": "code",
|
|
|
|
- "execution_count": null,
|
|
|
|
- "metadata": {},
|
|
|
|
- "outputs": [],
|
|
|
|
- "source": [
|
|
|
|
- "!pip install embedchain[dataloaders]"
|
|
|
|
|
|
+ "!pip install embedchain[dataloaders,huggingface_hub,opensource]"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -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"
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "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]"
|
|
|
|
|
|
+ "You can find your `HUGGINGFACE_ACCESS_TOKEN` key on your [Hugging Face Hub dashboard](https://huggingface.co/settings/tokens)"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -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": {
|