mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 16:43:35 +00:00
Update supabase match_docs ddl and notebook to use expected id type (#7257)
- Description: Switch supabase match function DDL to use expected uuid type instead of bigint - Issue: https://github.com/hwchase17/langchain/issues/6743, https://github.com/hwchase17/langchain/issues/7179 - Tag maintainer: @rlancemartin, @eyurtsev - Twitter handle: https://twitter.com/ShantanuNair
This commit is contained in:
parent
0e878ccc2d
commit
f773c21723
@ -43,7 +43,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" CREATE FUNCTION match_documents(query_embedding vector(1536), match_count int)\n",
|
" CREATE FUNCTION match_documents(query_embedding vector(1536), match_count int)\n",
|
||||||
" RETURNS TABLE(\n",
|
" RETURNS TABLE(\n",
|
||||||
" id bigint,\n",
|
" id uuid,\n",
|
||||||
" content text,\n",
|
" content text,\n",
|
||||||
" metadata jsonb,\n",
|
" metadata jsonb,\n",
|
||||||
" -- we return matched vectors to enable maximal marginal relevance searches\n",
|
" -- we return matched vectors to enable maximal marginal relevance searches\n",
|
||||||
|
@ -315,7 +315,7 @@ class SupabaseVectorStore(VectorStore):
|
|||||||
CREATE FUNCTION match_documents_embeddings(query_embedding vector(1536),
|
CREATE FUNCTION match_documents_embeddings(query_embedding vector(1536),
|
||||||
match_count int)
|
match_count int)
|
||||||
RETURNS TABLE(
|
RETURNS TABLE(
|
||||||
id bigint,
|
id uuid,
|
||||||
content text,
|
content text,
|
||||||
metadata jsonb,
|
metadata jsonb,
|
||||||
embedding vector(1536),
|
embedding vector(1536),
|
||||||
|
Loading…
Reference in New Issue
Block a user