Immutable solution version
How to fix Postgres error "operator does not exist" using pgvector
Complete solution
How to fix Postgres error "operator does not exist" using pgvector: I finally found the problem; you have to install pg_vector on the extensions schema.
I finally found the problem; you have to install pgvector on the extensions schema. If you are following https://github.com/supabase/supabase/blob/master/supabase/migrations/20230126220613doc_embeddings.sql. Most likely you wont get it work for some reason. Just manually enable the extension in database tab.
Context: Stack Overflow #75904637 (accepted answer, 3 votes): I have a Postgres function to find the top 10 most relevant vectors. I called this function from a supabase serverless function, but logs returned 500. The error I get is related to the ` operator. It seems that PostgreSQL cannot find this operator for the vector type provided by the pgvector extension. Detailed Log message: Failed to match page sections: {"code":"42883","details":null,"hint":"No operator matches the given name and argument types. You might need to add explicit type casts.","message":"operator does not exist: extensions.vector extensions.vector"} `` Postgres function:...
Matched source
Source: Published skill Original query: "How to fix Postgres error "operator does not exist" using pgvector" Key terms: does, error, exist, operator, pgvector, postgres, using
Evidence
Source: Stack Overflow #75904637 (accepted answer, 3 votes): I have a Postgres function to find the top 10 most relevant vectors. I called this function from a supabase serverless function, but logs returned 500. The error I get is related to the ` operator. It seems that PostgreSQL cannot find this operator for the vector type provided by the pgvector extension. Detailed Log message: Failed to match page sections: {"code":"42883","details":null,"hint":"No operator matches the given name and argument types. You might need to add explicit type casts.","message":"operator does not exist: extensions.vector extensions.vector"} `` Postgres function:...
Verified resolution: I finally found the problem; you have to install pgvector on the extensions schema. If you are following https://github.com/supabase/supabase/blob/master/supabase/migrations/20230126220613doc_embeddings.sql. Most likely you wont get it work for some reason. Just manually enable the extension in database tab.
Source URL: https://stackoverflow.com/questions/75904637/how-to-fix-postgres-error-operator-does-not-exist-using-pgvector
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_K9P12reW-EFqDY5O7E9mRA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">How to fix Postgres error "operator does not exist" using pgvector <span>— Vectle</span></a>