Guardrails for RAG assistants and indirect prompt injection

Retrieval-augmented assistants read documents they did not write, so hidden instructions in those documents can steer them. This page covers the controls, platforms and evidence that address that risk in a self-hosted setup.

On this page

Why RAG guardrails for indirect prompt injection need their own design

Input rails on the user prompt do not protect a retrieval-augmented assistant on their own. In a knowledge assistant, the attacker often never talks to the model. They write text into a wiki page, an uploaded file, a ticket or a crawled web page, and the assistant later retrieves that text and reads it as context. If the only checks run on the user's question, the hidden instruction arrives unchecked inside the retrieved chunks. Protecting this path needs controls on retrieved content itself, plus controls on what the model is allowed to do with it.

The short answer on platforms is a split by layer. NeMo Guardrails provides retrieval rails that inspect RAG chunks before they reach the model, and it is the open-source library to evaluate for that role. A RAG engine such as RAGFlow, Dify or AnythingLLM owns the ingestion and retrieval pipeline where chunks are created and where source metadata can be kept. A gateway such as LiteLLM or Apache APISIX is where enforcement can be applied consistently across applications. Confirm that each component can be placed at the retrieval step in your architecture, because the rail is only useful if retrieved text passes through it.

Check the NeMo status before you commit. The current NeMo Guardrails release is 0.25.0, published on 19 November 2026, and NVIDIA has sunset the NeMo microservice container. The supported paths to verify are the open-source library and the NeMo Helix control plane, which documents NeMo Guardrails as an inference gateway plugin. Ask your partner to confirm the release, license terms and support status in writing before design work starts.

What the regulations and evidence require from a RAG assistant

This table maps the logging, retention and testing expectations that apply to a retrieval-augmented assistant to concrete build decisions. Read each row as a requirement, what it means for what you record per retrieval, where those records live and who may read them. The main takeaway is that retrieval events, not only final answers, need to be logged and protected.

RequirementWhat it means for the buildEvidence to keep
Automatic event logging over the system lifetime (EU AI Act Article 12(1))Log every retrieval call with query, user or service identity, timestamp, index version and the chunk identifiers returned, so the logs exist for the whole life of the system.Log schema, sample log extracts and proof that logging stays enabled after upgrades
Retention of logs for at least six months (EU AI Act Article 19(1))Keep retrieval and guard decision logs for at least six months unless other law sets a longer period. Confirm the retention period with legal counsel for your sector.Retention policy, storage configuration and deletion records
Recording blocked and flagged chunksRecord which retrieved chunks a retrieval rail dropped or flagged, with the rule that fired, so reviewers can see when hidden instructions were caught.Rail decision logs linked to the source document ID
Source provenance for citationsStore the document, version and location behind each cited passage so a citation can be traced back to the indexed source and checked.Index manifest and citation-to-source mapping
Access to retrieval logsRestrict read access to security and compliance roles, keep prompts and chunk text out of general engineering dashboards, and record who viewed the logs.Role definitions, access review records and viewer audit trail
Storage location of logs and vectorsKeep log stores, the vector database and the rail configuration inside your own infrastructure, with encryption at rest. Qdrant documents that it cannot run on network or object storage, which affects where its data sits.Architecture diagram, data flow map and storage configuration
Adversarial testing of retrieval railsTest rails against documents that carry hidden instructions, such as instructions in web pages, PDFs, comments and metadata, and retest after every index or policy change.Test plan, seeded test documents, results and retest records
Change control for rails and indexesVersion rail configurations and index contents together, so each logged answer can be tied to the policy and corpus that produced it.Versioned configuration, change tickets and release notes

Where hidden instructions enter a RAG pipeline

A retrieval-augmented assistant reads text from many places, and any of them can carry instructions aimed at the model. Each entry point below needs a different control, and no single control covers all of them.

Uploaded files

