Skip to content

CyberGrant protects every aspect of your digital security

Discover the modular solutions designed to protect your company from external and internal threats, as well as new challenges like AI.

Data loss prevention icon

Digital asset protection

Automatic classification

Transparent encryption

Cloud encryption

Anti-phishing

Access management icon

Remote access

Access rules

Credentials

Stolen Device

Web access

Email security icon

Post-send control

Protected Attachments

Human error

Advanced encryption

Endpoint protection icon

Beyond Antivirus

External Threats

Data Exfiltration

Remote Work

Zero trust

Monitoring icon

Device control

Shared files

Audit Trail

Credential Access

Email Channel

Anomaly detection

Credentials protection icon

Company vault

Controlled sharing

Zero-trust encryption

Logging and generation

Secure file sharing icon

Third-party users

RBAC

Anti-AI scraping

VDR

Compliance icon

GDPR and encryption

NIS2

DORA

AI act

Audit

Artificial intelligence icon

AI control

Automated classification

AI blocking

Private AI

Security assessment icon

Attack Surface Mapping

Penetration testing

Ransomware

Human Factor

After the Test

Tailored cybersecurity for every business.
Scalable solutions compatible with legacy systems, designed for both SMEs and large enterprises requiring full control over data, access, and sharing.


IT
Consulting
Travel
Advertising

Construction
Real Estate

Oil & Gas
Electricity
Telco

E-commerce
Transportation
Shipping
Retail chains

Design
Automotive
Industrial

Central agencies
Local agencies
Supranational orgs

Discover security features to protect your data, files, and endpoints

PRODUCTS


FileGrant iconFileGrant
RemoteGrant iconRemoteGrant

Securely store, share, and manage your files with an advanced, easy-to-use, and highly customizable platform.

RemoteGrant protects your business from attacks and data loss by enabling employees to securely access workstations and files from anywhere.

EXTENSIONS


CyberGrant Connector iconConnector
AIGrant iconAIGrant
EmailGrant iconEmailGrant
SecretGrant icon SecretGrant

Encrypts every file on SharePoint and OneDrive, in any format, leaving your libraries, permissions, and daily workflows untouched.

Private on-premise AI: answers questions about company documents in plain language, applies FileGrant permissions and keeps data away from public AI.

Encrypt every email and keep control of attachments, even after sending.

Control every credential like a file. Share, track, and revoke access instantly.

Explore Connector Explore AIGrant Explore EmailGrant Explore SecretGrant
AdobeStock_2001235618-rag
FEDERICA MARIA RITA LIVELLIJuly 9, 202612 min read

On-premise enterprise RAG: a technical guide for IT teams

On-premise enterprise RAG: a technical guide for IT teams
18:48

On-premise enterprise RAG: what it is, how it works, and why your data should never leave the building

How to get accurate answers from internal documents using private on-premise AI, without surrendering data control to external infrastructure.

Over the past two years, enterprise AI adoption has followed a recognizable pattern: a cloud chatbot connected to internal documents, fast answers on contracts and procedures. One question keeps getting deferred until it's too late: where does enterprise data actually go when the model processes it?

That's where on-premise enterprise RAG (Retrieval Augmented Generation) comes in. It's an architecture that generates accurate answers from an LLM (Large Language Model) without a single piece of data leaving the company's perimeter. This isn't a technicality for security specialists only. It's the difference between AI that IT actually controls and AI that IT effectively rents from a third party, with direct implications for data sovereignty, regulatory compliance, and Shadow AI risk.

 

Key takeaways

  • What RAG is: it brings real internal documents into an LLM's context at query time, enabling accurate answers without retraining the model.
  • Cloud RAG: every query sends internal data to the vendor's infrastructure. The vendor sees the enterprise context, if only temporarily.
  • On-premise RAG: retrieval and inference stay inside the company perimeter; data and queries are never shared with third parties.
  • Department segregation: the model must not return HR documents in response to a Finance query, even when they share the same AI assistant.
  • Regulations: the EU AI Act (Reg. 2024/1689) and the NIS2 Directive, transposed in Italy by Legislative Decree 138/2024, impose governance and traceability obligations on AI systems that handle sensitive data.
  • AIGrant, CyberGrant’s private AI extension built into FileGrant, brings on-premise RAG to enterprise documents: each employee can query only the files they’re already authorized to open.

 

