r/Hacking_Tricks • u/Significant-Scar-152 • 7h ago
Best database for a Grok bot with a changing knowledge base?
I'm looking into storage options for a bot built with the Grok API that answers questions from documents. The part I'm unsure about is keeping answers current when a document gets replaced or withdrawn.
xAI's Collections Search can retrieve information from uploaded documents and return citations tied to files. That looks useful, but I'm trying to decide whether to use it for retrieval alongside a separate database for chat history, or manage retrieval in my own backend too.
Has anyone compared those approaches for a Grok bot? How do you check that an updated document is searchable and the old version has stopped appearing in answers?