Staff and customers upload PDFs, Word files, spreadsheets and slide decks. Hidden text, white-on-white font, comments and metadata can all reach the model once the file is parsed and chunked. Check whether the ingestion step strips comments and hidden layers, and whether a retrieval rail scans each chunk before it enters the prompt. Ask the platform owner which parsers run and where parsed text is stored.

Synced wiki and ticket content

Connectors that sync Confluence pages, SharePoint libraries or Jira tickets index content that many people can edit. An attacker who can write a comment or ticket body can plant an instruction that surfaces weeks later. Limit the sync to named spaces, record who last edited each source, and treat edits by low-trust accounts as untrusted until a review step clears them.

Crawled web pages

Crawlers that fetch public pages or vendor documentation index whatever the server returns, including text visible only to crawlers. A page can address the assistant directly and ask it to reveal earlier context or call a tool. Use a source allowlist for domains, store a copy of each fetched page with its URL and fetch time, and keep the crawler out of internal address ranges.

Email and chat ingestion

Assistants that summarize shared mailboxes or support channels ingest messages from outside the organization. A message can carry an instruction that the model reads as part of the thread. Separate messages from the user's own request in the prompt, mark them as data, and check that output rails block replies that contain links, credentials or instructions copied from the message.

Retrieved chunks at answer time

Even trusted content can carry an instruction after a chunk is retrieved, because the chunk is placed in the same context as the system prompt. Retrieval rails inspect chunks at answer time, and a citation check confirms that each claim points to a retrieved passage. Ask the team which chunks are logged for each answer and whether a blocked chunk is recorded for review.

NeMo Guardrails repository

How a query, retrieved chunks and the model connect through rails

The diagram starts with a user query passing an input rail, then a retriever pulls chunks from a self-hosted Qdrant store. A retrieval rail screens each chunk before it joins the prompt, and the model call goes through an AI gateway. Output rails and citation checks run on the answer, and each step writes to a log. The dashed boundary separates untrusted indexed content from the instruction layer, so check that nothing crosses it without a rail.

Retrieved text is screened by a rail before it can reach the model prompt.

How to separate untrusted content from instructions

Delimiting marks retrieved chunks as quoted material with explicit start and end markers, and tells the model that anything inside those markers is data to summarize or cite, never a command. The technique is cheap and easy to audit because it lives in the prompt template and the application code. It does not change what the model can do, so it relies on the model respecting the label, which strong injections often defeat.

  • What it stops: naive injections such as a web page that says "ignore previous instructions" when the model has been told to treat that span as quoted evidence.
  • What it misses: injections phrased as plausible facts or policy text, and attacks that break out of the delimiter by including the closing marker itself.
  • Implementation detail: escape or strip the delimiter strings from chunks before insertion, and record the chunk ID with each span so citations can be checked later.
  • Operational note: keep the delimiter and instruction text in version-controlled templates reviewed by the security team.
  • What to test: plant documents containing fake closing markers, role-play text and instructions in tables or footnotes, then confirm the answer still reflects the source and the citation points to the right chunk.

Ask the implementation partner to show the exact template and a test log of delimiter-breaking documents before accepting this control as a defense on its own.

Which open-source platforms fit this job and why

Choose each component by the control it must enforce, not by overall popularity. For retrieval rails on chunks, NeMo Guardrails is the library to evaluate first: it is licensed under Apache-2.0, supports five rail types (input, dialog, retrieval, execution and output), requires Python 3.11, 3.12 or 3.13, and can run as a guardrails server built from a provided Dockerfile. Note the status of NVIDIA's NeMo Microservices: NVIDIA's notice says the NeMo microservices container has been sunset and will receive no new releases. Confirm with NVIDIA whether the NeMo Helix control plane, which runs guardrails as an inference gateway plugin, is the supported path for your deployment before you commit to a design.

