VOOZH about

URL: https://thenewstack.io/beyond-prompt-engineering-governing-prompts-and-ai-models/

⇱ Beyond Prompt Engineering: Governing Prompts and AI Models - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-11-27 11:48:01
Beyond Prompt Engineering: Governing Prompts and AI Models
AI / Large Language Models

Beyond Prompt Engineering: Governing Prompts and AI Models

Data access governance and security solution plugs directly into advanced machine learning libraries to govern language model interactions.
Nov 27th, 2023 11:48am by Jelani Harper
👁 Featued image for: Beyond Prompt Engineering: Governing Prompts and AI Models
Image via Unsplash.

The practical realities of securing the language models supporting textual applications of generative artificial intelligence are formidable. In addition to implementing, fine-tuning, and prompt engineering these models to yield optimal results, savvy organizations are struggling to govern their interactions with users to preserve data privacy, regulatory compliance, and data security protocols.

Anonymizing and securing data while confining models to internal sources, via constructs like Retrieval-Augmented Generation (RAG), is only half the problem. The larger concern is the ability to govern not only what information users insert in prompts when deploying those models, but also the responses the models elicit. Numerous other factors, including the amount of language models organizations use, the range of applications they support, and the real-time nature in which employees or customers interact with them, seemingly confound traditional governance efforts.

However, with an artful combination of centralized data security governance administered through a decentralized framework inside sources, users can achieve remarkable results while adhering to privacy, compliance, and access control mandates.

According to Piet Loubser, Privacera SVP of marketing, contemporary solutions “declare you will have a library of all your applications and the derivative models underneath that. We can know all the policies that are created upon them, and then we will start tracking all of the interactions and behaviors that you find for the users.”

Moreover, when the governance system detects abuses of privileges, policy violations, and inappropriate content in prompts or model responses, it can modify them — in real-time — to uphold the governance rules that organizations have specified.

Foundation Model Library Governance

The crux of governing user prompts and model outputs across a diversity of foundation models for any number of enterprise applications is the capacity to embed governance tooling within model libraries. From an architectural perspective, organizations might have an array of chatbots, similarity search mechanisms, or other such textual deployments of generative AI accessed by a distributed user base. However, they’ll “utilize LangChain, or [Amazon] Bedrock, or whatever of the other open libraries that connect the chatbot to the backend model,” Loubser stipulated. Users can insert a Privacera agent into their foundation model application development framework of choice (including resources like OpenAI) to propel its data security governance capabilities into that system.

Subsequently, “whatever the prompt is that gets typed in, [meaning] the question, there is an agent in the backend that basically comes to us and says is this okay or not, and is there some treatment that needs to go in,” Loubser revealed. “We literally do a quick peak at the prompt, and the same happens on the way out.” Depending on what policies users have in place, sensitive or regulatory-applicable data can be masked or redacted. It’s also possible to have models deny a request.

Unstructured Text Scanning

Implicit to this paradigm is the ability of the underlying governance system to scan the natural language prompts and language model outputs, and evaluate them for policy violations. Organizations are still responsible for creating policies about how to govern their data, but the enforcement is predicated on the natural language capabilities of the governance engine to understand these unstructured text exchanges. Central to this endeavor is a “pretty sophisticated engine around that, that connects the policy with what we are scanning and identifying from the patterns in the text, as well as the context of whatever questions and prompts you had before,” Loubser added. There’s also a degree of contextual understanding that’s necessary for governing user interactions with language models.

While role-based access controls (RBAC) or attribute-based access controls (ABAC) may be involved in the policy enforcement process, the engine must contextualize the results of what it scans and apply it to the policy and the particular access request. Loubser referenced a hypothetical use case in which credit bureau employees might ask an intelligent chatbot for a customer’s contact information. “If I’m in customer success, I can say what is Kimberley’s cell phone number, and I can get that information,” Loubser commented. “As a marketer, you can ask that question but it’s like sorry, you can’t see it because it’s not in your database. PII isn’t appropriate and the system needs to tell you that.”

Real-Time Applicability

It’s imperative that the engine scanning language model prompts and the ensuing responses operate with low latency. Inordinate delays could result in a lack of adoption and squandered Generative AI investments. According to Loubser, Privacera can scan prompts, summarizations of texts, and other outputs of models “in real-time without any system overhead.” What there are notable limitations for, however, is the scale of the unstructured text the engine can parse. “In this context, you’re not throwing it like four terabytes of a prompt and deciphering it in real-time and doing something about it,” Loubser mentioned. “That’s not the way this works. It’s typically questions, answers, questions, answers, in small snippets. Like, a couple [of] hundred characters.”

The engine responsible for such operations typically harvests metadata in data catalog and data governance solutions. The key is applying it to fully unstructured textual data — as opposed to semi-structured data — and how much context it gleans. In this respect, the engine can evaluate model outputs and incoming prompts according to hundreds of pre-built expressions the solution will “identify based on contextualizing what we see within the question,” Loubser explained. “It will try to identify that you’re talking about a person. It will identify whether you’re asking a question about PII or a social security number.”

Reverberating Effects 

The overall significance of Privacera’s governance capabilities for language models is multifaceted. The solution centralizes secure access controls for the entire gamut of models that organizations might need by embedding itself within application development frameworks that models connect to.

Moreover, it utilizes its own understanding of unstructured text to gauge the context of prompts and model outputs, evaluate them according to policies and classifications, and implement controls in real-time to preserve governance conventions. The result reduces the risk of implementing the most in-demand technology of our time while further broadening its utility to make it more suitable for a wider array of use cases.

TRENDING STORIES
Jelani Harper has worked as a research analyst, research lead, information technology editorial consultant, and journalist for over 10 years. During that time he has helped myriad vendors and publications in the data management space strategize, develop, compose, and place...
Read more from Jelani Harper
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Real, OpenAI.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.