---
title: "Answers, your model, and five roles · QueryLlama"
description: "Ask a question and get an answer with its sources, bring your own model, and roles enforced where it matters."
url: "https://royalsoftworks.com/products/queryllama/features/answers-and-roles/"
source: "https://royalsoftworks.com"
format: "markdown"
note: "Markdown rendering of the HTML page at `url`. Same content, same canonical URL."
---

Features · 2 of 3

# Answers, your model, and five roles.

Ask a question and get an answer with its sources, bring your own model, and roles enforced where it matters.

Question answering

## Ask a question, get an answer with receipts.

Beyond search results, the planned RAG layer retrieves the most relevant chunks and generates an answer that cites exactly which document and passage it drew from — so you can verify before you rely on it.

- Retrieval-augmented generation over your own documents
- Citations link back to source file and passage
- In development — not yet available

Bring your own LLM

## Use your model, not just ours, for answers.

Enterprise customers will be able to point the question-answering step at their own OpenAI-compatible endpoint, with credentials stored per-organization rather than shared across tenants.

- Per-organization endpoint, model name and API key
- OpenAI-compatible API format
- In development — enterprise tier

Access control

## Five roles, enforced where it actually matters.

Super admin, org admin, group admin, member and viewer — and unlike a typical app-layer permission check, these are enforced by Postgres Row-Level Security policies, so the database itself won't return a row outside a user's scope.

- 5-role RBAC: super\_admin, org\_admin, group\_admin, member, viewer
- Designed to be enforced in Postgres RLS, not just application code
- Organization isolation policies written; per-role and group-level rules still being built

[Previous Three ways to search, one way to verify.](https://royalsoftworks.com/products/queryllama/features/three-ways-to-search/) [Next A hosted pipeline, and what is next.](https://royalsoftworks.com/products/queryllama/features/pipeline-and-roadmap/)

[All of QueryLlama features](https://royalsoftworks.com/products/queryllama/features/)

<!-- verse:royalsoftworks
     Jevrejima 4:16
     Da pristupimo, dakle, slobodno k prestolu blagodati, da primimo milost i nadjemo blagodat za vreme kad nam zatreba pomoć.
     https://www.wordproject.org/bibles/verses/serbian/02_prayer.htm
-->