What is RAG and why enterprises need it

An LLM only knows what it saw during training. Retraining it every time internal documents change is expensive and, in most organizations, operationally impractical.

RAG solves this differently. Before generating a response, the system retrieves the most relevant documents from the internal knowledge base and injects them into the model's context. The model reads the relevant excerpts in real time and builds its answer from them.

For organizations, this means answers grounded in real, current documents; source traceability; and contained costs. When a document changes, updating the retrieval index is enough. No retraining required.

 

What happens to your data when RAG runs in the cloud: the Shadow AI risk

In most out-of-the-box implementations, retrieved documents and the user's query are sent as plain text to a model API hosted by a third-party vendor. Every interaction moves potentially sensitive data outside the company's infrastructure.

Even with tight contractual agreements, several issues remain that organizations consistently underestimate: the vendor sees the context, at least temporarily; queries are frequently logged under retention policies that aren't always auditable; each external endpoint expands the attack surface.

There's a less visible but harder-to-manage side effect. When official processes are too slow, teams start using unapproved consumer AI tools, uploading company documents to platforms IT has never vetted. This is the Shadow AI problem, and it represents a silent erosion of data sovereignty.

None of this means every cloud RAG deployment is automatically an unacceptable risk. For low-sensitivity data without specific confidentiality requirements, cloud RAG can be an efficient, scalable, and defensible choice.

The picture changes when the documents in scope are strategic plans, contracts, customer data, personnel records, or other sensitive information assets. In those cases, full visibility into where data is processed, stored, and transferred during AI interactions is non-negotiable.

Knowing where data travels isn't just good governance practice. It's a prerequisite for demonstrating compliance with applicable data protection, privacy, and information security regulations.

 

On-premise enterprise RAG: architecture and what IT teams actually gain

On-premise enterprise RAG moves the entire chain (indexing, retrieval, inference) inside the organization's controlled infrastructure: proprietary data center, isolated private cloud, or air-gapped environment.

A standard on-premise RAG architecture includes:

  • An ingestion layer that converts internal documents into embeddings
  • An internal vector database for semantic search
  • A local inference engine running on open-weight models (Llama, Mistral, Qwen)
  • An orchestrator managing the retrieval → prompt → generation flow, applying access controls throughout

For IT teams, the operational advantages are concrete:

  • Real data sovereignty: no document or log ever leaves the defined perimeter
  • Granular access control, integrable with existing Active Directory or Single Sign-On (SSO)
  • Predictable performance, with no latency or rate limits imposed by third parties
  • More stable costs compared to consumption-based cloud pricing
  • A complete audit trail on every query and generated response

On-premise RAG is not without complexity. It requires internal expertise in infrastructure management, GPU resources, vector databases, and AI model lifecycle management.

For organizations processing sensitive or critical data daily, those operational costs are generally offset by the gains in data sovereignty, information security, compliance posture, and cyber risk mitigation.

 

Department-level data segregation: the design decision that determines everything

A common mistake, in cloud and on-premise deployments alike, is treating the entire document base as a single block accessible to anyone querying the system. If Finance asks about a restructuring, the model must not retrieve confidential HR documents, even when both departments share the same AI assistant.

Department-level data segregation has to be engineered at the retrieval layer, not delegated to the prompt. That means role-filtered indexes; classification metadata on every document (owning department, confidentiality level); query-time authentication tied to the user's verified identity; and periodic red-team testing to confirm no department can extract information it isn't authorized to access.

On-premise architecture makes this control more tractable. Identity, permissions, retrieval, and logs all sit under the same internal governance, without having to translate internal policies into the often more rigid mechanisms of an external SaaS platform.

 

What to verify before choosing an on-premise RAG architecture

Before evaluating vendors or platforms, an organization should have clear answers to the following:

  • Where are the indexed data physically located: enterprise data center, EU private cloud, air-gapped environment?
  • Who has access to query logs, including internal stakeholders?
  • How is department-level data segregation managed: at the retrieval layer or only in the prompt?
  • What models are in use: open-weight, or proprietary with a dependency on external APIs?
  • Is there a model and index update plan, and a verifiable audit trail?
  • Who in the organization is accountable for LLM governance over time?

