Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 564 Bytes

File metadata and controls

23 lines (12 loc) · 564 Bytes

🚀 Part 6: Extra Enhancements (Optional)

✅ Goals

  • Add extra capabilities to your RAG app

🛠️ Optional Add-Ons

  • Add caching with Workers KV:

    Store frequent queries and LLM responses to speed up retrieval.

  • Add Model Switching via AI Gateway

    Let users toggle between Workers AI and external models (e.g. OpenAI GPT-4, Anthropic Claude).

  • Store Chat History

    Create /api/history to return stored conversations from your D1 conversations table.

  • Deploy to production:

    Set a custom domain and push the app live.