""" Utility functions for the RAG backend. """