A chatbot that answers from your documents and updates itself

The scenario builds a knowledge base from the documents in a folder and answers questions from them. Add or change a file and the bot picks it up on its own.

  • Answers from your files, doesn't make things up
  • Picks up new and changed documents on its own
  • Remembers the conversation context
  • One bot for the whole team — policy questions handled without you
Reranker CohereSupabase Vector StoreSupabaseDefault Data LoaderGoogle Drive

How it works

To keep Redis and Reranker Cohere in sync, connect them with a ready-made scenario — changes flow automatically.

  1. Starts when: File Created
  2. Check: Loop Over Items
  3. Then: Set File ID
  4. Then: Delete Old Doc Rows
  5. Then: Insert Document Metadata
  6. Then: Download File1
  7. Check: Switch
  8. If yes: Extract PDF Text
  9. Then: Insert into Supabase Vectorstore
  10. If no: Extract Document Text
  11. Then: Reranker Cohere
  12. Then: Supabase Vector Store
  13. Then: RAG Agent
  14. Starts when: File Updated
  15. Then: Character Text Splitter
  16. Then: Default Data Loader1
  17. Then: Get File IDs
  18. Check: Merge
  19. Then: Code1
  20. Then: Delete Rows
  21. Then: Supabase
  22. Starts when: Schedule Trigger
  23. Then: Get File IDs2
  24. Check: Merge2
  25. Then: Code2
  26. Then: Delete Rows2
  27. Then: Supabase2
  28. Starts when: When clicking ‘Test workflow’
  29. Then: Search files and folders
  30. Then: Postgres Chat Memory
  31. Starts when: When chat message received
  32. Then: Google Gemini Chat Model
  33. Then: Embeddings Google Gemini
  34. Then: Embeddings Google Gemini1

You can launch this Redis + Reranker Cohere integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.