|
16 | 16 | "metadata": {},
|
17 | 17 | "source": [
|
18 | 18 | "<td>\n",
|
19 |
| - "<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/master/examples/basics/custom_embeddings.ipynb\" target=\"_blank\"><img\n", |
| 19 | + "<a href=\"https://colab.research.google.com/github/Labelbox/labelbox-python/blob/develop/examples/basics/custom_embeddings_sdk.ipynb\" target=\"_blank\"><img\n", |
20 | 20 | "src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"></a>\n",
|
21 | 21 | "</td>\n",
|
22 | 22 | "\n",
|
23 | 23 | "<td>\n",
|
24 |
| - "<a href=\"https://github.com/Labelbox/labelbox-python/tree/master/examples/basics/custom_embeddings.ipynb\" target=\"_blank\"><img\n", |
| 24 | + "<a href=\"https://github.com/Labelbox/labelbox-python/tree/develop/examples/basics/custom_embeddings_sdk.ipynb\" target=\"_blank\"><img\n", |
25 | 25 | "src=\"https://img.shields.io/badge/GitHub-100000?logo=github&logoColor=white\" alt=\"GitHub\"></a>\n",
|
26 | 26 | "</td>"
|
27 | 27 | ],
|
|
32 | 32 | "source": [
|
33 | 33 | "# Custom Embeddings\n",
|
34 | 34 | "\n",
|
35 |
| - "You can improve your data exploration and similarity search experience by adding your own custom embeddings. Labelbox allows you to upload up to 100 different custom embeddings on any kind of data. You can experiment with different embeddings to power your data selection." |
| 35 | + "You can improve your data exploration and similarity search experience by adding your own custom embeddings. Labelbox allows you to upload up to 10 different custom embeddings per workspace on any kind of data. You can experiment with different embeddings to power your data selection." |
36 | 36 | ],
|
37 | 37 | "cell_type": "markdown"
|
38 | 38 | },
|
|
87 | 87 | "\n",
|
88 | 88 | "# get images from a Labelbox dataset\n",
|
89 | 89 | "# Our systems start to process data after 1000 embeddings of each type, for this demo make sure your dataset is over 1000 data rows\n",
|
90 |
| - "dataset = client.get_dataset(\"<ADD YOUR DATASET ID>\")\n", |
| 90 | + "dataset = client.get_dataset(\"<DATASET-ID>\")\n", |
91 | 91 | "\n",
|
92 | 92 | "export_task = dataset.export()\n",
|
93 | 93 | "export_task.wait_till_done()"
|
|
125 | 125 | "metadata": {},
|
126 | 126 | "source": [
|
127 | 127 | "data_row_ids = [dr[\"data_row\"][\"id\"] for dr in data_rows]\n",
|
128 |
| - "\n", |
129 | 128 | "data_row_ids = data_row_ids[:1000] # keep the first 1000 examples for the sake of this demo"
|
130 | 129 | ],
|
131 | 130 | "cell_type": "code",
|
|
213 | 212 | "metadata": {},
|
214 | 213 | "source": [
|
215 | 214 | "# Create a new custom embedding, unless you want to re-use one\n",
|
| 215 | + "# Name of the custom embedding must be unique\n", |
216 | 216 | "embedding = client.create_embedding(\"my_custom_embedding_2048_dimensions\", 2048)"
|
217 | 217 | ],
|
218 | 218 | "cell_type": "code",
|
|
223 | 223 | "metadata": {},
|
224 | 224 | "source": [
|
225 | 225 | "# Delete a custom embedding\n",
|
226 |
| - "embedding.delete()" |
| 226 | + "#embedding.delete()" |
227 | 227 | ],
|
228 | 228 | "cell_type": "code",
|
229 | 229 | "outputs": [],
|
|
0 commit comments