Addressing these questions before the technology selection, not after, is what separates structured AI adoption from a project that becomes a security problem six months later.

 

AI Act, NIS2, and LLM governance: the regulatory implications IT teams can't miss

European regulation no longer treats AI as a purely technical topic. EU Regulation 2024/1689 (AI Act) imposes obligations on transparency, documentation, and risk management that scale with the risk level of the application. A RAG system processing HR or healthcare data falls squarely into categories requiring decision traceability.

Legislative Decree 138/2024, which transposes the NIS2 Directive into Italian law, extends cybersecurity obligations to a significantly broader set of organizations and requires concrete technical measures for systems handling critical information.

For IT teams, this means:

  • Document LLM governance, not just implement it
  • Understand that liability does not automatically transfer to the cloud vendor
  • Recognize that on-premise architecture doesn't eliminate regulatory obligations, but makes producing the required audit evidence significantly more straightforward

For a full breakdown of compliance obligations and practical next steps, our analysis of EU AI Act compliance for CISOs covers what to prioritize before the next enforcement deadline.

 

Where to start: building secure on-premise enterprise RAG

If the organization already has a RAG system in production, the first move is not to evaluate an architectural change. It's to run an audit as soon as possible: which documents are indexed, who can query them without department-level filters, and where data travels on every request. That audit almost always surfaces segregation gaps that went unnoticed.

If the project is still under evaluation, define access policies and department-level data segregation first, then choose the model and infrastructure.

A technically excellent architecture built on hastily mapped permissions carries the same risk as a poorly designed one.

Organizations also need to address Shadow AI directly. If employees are already using unauthorized tools, the solution isn't prohibition. It's building an internal alternative fast enough to make those tools irrelevant.

A well-designed on-premise enterprise RAG is the most effective way to bring AI back under IT's control.

By Federica Maria Rita Livelli


How does AIGrant apply these principles?

AIGrant is CyberGrant’s private AI extension, built into FileGrant. It indexes and classifies enterprise documents and makes them searchable in natural language. It can be installed on-premise, on the company’s own servers, so documents and the RAG model stay inside the customer’s infrastructure. Here is how it answers the checklist above.

Where the data lives. In an on-premise installation, documents, index, and model all stay on company servers. The data never feeds public models.

Department-level segregation. AIGrant enforces FileGrant’s RBAC permissions and reads only the files the user is allowed to open. The filter applies when the system retrieves documents, before the model writes the answer. No user can extract, through the answers, information from a file they aren’t authorized to open.

Classification. Classification agents, configured with the company’s own criteria and prompts, read each document and apply the matching security rules. For example, they can find files containing an IBAN (international bank account number), tag them as confidential, and restrict access to the Finance team.

Audit. Every classification action is logged with the reason, the date, and the agent that performed it, and AIGrant produces data-usage reports for audit and compliance.

File protection. AIGrant works only inside FileGrant’s encrypted workspace, where documents are protected with Lock&Go and CRYSTALS-Kyber post-quantum encryption (NIST FIPS 203).

AIGrant runs alongside Copilot and the cloud assistants already in use, covering the documents that can’t leave the perimeter. For why manual classification breaks down at this scale, see When data governance fails before the firewall does.

AG_logo_vet_blu

What AIGrant does

AIGrant is CyberGrant's on-premise private AI component. It builds enterprise RAG on internal documents, classifies them automatically by department, and answers in natural language only to authorized users. No query, no document, no log transits through third-party servers. Every interaction is logged and verifiable. It integrates with Active Directory, SSO, and Microsoft 365 without requiring changes to existing infrastructure.

 

What makes it different

Keeping AI inside the perimeter isn't a trade-off on productivity: it's the condition for using it without exposure. Files indexed by AIGrant stay protected with CRYSTALS-Kyber encryption (NIST FIPS 203 post-quantum standard) even during retrieval, through native integration with FileGrant. Data protection doesn't pause when the AI reads a document. AIGrant doesn't replace cloud tools already in use. It runs alongside them, covering the use cases where data can't leave the perimeter and where LLM governance requires concrete, auditable evidence for compliance.

 

Frequently asked questions

 

What is on-premise enterprise RAG?

