
# 

AI & Vectors

## 

The best vector database is the database you already have.

* * *

Supabase provides an open source toolkit for developing AI applications using Postgres and pgvector. Use the Supabase client libraries to store, index, and query your vector embeddings at scale.

The toolkit includes:

*   A [vector store](vector-columns/index.md) and embeddings support using Postgres and pgvector.
*   A [Python client](vecs-python-client/index.md) for managing unstructured embeddings.
*   An [embedding generation](quickstarts/generate-text-embeddings/index.md) process using open source models directly in Edge Functions.
*   [Database migrations](examples/headless-vector-search/index.md#prepare-your-database) for managing structured embeddings.
*   Integrations with all popular AI providers, such as [OpenAI](examples/openai/index.md), [Hugging Face](hugging-face/index.md), [LangChain](langchain/index.md), and more.

## Search[#](#search)

You can use Supabase to build different types of search features for your app, including:

*   [Semantic search](semantic-search/index.md): search by meaning rather than exact keywords
*   [Keyword search](keyword-search/index.md): search by words or phrases
*   [Hybrid search](hybrid-search/index.md): combine semantic search with keyword search

## Examples[#](#examples)

Check out all of the AI [templates and examples](https://github.com/supabase/supabase/tree/master/examples/ai) in our GitHub repository.

[

![Headless Vector Search](/docs/img/icons/github-icon-light.svg)

Headless Vector Search

A toolkit to perform vector similarity search on your knowledge base embeddings.

](/docs/guides/ai/examples/headless-vector-search)

[

![Image Search with OpenAI CLIP](/docs/img/icons/github-icon-light.svg)

Image Search with OpenAI CLIP

Implement image search with the OpenAI CLIP Model and Supabase Vector.

](/docs/guides/ai/examples/image-search-openai-clip)

[

![Hugging Face inference](/docs/img/icons/github-icon-light.svg)

Hugging Face inference

Generate image captions using Hugging Face.

](/docs/guides/ai/examples/huggingface-image-captioning)

[

![OpenAI completions](/docs/img/icons/github-icon-light.svg)

OpenAI completions

Generate GPT text completions using OpenAI in Edge Functions.

](/docs/guides/ai/examples/openai)

[

![Building ChatGPT Plugins](/docs/img/icons/github-icon-light.svg)

Building ChatGPT Plugins

Use Supabase as a Retrieval Store for your ChatGPT plugin.

](/docs/guides/ai/examples/building-chatgpt-plugins)

[

![Vector search with Next.js and OpenAI](/docs/img/icons/github-icon-light.svg)

Vector search with Next.js and OpenAI

Learn how to build a ChatGPT-style doc search powered by Next.js, OpenAI, and Supabase.

](/docs/guides/ai/examples/nextjs-vector-search)

## Integrations[#](#integrations)

[

OpenAI

OpenAI is an AI research and deployment company. Supabase provides a simple way to use OpenAI in your applications.

](examples/building-chatgpt-plugins/index.md)

[

Amazon Bedrock

A fully managed service that offers a choice of high-performing foundation models from leading AI companies.

](integrations/amazon-bedrock/index.md)

[

Hugging Face

Hugging Face is an open-source provider of NLP technologies. Supabase provides a simple way to use Hugging Face's models in your applications.

](hugging-face/index.md)

[

LangChain

LangChain is a language-agnostic, open-source, and self-hosted API for text translation, summarization, and sentiment analysis.

](langchain/index.md)

[

LlamaIndex

LlamaIndex is a data framework for your LLM applications.

](integrations/llamaindex/index.md)

## Case studies[#](#case-studies)

[

Berri AI Boosts Productivity by Migrating from AWS RDS to Supabase with pgvector

Learn how Berri AI overcame challenges with self-hosting their vector database on AWS RDS and successfully migrated to Supabase.

](https://supabase.com/customers/berriai)

[

Firecrawl switches from Pinecone to Supabase for Postgres vector embeddings

How Firecrawl boosts efficiency and accuracy of chat powered search for documentation using Supabase with pgvector

](https://supabase.com/customers/firecrawl)

[

Markprompt: GDPR-Compliant AI Chatbots for Docs and Websites

AI-powered chatbot platform, Markprompt, empowers developers to deliver efficient and GDPR-compliant prompt experiences on top of their content, by leveraging Supabase's secure and privacy-focused database and authentication solutions

](https://supabase.com/customers/markprompt)
