Closed mrtushartiwari closed 2 months ago
https://codelabs.developers.google.com/smart-shop-agent-alloydb#3 In step 4 [Schema and Data Ingestion] While creating the table gets the following error
using the same command as given in lab
CREATE TABLE apparels ( id BIGINT, category VARCHAR(100), sub_category VARCHAR(50), uri VARCHAR(200), image VARCHAR(100), content VARCHAR(2000), pdt_desc VARCHAR(5000), embedding vector(768) );
postgresql error: type "vector" does not exist
Solution found please run CREATE EXTENSION vector;
before running create table command.
https://codelabs.developers.google.com/smart-shop-agent-alloydb#3 In step 4 [Schema and Data Ingestion] While creating the table gets the following error
using the same command as given in lab
CREATE TABLE apparels ( id BIGINT, category VARCHAR(100), sub_category VARCHAR(50), uri VARCHAR(200), image VARCHAR(100), content VARCHAR(2000), pdt_desc VARCHAR(5000), embedding vector(768) );
postgresql error: type "vector" does not exist