Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / RAG & Knowledge Bases

RAG & Knowledge Bases

Answer Questions on Notion Data with OpenAI

On a schedule, it embeds Notion content into Supabase, and when a chat message arrives OpenAI answers from the stored vectors.

What it does

## Adjust chunk size and overlap For more accurate search results, increase the overlap. For the *text-embedding-ada-002* model the chunk size plus overlap must not exceed 8191

The steps

  1. Embeddings OpenAI
  2. Token Splitter
  3. Loop Over Items
  4. Question and Answer Chain
  5. Vector Store Retriever
  6. OpenAI Chat Model
  7. When chat message received
  8. Schedule Trigger
  9. Limit
  10. Limit1
  11. Delete old embeddings if exist
  12. Get page blocks
  13. Default Data Loader
  14. Input Reference

19 steps in total.

Similar automations