The retrieval layer and the assistant builder carry their own risks. If you use Dify for the RAG workflow, read its license first: the modified Apache License 2.0 forbids operating a multi-tenant environment from the source code without written authorization, so confirm whether your internal use counts. In Dify's environment settings, check SECRET_KEY handling, the SSRF_PROXY configuration that blocks internal address ranges, and the vector store choice, since Dify can use Qdrant. For Qdrant, treat security as a configuration task: self-deployed instances listen on all interfaces with no authentication by default. Enable admin and read-only API keys, TLS, and JWT-based per-collection read or write permissions, and turn on JSON audit logging, available since v1.17.0, so retrieval activity can be reviewed.

Enforcement belongs at the gateway, so that no application can call a model without passing the rails. LiteLLM supports guardrails, logging and key management for model calls, and Apache APISIX offers an AI gateway under Apache-2.0. Before choosing either, confirm with each vendor how a guardrail callback can inspect retrieved context, not only the user prompt, and whether the gateway can block a response based on a retrieval rail result. Test both choices against your own indirect injection cases before you standardize on one.

Platforms that fit a guarded RAG assistant

A guarded RAG assistant needs a retrieval layer, a generation layer, a vector store and a gateway that enforces policy between them. The platforms below each cover one of those roles, and the checks listed here are the ones to settle before any of them touches untrusted documents.

NeMo Guardrails 0.25.0

NeMo Guardrails provides retrieval rails that inspect chunks before they reach the model, along with jailbreak and injection detection models and execution rails for tool calls. Version 0.25.0 deprecates the LLMRails class in favor of Guardrails, so new configurations should start from the 0.25 migration guide. NVIDIA has also sunset the NeMo Guardrails microservice, so confirm which packaging your team will run and who supports it before you build on it.

NeMo Guardrails docs

RAGFlow retrieval engine

RAGFlow is an Apache-2.0 retrieval-augmented generation engine that handles document parsing, chunking and retrieval. In this pipeline it is the place where untrusted text enters the prompt, so it is where chunk filtering and source tagging must happen. Confirm how it passes chunk metadata, such as document source and author, to the generation step so a rail can use it.

RAGFlow repository

Dify self-hosted workspace

Dify combines RAG pipelines, agents and a visual workflow editor. The community edition is free but limited to a single workspace, and multiple workspaces and SSO require the Enterprise edition. Its license forbids operating a multi-tenant service from the source without authorization, so a shared assistant serving several business units needs that question answered before design. Confirm which edition covers your identity requirements.

Community workspace limit
1
Dify pricing

AnythingLLM document chat

AnythingLLM is an MIT-licensed application that combines document ingestion, workspaces and chat with a local or hosted model. It suits smaller teams that want a single application for document Q&A. Its guardrail options are narrower than a dedicated rail framework, so check whether retrieved content can be filtered before it enters the prompt and whether citations can be verified against the source document.

Latest release
v1.18.0
AnythingLLM repository

Qdrant vector store

Qdrant is an Apache-2.0 vector search engine that stores the embeddings behind retrieval. Self-deployed instances listen on all interfaces with no authentication by default, so API keys, TLS and per-collection JWT permissions must be configured before any indexing starts. It needs block storage with a POSIX file system, not NFS or S3, and production clusters are commonly planned with at least three nodes. Confirm which production path, managed or Helm or operator, fits your support model.

Latest release
v1.19.2
Qdrant security docs

LiteLLM guardrail hooks

LiteLLM is an MIT-licensed AI gateway, except its enterprise directory, that sits between the application and model providers. It can run guardrail hooks on requests and responses, which makes it the natural enforcement point for rails applied to every route. Confirm which guardrail integrations are in the open-source build and which need the enterprise directory, and log blocked requests with the retrieved source IDs.

Latest release
v1.105.1
LiteLLM repository

How a RAG guardrail rollout moves from corpus to enforcement

