When executing the semantic text search and full-text search, you must grant the executing user function privileges that exist in the ai schema.
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA ai TO <user>;