index = VectorStoreIndex.from_vector_store(vector_store=vector_store) query_engine = index.as_query_engine() response = query_engine.query("my query is here")
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: extensions.vector <=> unknown LINE 1: SELECT vecs.test1.id, vecs.test1.vec <=> '[-0.01009003072977... ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. [SQL: SELECT vecs.test1.id, vecs.test1.vec <=> %(vec_1)s AS anon_1, vecs.test1.metadata FROM vecs.test1 ORDER BY vecs.test1.vec <=> %(vec_1)s LIMIT %(param_1)s]
storage_context = StorageContext.from_defaults(vector_store=vector_store) index = VectorStoreIndex.from_documents(documents, storage_context=storage_context)
ALTER USER llamaindex SET search_path TO "\$user", public, extensions; GRANT USAGE ON SCHEMA extensions TO llamaindex;