The sequence starts by deciding which content an assistant may trust, then proves the defenses against hostile documents before anything reaches users. Each phase closes with a written output that the next phase depends on, so enforcement is switched on only after the controls have been tested.

  1. Inventory sources and assign trust levels

    Start by listing every source the assistant can retrieve from: file shares, wikis, ticketing exports, web crawls, uploaded files and any connector that pulls external pages. For each source, record the owner, who can write to it, how content is ingested and whether it can be changed after indexing. Assign a trust level that decides what retrieved text may do, for example whether it can only be quoted or whether it can influence tool calls. The output is a signed source register that the retrieval rails and tool permissions will reference. The step is done when every indexed collection maps to a named owner and a trust level.

  2. Build a red-team document test set

    Create a set of test documents that carry embedded instructions, such as text telling the model to ignore prior rules, reveal system prompts, invent citations or call a tool. Include variants hidden in HTML comments, metadata fields, white-on-white text, tables and PDFs, plus benign documents that look similar so false positives can be measured. Label each test with the expected behavior and the rail that should catch it. The output is a versioned test corpus with expected results, kept separate from production indexes. Ask the implementation partner to explain how the set is refreshed when new attack patterns appear.

  3. Configure retrieval rails and content separation in staging

    In a staging environment, place retrieval rails on the chunks returned by the vector store and configure the prompt so retrieved text is marked as data, not instructions. NeMo Guardrails supports retrieval rails for RAG chunks, which is the natural place to screen or strip instruction-like content before it reaches the model. Restrict what retrieved text may trigger by keeping tool and action execution outside the model's reach of document content. Run the test set against this configuration and record which documents pass through. The output is a staging configuration in version control and a baseline report showing detections and misses.

  4. Add citation checks and output rails

    Add checks that confirm every cited passage exists in the retrieved set and that the answer does not rely on content the user is not permitted to see. Add output rails for data leakage, unsafe content and responses that claim actions were taken when no tool call occurred. Compare the output of each rail against the test set, and review false positives with the business owners of the sources, since blocked legitimate answers erode trust. The output is a tested output rail policy and a citation validation report. Confirm with your own content whether the chosen rails meet your accuracy and latency needs, because those figures depend on your data and hardware.

  5. Enable gateway enforcement and audit logging

    Move the rails from staging to the AI gateway that sits between the application and the model, so no request reaches a model without passing the same controls. Turn on logging of retrieved chunk identifiers, rail decisions, blocked requests and tool calls, and store them in the organization's own infrastructure with access limited to security and compliance staff. Confirm retention with your legal and compliance teams, since the EU AI Act sets minimum log retention for high-risk systems that the organization must assess itself. The output is a production gateway policy and a log schema that auditors can read. The step is done when a test request through the gateway produces a complete decision record.

  6. Retest after every source or model change

    Treat each new source, re-indexing job, embedding model change, model upgrade or rail library release as a change that reruns the full red-team set in staging before production. Compare results with the previous baseline and investigate any document that moved from blocked to allowed. Schedule periodic testing with the partner for new attack techniques, and keep the results with the change record. The output is a retest report attached to each change and a rollback plan if a regression appears. The rollout is only complete when this loop is part of routine change management, not a one-time project event.

Evidence reviewers ask for and which component produces it

This table maps the evidence assessors commonly request for a RAG assistant to the component that generates it. Read each row as a question a reviewer will ask, the artifact that answers it, and the system that must keep producing it after go-live. DeployOpen prepares this evidence, but auditors and certification bodies assess it.

Evidence reviewers ask forComponent that produces itWhat to confirm before go-live
Inventory of indexed sources and ownersDocument pipeline and retrieval index metadata, recorded with each collectionEvery source has a named owner, an approved ingestion path and a removal process for stale or untrusted content
Retrieval rail configuration under version controlNeMo Guardrails configuration files in a Git repository, with change approvalsChanges to retrieval rails go through review, and the deployed version matches the tagged configuration
Red-team results with injected-document casesTest harness run against the assistant, with stored prompts, retrieved chunks and outcomesCases cover instructions hidden in PDFs, web pages and tables, and results are retested after each fix
Blocked-chunk and quarantined-document logsNeMo Guardrails rail decisions, forwarded to the logging stackEach blocked chunk records the rail that fired, the source ID and the time, without storing sensitive text unnecessarily
Citation check resultsOutput rail that compares cited passages with the answer, logged per responseConfirm the check flags answers whose citations do not support the claim and that failures are sampled by a reviewer
Trace of retrieval and generation stepsLangfuse or Phoenix traces linking query, chunks, guard decisions and final answerConfirm trace storage stays in your infrastructure and that prompts and outputs follow your retention rules
Access and permission records for the vector storeQdrant audit logs of authenticated API operations, plus API key and JWT permission configurationConfirm TLS, authentication and per-collection permissions are enabled, since self-deployed instances are not secured by default
Log retention settings and access reviewsGateway logs, tracing store and SIEM retention policies, with periodic review recordsRetention periods agreed with legal and compliance teams, and recurring reviews of who can read logs and traces