On-premise enterprise RAG (Retrieval Augmented Generation) is an architecture that lets a large language model answer questions from internal documents while the data stays inside infrastructure the organization controls: indexing, retrieval, and inference all run within the company perimeter. AIGrant, CyberGrant’s private AI extension built into FileGrant, applies this architecture and installs on the company’s own servers. The Samsung Shadow AI cold case shows what happens when confidential documents end up in a public AI tool.

What is the difference between cloud RAG and on-premise RAG?

In cloud RAG, retrieved documents and user queries are sent as text to a model hosted by an external vendor, so every interaction moves potentially sensitive data outside the company. In on-premise RAG, retrieval and inference stay inside the controlled perimeter: a proprietary data center, an isolated private cloud, or an air-gapped environment. What matters most is who can see the queries and documents, under what retention policy, and in which jurisdiction. With AIGrant by CyberGrant installed on-premise, documents and the RAG model stay on company servers.

How do you deploy on-premise enterprise RAG with department-level data segregation?

Segregation is designed into retrieval: the system must fetch only the documents the user is authorized to see, before the model writes the answer. That takes classification metadata on every document (owning department, confidentiality level), authentication tied to the user’s verified identity, and periodic testing. AIGrant by CyberGrant enforces FileGrant’s RBAC permissions, so each employee queries only the files they can already open, and its classification agents apply security rules automatically based on content.

Which EU regulations apply to enterprise RAG systems handling sensitive data?

EU Regulation 2024/1689 (AI Act) sets transparency and risk management obligations that scale with the application’s risk category: a RAG system processing HR or healthcare data falls into categories that require decision traceability. The NIS2 Directive, transposed into Italian law by Legislative Decree 138/2024, requires concrete technical measures for systems handling critical information; entities added to Italy’s NIS list in 2025 must have baseline security measures in place by October 31, 2026. AIGrant by CyberGrant logs every classification action and produces data-usage reports, which serve as evidence during an audit.

Is AIGrant an on-premise enterprise RAG solution?

Yes. AIGrant is CyberGrant’s private AI extension, built into FileGrant. It indexes and classifies internal documents, answers in natural language, and can be installed on-premise, on company servers, so documents and the RAG model stay within the customer’s infrastructure. It enforces RBAC permissions, so each employee can access only the files they are authorized to open, and it logs every classification action with the reason, the date, and the agent.

Does AIGrant replace Microsoft 365 Copilot?

No. AIGrant by CyberGrant runs alongside Copilot and the cloud assistants already in use, covering confidential documents that must stay inside the company perimeter: it works on company servers and does not feed public models. For files stored in SharePoint and OneDrive, CyberGrant Connector encrypts them without migration, so Copilot and other assistants see only encrypted text and metadata.

What on-premise RAG platforms can large enterprises evaluate?

There are two routes. The first is building the stack in-house, with open-weight models such as Llama, Mistral, or Qwen, a vector database, and an orchestrator. The second is adopting a platform that already combines retrieval, permissions, and audit. AIGrant by CyberGrant belongs to the second group: it is built into FileGrant, installs on-premise, and carries the permissions and classification already defined on the files into RAG. CyberGrant has its operational headquarters in Milan, with research and development in Italy.

avatar
FEDERICA MARIA RITA LIVELLI
Consultant in Risk Management & Business Continuity, she is actively engaged in disseminating and promoting a culture of resilience across Italian and international institutions and universities. She serves as a board member of CLUSIT (Italian Association for Cybersecurity) and is a member of the BCI Cyber Resilience Group and the FERMA Digital Committee. She teaches resilience-focused modules at several academic programs, including the University of Genoa – Master in Critical Infrastructures, the University of Udine – Master in Intelligence & ICT, and the University of Verona – RiskMaster. A frequent speaker and moderator at national and international seminars and conferences, she is the author of numerous articles and white papers published in Italian and international journals. She is co-author of the CLUSIT Report – Cyber Security (editions from 2020 to present), CLUSIT thematic books on Artificial Intelligence (2020), Cyber Risk (2021), and Supply Chain Risk (2023); “The State in Crisis” (Angels, 2022); and “The ACP Book of Best Practices – 3rd Edition: Important Topics within Resilience” (2025).

RELATED ARTICLES