百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

headless-vector-search

> 数据库
开源

Supabase 工具包,可在知识库嵌入中执行向量相似性搜索。

195 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Supabase 工具包,可在知识库嵌入中执行向量相似性搜索。

Headless Vector Search

Provides a vector/similarity search for any documentation site. It's headless, so that you can integrate it into your existing website.

How it works:

  • This repo initializes a new docs schema inside your database.
  • The accompanying GitHub Action ingests your markdown docs into your database as embeddings.
  • This repo provides an Edge Function that handles user queries, converting them into ChatGPT-like responses.

Tech stack:

  • Supabase: Database & Edge Functions.
  • OpenAI: Embeddings and completions.
  • GitHub Actions: for ingesting your markdown docs.

Set-up

Start by creating a new Supabase Project: database.new.

  1. Clone this repo
  2. Link the repo to your remote project: supabase link --project-ref XXX
  3. Apply the database migrations: supabase db push
  4. Set your OpenAI key as a secret: supabase secrets set OPENAI_API_KEY=sk-xxx
  5. Deploy the Edge Functions: supabase functions deploy --no-verify-jwt
  6. Expose docs schema via API in Supabase Dashboard settings > API Settings > Exposed schemas
  7. Setup supabase-vector-embeddings GitHub action in your Knowledge Base repo. You will see the embeddings populated in your database after the GitHub Action has run.

Usage

  1. Find the URL for the vector-search Edge Function in the Functions section of the Dashboard.
  2. Inside your appliction, you can send the user queries to this endpoint to receive a streamed response from OpenAI.

See cURL example

bash
 curl -i --location --request GET 'https://your-project-ref.functions.supabase.co/vector-search?query=What%27s+Supabase%3F'

See EventSource example

…

Showcase

  • docs.supabase.com - Use cmd+k to access.

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptembeddingsopenaipostgrespostgresql

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库