Questions buyers ask before hiring help with RAG guardrails

How much effort does RAG guardrail work take, and what drives it?

The effort depends mostly on how many sources feed the assistant, how large and varied the corpus is, and what the assistant is allowed to do with retrieved text. A single internal wiki with read-only answers is a far smaller job than a assistant that pulls from email, ticketing, shared drives and public web pages and can call tools. Other drivers are the latency budget each guard check may add to a request, the number of languages and document formats to handle, and the scope of adversarial testing, from a scripted set of injection payloads to a full red team exercise. Ask any partner to break the estimate into discovery, rail design, integration with your gateway, and testing, and to state which sources and tools are in scope.

Can an internal team build retrieval rails without outside help?

A team with Python experience, access to the RAG stack and time to test can build a working prototype with NeMo Guardrails, which provides retrieval rails for RAG chunks alongside input, dialog, execution and output rails. Production readiness is harder. The team must still separate untrusted content from instructions in the prompt design, verify citations, restrict what tool calls retrieved text can trigger, and prove each control with a repeatable test set. Many teams find that the testing and the operating model are the real gap, not the first rail. Confirm internally who will own policy changes after launch before deciding how much to hand over.

What does the work need from our own staff?

Four inputs matter most. First, source owners for each document system, who can explain what is indexed, who can write to it and which pages are public. Second, a test corpus that includes benign documents and deliberately poisoned ones, so each rail can be measured for blocking and for false positives. Third, logging decisions made with the security and privacy teams, since blocked chunks and prompts may contain sensitive content and must be stored under a retention rule. Fourth, a named owner for policy and rail changes, who approves updates to Colang flows, allowlists and thresholds. Without these, the guardrails work on day one and drift afterward.

How long does a RAG guardrail rollout take in phases?

Rollouts usually move through phases rather than a fixed number of weeks, because each phase depends on decisions outside the build. The first phase inventories sources, tools and data classes and sets the risk list. The second adds retrieval rails and separation of untrusted content, tested against a seeded corpus in a non-production environment. The third connects the controls to the AI gateway, logging and alerting. The fourth runs adversarial testing and retesting, and the fifth moves to production with a review cadence for new sources. Ask for each phase's exit criteria in writing, since those criteria, not the calendar, decide when the next phase starts.

Why is a retrieval rail not enough on its own?

A retrieval rail inspects and filters chunks before they reach the model, but it cannot fully judge intent. Injected instructions can be written in ordinary language, split across chunks, hidden in metadata or encoded in ways a classifier misses. Once any text reaches the model, the model may follow it. For that reason, rails are one layer. Complementary controls include clear delimiters and system instructions that mark retrieved text as data, citation checks that confirm each claim maps to a retrieved passage, least-privilege tool permissions, allowlisted actions that need human approval, and output checks. Test the combined stack, since each layer's failures often hide the others.

How should we handle the NeMo Microservices sunset if we already use it?

Start by confirming which artifact you run. NVIDIA's NGC catalog page for the NeMo Guardrails microservice container says NeMo microservices has been sunset as of October 1, 2026, with no new releases and no continued support, and NVIDIA's archived documentation directs existing users to contact their account team. The open-source library is a different artifact: NeMo Guardrails 0.25.0, published November 19, 2026 under Apache-2.0, requires Python 3.11, 3.12 or 3.13, and deprecates LLMRails in favor of Guardrails, with removal planned no earlier than 0.27.0. Plan a migration to the library or to the NeMo Helix path, and ask any partner to inventory your configurations and test them after the move.

