"""Service layer for the RAG API."""