The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
shrink images to avoid nbviewer row wrap
Oliver Rice34b8885f53a7
diff --git a/examples/ai/face_similarity.ipynb b/examples/ai/face_similarity.ipynbindex d849a67fbcc..c155aeb311f 100644--- a/examples/ai/face_similarity.ipynb+++ b/examples/ai/face_similarity.ipynb@@ -334,7 +334,7 @@},{"cell_type": "code",- "execution_count": 10,+ "execution_count": 14,"id": "8673ff6e-31e5-4344-990d-bf3c84be5824","metadata": {},"outputs": [],@@ -355,7 +355,7 @@" for metadata in result_metadata:\n"," html = f\"\"\"\n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/{metadata[\"profile_path\"]}\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/{metadata[\"profile_path\"]}\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>{metadata[\"name\"]}</figcaption>\n"," </figure>\n"," \"\"\"\n",@@ -381,7 +381,7 @@},{"cell_type": "code",- "execution_count": 11,+ "execution_count": 15,"id": "2e5f05e8-5fc3-42e8-9a3b-4b3c7ce0dc4a","metadata": {},"outputs": [@@ -392,27 +392,27 @@" <div style=\"display: flex; flex-flow: row wrap; text-align: center;\">\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/9nbtjqsx3De7hO2XDtrBQ7M9VCH.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/9nbtjqsx3De7hO2XDtrBQ7M9VCH.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Lucy Liu</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/c9wvQRvHWGrYE2fDz9SiEcqAcWC.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/c9wvQRvHWGrYE2fDz9SiEcqAcWC.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Tamlyn Tomita</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/7nT6QsetU2RCUwopPmq2NFSnLDL.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/7nT6QsetU2RCUwopPmq2NFSnLDL.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Constance Wu</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/8tzC0SPIcM9TLo9VqvEmvse6u25.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/8tzC0SPIcM9TLo9VqvEmvse6u25.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Lauren Tom</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/63lrHyH6cl6MaELaPNmT9jEeJ7b.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/63lrHyH6cl6MaELaPNmT9jEeJ7b.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Arden Cho</figcaption>\n"," </figure>\n"," \n",@@ -423,7 +423,7 @@"<IPython.core.display.HTML object>"]},- "execution_count": 11,+ "execution_count": 15,"metadata": {},"output_type": "execute_result"}@@ -437,7 +437,7 @@},{"cell_type": "code",- "execution_count": 12,+ "execution_count": 16,"id": "1aa257bf-d1c9-4364-a6ef-46740916ace1","metadata": {},"outputs": [@@ -448,27 +448,27 @@" <div style=\"display: flex; flex-flow: row wrap; text-align: center;\">\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/905k0RFzH0Kd6gx8oSxRdnr6FL.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/905k0RFzH0Kd6gx8oSxRdnr6FL.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Morgan Freeman</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/3717JOXK2Z8qelfyvScDGimfFBf.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/3717JOXK2Z8qelfyvScDGimfFBf.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Frankie Faison</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/e8wLUoY29UDB5RAAglp8vPttUHr.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/e8wLUoY29UDB5RAAglp8vPttUHr.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Dennis Haysbert</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/aATeiW7OlEwAM22NDW9uzo0GXTX.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/aATeiW7OlEwAM22NDW9uzo0GXTX.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Alvin Sanders</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/uOsldo9Pkl0E79UbIXX5tZZmC8F.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/uOsldo9Pkl0E79UbIXX5tZZmC8F.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Wendell Pierce</figcaption>\n"," </figure>\n"," \n",@@ -479,7 +479,7 @@"<IPython.core.display.HTML object>"]},- "execution_count": 12,+ "execution_count": 16,"metadata": {},"output_type": "execute_result"}@@ -493,7 +493,7 @@},{"cell_type": "code",- "execution_count": 13,+ "execution_count": 17,"id": "031c13f7-c830-45e0-b36e-7c1d71eca383","metadata": {},"outputs": [@@ -504,27 +504,27 @@" <div style=\"display: flex; flex-flow: row wrap; text-align: center;\">\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/u2tnZ0L2dwrzFKevVANYT5Pb1nE.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/u2tnZ0L2dwrzFKevVANYT5Pb1nE.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Sandra Bullock</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/6NRlV9oUipeak7r00V6k73Jb7we.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/6NRlV9oUipeak7r00V6k73Jb7we.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Rebecca Ferguson</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/9ULAELEKNha7VCJhRWoer58NcJe.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/9ULAELEKNha7VCJhRWoer58NcJe.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Eugenie Bondurant</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/maG38Xi4zYiHrg0VVGi1HyQR0PX.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/maG38Xi4zYiHrg0VVGi1HyQR0PX.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Joyce Hyser</figcaption>\n"," </figure>\n"," \n"," <figure style=\"margin: 5px !important;\">\n",- " <img src=\"https://image.tmdb.org/t/p/h632/giO5KxDT8h6b8XkFGadigkTcmLx.jpg\" style=\"width: 150px; height: 190 px\" >\n",+ " <img src=\"https://image.tmdb.org/t/p/h632/giO5KxDT8h6b8XkFGadigkTcmLx.jpg\" style=\"width: 100px; height: 150 px\" >\n"," <figcaption>Zuhal Olcay</figcaption>\n"," </figure>\n"," \n",@@ -535,7 +535,7 @@"<IPython.core.display.HTML object>"]},- "execution_count": 13,+ "execution_count": 17,"metadata": {},"output_type": "execute_result"}