What does DeployOpen's engagement cover for RAG guardrails?

DeployOpen can plan, implement and integrate self-hosted guardrails in your own infrastructure, including retrieval rails, the separation of untrusted content from instructions, citation checks and tool permission limits, and it can harden and document the setup for your compliance and security reviews. DeployOpen also runs security testing of AI systems and agents, including prompt injection testing against your RAG assistant, and delivers a findings report with fixes and a retest. Engagements are usually fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not issue audit reports or certifications. Pricing follows from the written scope.

What to ask an implementation partner before signing

Start with the test method, because it decides whether the rest of the answers mean anything. Ask how the partner builds injected test documents for your corpus: which hidden instructions they plant in PDFs, wiki pages, emails and scraped web pages, how they vary the placement and encoding, and whether they test retrieval rails on chunks as well as the final answer. Ask who writes the test cases, whether they use your own document types, and what evidence each test leaves behind. A partner who cannot describe a test set in specific terms has not run one.

Next, confirm where every control runs. Ask whether NeMo Guardrails or any classifier model used for retrieval rails runs inside your cloud account or data center, and how the partner handles the NeMo Microservices sunset described in NVIDIA's notices, since the current library and its supported deployment path must be confirmed before design. For the vector store, ask how they harden Qdrant before any document is indexed: API keys, TLS, JWT collection permissions, JSON audit logging, and network binding, since the Qdrant security documentation states that self-deployed instances listen on all interfaces without authentication by default. For Dify, ask how they set SECRET_KEY, the SSRF proxy settings and the sandbox network controls, and whether the chosen edition covers the SSO and workspace controls you need.

Ask how source trust levels are recorded. The right answer names a field on each chunk for origin, owner, trust tier and ingestion date, enforced at indexing time, with untrusted web content kept out of any path that can trigger tools. Then ask about logs: which fields the partner records for retrieved chunks and blocked answers, whether chunk text is stored in full or hashed or masked, where those logs sit, and what retention period they set against your own policy and any duties you carry. Confirm that retention settings are written down, that deletion of an indexed document also removes its chunks from logs and caches where required, and that logs meet the record-keeping expectations you have agreed with your compliance team.

Finally, settle what happens after launch and what you hold in writing. Ask whether the partner will retest after corpus changes, model or library upgrades, and new Dify releases, and what triggers a retest. Ask for the scope, the test plan, the list of injection cases, the hardening baseline, the retention settings and the acceptance criteria in a signed document before work starts. Red flags include any promise that injection is fully prevented, a refusal to show failed test results, no plan for retesting, and vague answers on where classifier models and logs live. Treat a guarantee of complete prevention as a reason to walk away.

What your team needs to provide before work starts

