There is a RAG example here https://github.com/tembo-io/pg_vectorize?tab=readme-ov-file#...
You can provide your own prompts by adding them to the `vectorize.prompts` table. There's an API for this in the works. It is poorly documented at the moment.