Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs(ai): last polishes and link fixes

Greg Richardson86321e71b329
diff --git a/apps/docs/pages/guides/ai.mdx b/apps/docs/pages/guides/ai.mdx
index 97730bdd475..36fdb2ee1a8 100644
--- a/apps/docs/pages/guides/ai.mdx
+++ b/apps/docs/pages/guides/ai.mdx
@@ -17,10 +17,10 @@ Supabase provides a number of tools to get started with Vectors and Embeddings.
Supabase provides a full toolkit for developing AI applications.
-- A vector store and embeddings support using pgvector.
-- A Python client for managing unstructured embeddings.
-- Database migrations for managing structured embeddings.
-- Integrations with all popular AI providers, such as OpenAI, Hugging Face, LangChain, and more.
+- A [vector store](/docs/guides/ai/vector-columns) and embeddings support using pgvector.
+- A [Python client](/docs/guides/ai/vecs-python-client) for managing unstructured embeddings.
+- [Database migrations](/docs/guides/ai/examples/headless-vector-search#prepare-your-database) for managing structured embeddings.
+- Integrations with all popular AI providers, such as [OpenAI](/docs/guides/ai/examples/headless-vector-search), [Hugging Face](/docs/guides/ai/hugging-face), [LangChain](/docs/guides/ai/langchain), and more.
## Examples
diff --git a/apps/docs/pages/guides/ai/concepts.mdx b/apps/docs/pages/guides/ai/concepts.mdx
index 662f225117b..9db09fe50cb 100644
--- a/apps/docs/pages/guides/ai/concepts.mdx
+++ b/apps/docs/pages/guides/ai/concepts.mdx
@@ -40,7 +40,7 @@ So how does this relate to embeddings?
Embeddings compress discrete information (words & symbols) into distributed continuous-valued data (vectors). If we took our phrases from before and plot them on a chart, it might look something like this:
-![Vector similarity](/images/blog/embeddings/vector-similarity.png)
+<img src="/docs/img/ai/vector-similarity.png" alt="Vector similarity" width="640" height="640" />
Phrases 1 and 2 would be plotted close to each other, since their meanings are similar. We would expect phrase 3 to live somewhere far away since it isn't related. If we had a fourth phrase, “Sally ate Swiss cheese”, this might exist somewhere between phrase 3 (cheese can go on sandwiches) and phrase 1 (mice like Swiss cheese).
@@ -60,7 +60,7 @@ Why is this useful? Once we have generated embeddings on multiple texts, it is t
## See also
-- TBD
+- [Structured and Unstructured embeddings](/docs/guides/ai/structured-unstructured-embeddings)
export const Page = ({ children }) => <Layout meta={meta} children={children} />
diff --git a/apps/docs/pages/guides/ai/hugging-face.mdx b/apps/docs/pages/guides/ai/hugging-face.mdx
index f56e87291a8..b87c724a55b 100644
--- a/apps/docs/pages/guides/ai/hugging-face.mdx
+++ b/apps/docs/pages/guides/ai/hugging-face.mdx
@@ -150,13 +150,18 @@ curl --output result.jpg --location --request POST 'http://localhost:54321/funct
Your generated image will save to `result.jpg`:
-<img src="/docs/img/ai/hugging-face/llama-sunglasses-example.png" width="400" height="400" />
+<img
+ src="/docs/img/ai/hugging-face/llama-sunglasses-example.png"
+ alt="Llama wearing sunglasses example"
+ width="400"
+ height="400"
+/>
## Resources
-- Official [Langchain site](https://langchain.com/).
-- Official [Langchain docs](https://js.langchain.com/docs/modules/indexes/vector_stores/integrations/supabase).
-- Supabase [Hybrid Search](https://js.langchain.com/docs/modules/indexes/retrievers/supabase-hybrid).
+- Official [Hugging Face site](https://huggingface.co/).
+- Official [Hugging Face JS docs](https://huggingface.co/docs/huggingface.js).
+- [Generate image captions](/docs/guides/ai/examples/huggingface-image-captioning) using Hugging Face.
export const Page = ({ children }) => <Layout meta={meta} children={children} />
diff --git a/apps/docs/public/img/ai/vector-similarity.png b/apps/docs/public/img/ai/vector-similarity.png
new file mode 100644
index 00000000000..b2282e76f1e
Binary files /dev/null and b/apps/docs/public/img/ai/vector-similarity.png differ