This sequence turns a general wish for a safer RAG assistant into a written input pack that the implementation team can scope, test and build against. Each step names the material to collect, who owns it, and the check that confirms it is ready before design begins.

  1. Inventory every document source

    List each place the assistant will read from, including file shares, wikis, ticketing tools, email archives, intranet pages and any public web pages the assistant may fetch. For each source, record the system name, the content types, who can edit the content and whether external parties can contribute to it. Your architecture lead or knowledge manager should own this list. It is done when every source has a named system owner and a stated editing audience, because untrusted editors are the main path for indirect prompt injection.

  2. Assign an owner to each corpus

    Name one accountable business owner and one technical contact for each corpus the assistant will index. The owner decides what content is approved for retrieval, how long it stays indexed and who may request removal. The technical contact confirms ingestion paths and update schedules. The output is a signed corpus register. It is done when every corpus has both owners and a documented rule for who can add or change content.

  3. Provide representative sample documents

    Supply a sample set from each corpus that includes ordinary content, scanned or unusual formats, long documents, and any content already known to contain odd instructions, such as embedded comments, hidden text or pasted prompts. Security testers use these samples to build test cases for retrieval rails and to measure false positives on normal business text. The sample set should be stored in your environment or shared through an agreed channel. It is done when the samples are approved for use in testing and the owners confirm they contain no regulated personal data beyond what your policy allows.

  4. Define the access model for the assistant

    Document who will use the assistant, which groups can query which corpora, and whether the assistant should act on the user's own permissions or on a service account. Include how your identity provider will authenticate users and how group membership maps to document access. Identity and access architects should own this. It is done when each corpus has a stated access rule, and the team can show how retrieved chunks inherit those permissions. Retrieval rails cannot compensate for a document the user was never allowed to read.

  5. Set logging and retention requirements

    Record what must be logged for each request, such as the prompt, retrieved chunk identifiers, citations shown, guard decisions and blocked content, and how long each category is kept. Compliance and privacy leads should set these rules, since logs of retrieved text can themselves contain sensitive data. If you operate in the EU, check the record-keeping duties in Article 12 and the six-month minimum retention in Article 19 of the AI Act against your own legal advice. It is done when a retention schedule and access rule for logs are approved in writing.

  6. List the model endpoints in use

    Identify every language model the assistant will call, whether hosted by a provider or self-hosted with a serving engine, and the embedding model used for indexing. For each endpoint, record the location, the data processing terms and the request format. Platform engineers should own this list. It is done when each endpoint is listed with its hosting location and approval status, so the guard design can decide where classifier models must run.

  7. Confirm the vector store and platform choices

    Record which vector database, orchestration platform and gateway the assistant is expected to use, or state that these choices are still open. Note the storage, network and authentication settings you require, including whether the store must run on block storage and whether administrative access is restricted. Ask your platform team to confirm the current configuration options with each vendor, since capabilities differ by version. It is done when the team has a written list of confirmed components and any open items with named owners.

  8. Agree the test and evidence scope

    Confirm which teams will review results, which findings must be fixed before launch and what evidence your risk, audit or customer security reviews will ask for. Decide whether the test will include a retest after fixes. The security lead signs off on this scope. It is done when the acceptance criteria, reviewers and evidence list are agreed in writing, so the implementation partner can draft a fixed-scope proposal from the same inputs.

How DeployOpen scopes, builds and supports RAG guardrails

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and runs security testing on AI systems and agents. For retrieval-augmented assistants, we start by mapping where untrusted documents and web pages enter the retrieval path, then build and test the controls that limit what that text can make the model do.

How we scope

  • We map every source the assistant indexes, including file shares, wikis, ticket exports and crawled web pages, and mark which ones accept content from outside the organization.
  • We list the tools, connectors and actions the assistant can reach after retrieval, so each one can be reviewed for what a hidden instruction could trigger.
  • We agree a written, fixed scope covering the retrieval rails, citation checks, test cases, deliverables and timelines before any work starts.

How we build

  • We configure retrieval rails on chunks with NeMo Guardrails or a comparable validator layer, and enforce the policy at the gateway so retrieved text cannot bypass it.
  • We separate retrieved content from system instructions in the prompt structure and restrict which tool calls retrieved text is allowed to influence.
  • We test with indirect prompt injection cases planted in sample documents and pages, then check citations against the chunks the model actually used.

How we hand over

  • We document the rail configuration, the policy versions, the test cases with results, and the logging of blocked and flagged retrieval events.
  • We walk the client's security and platform teams through the architecture, the known limits of detection and the owner for each rule.
  • We deliver a findings report with fixes and a retest, so the client can show reviewers what was tested and what changed.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so rails and test suites keep pace with new document sources and framework releases.
  • We rerun the indirect prompt injection test suite after changes to indexed sources, models, prompts or rail configuration.
  • We help the client prepare evidence for compliance reviews, such as test records, configuration history and logs, while independent auditors make the assessment.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.