Devox Software helped a U.S. wealth management firm build a secure RAG system for working with sensitive financial data while preserving access controls and source traceability.
About the client
A U.S.-based mid-market wealth management company engaged Devox Software on a long-term project to develop a RAG system that could surface relevant information from sensitive financial documents while respecting user permissions and keeping answers traceable to their sources.
Background:
The client’s teams relied on a growing body of financial documents and internal knowledge to support day-to-day client work. Finding the right information often meant navigating multiple sources, checking document relevance, and confirming that the material was still current. In wealth management, finding an answer is only part of the job. The information also has to be current, attributable to the right source, and accessible to the person asking.
The Trigger:
For years, the workaround worked.
If a document took twenty minutes to find, that was simply the cost of being careful. In wealth management, accuracy, permissions, and source validation came before retrieval speed.
But then two things happened at once.
The body of documents kept growing, faster than the team could organize it. And the client work kept growing with it. The same people hired to advise clients spent more and more of their day acting as human search engines: locating files, checking which version was current, confirming permissions, cross-referencing sources. Valuable people. Doing work that added no value.
The pressure showed up in everyday work. The question “where is that document?” was consuming time that should have gone to “what advice should we give?”
And just as the firm started exploring generative AI as an answer, it hit a second wall, one that would define the entire project.
A conventional AI assistant would introduce a new access path to sensitive financial information. Every document chunk sent to the LLM had to pass the same access controls as the source material. Access rights differed from user to user. An answer exposed to the wrong user or detached from its source would create a security and compliance risk.
Could the firm make its knowledge instantly accessible while preserving the controls already protecting it?
That question became the starting point for a secure RAG system that retrieves authorized information, preserves document provenance, and keeps every generated answer connected to its source.
The Solution:
Microsoft Entra ID supplied the user identity and group membership. FastAPI handled authenticated requests and passed the user’s access context into the retrieval layer. PostgreSQL stored document metadata and access attributes, while pgvector handled semantic retrieval over document embeddings. Azure OpenAI generated embeddings and responses. LangChain coordinated the retrieval and generation flow.
Permission filtering happened before retrieved content entered the prompt.
The Outcomes:
Conclusion:
For this wealth management firm, faster retrieval was only one outcome. The deeper result was a RAG architecture in which identity, permissions, document versions, and provenance remain part of the query path from retrieval through generation.
The firm can now use generative AI over sensitive knowledge while keeping access enforcement and source verification inside the architecture itself.
If your teams need AI access to sensitive documents, we can build a RAG system that applies your existing permissions before any content reaches the model.
Tell us where your system needs help — we’ll show you how to move forward with clarity and speed. From architecture to launch — we’re your engineering partner.
Book your free consultation. We’ll help you move faster, and smarter.
Share the details of your project – like scope or business challenges. Our team will carefully study them and then we’ll figure out the next move together.
We appreciate you reaching out. Your message has been received, and a member of our team will get back to you within 24 hours.
In the meantime, feel free to follow our social.
Welcome to the Devox Software community! We're excited to have you on board. You'll now receive the latest industry insights, company news, and exclusive updates straight to your inbox.