mobileRumblefishLogo
Menu
desktopRumblefishLogo
Services
Products
Case studies Careers
Blog
About us
Custom AI Assistant DevelopmentAI Chatbot for The Legal Industry
Collaboration timeframe:2 months
Tech stack:
OpenAI GPT-4 API OpenAI GPT-3.5 API Langchain PostgreSQL Qdrant AWS
Services:AI Chat Assistant Development, AWS Cloud Solutions
Team size:1 software developer
ai-chat-assistantCaseStudyWideImage
About AI Chat Assistant
About the customer

Our customer was a US-based legal startup looking for a way to access the information stored within their internal database in a contextual, appropriate way using an LLM. They wanted to develop a specialized AI chat assistant tailored to the unique challenges of the legal industry, including high-fidelity responses and industry-compliant interactions.

About the project

The main objective was to create an AI chat assistant to engage in intelligent conversations with legal documents stored in our customer’s internal databases. The goal was to streamline document analysis and enhance legal discourse efficiency.

The challenge

Our customer was a law firm looking for a way to access the information stored within their internal database in a contextual, swift manner. Eager to harness the power of artificial intelligence, they approached us to develop a specialized AI chat assistant tailored to the unique challenges of the legal industry.

The solution

After the initial analysis and proof-of-concept phase, we identified a couple of challenges to be mindful of. Firstly, the customer stored their documents in multiple formats in cloud storage services like Dropbox so there was no single point of truth. Secondly, the documents in the internal database were confidential so data privacy and anonymity were the highest priority. Last but not least, we were dealing with cutting-edge technology in the field of law so we had to deliver a 100% stable and safe environment for the AI chat assistant users.


In order to tackle the challenges properly we started with a thorough analysis of the documents and information stored by our customer. The first step was unifying scattered documents into a singular vector database from various cloud drives. Consolidating all legal records into a dedicated AWS S3 Bucket, we seamlessly chopped those big files and other documents into chunks and embedded them in vector format using the OpenAI text-embedding-ada002 model. We then leveraged Qdrant's vector database, empowering our AI chat assistant with semantic search capabilities.

 

With the database transformed, we moved forward to the next step which was the application of an innovative concept known as RAG (Retrieval-Augmented Generation). It combines pre-trained AI language models like GPT-4 with information retrieved from an external knowledge base (like the legal document stored by the customer). It significantly improves conversational AI responses by retrieving information relevant to a specific context of questions asked by end-users. It was a great tool for our proof of concept but was ill-suited for the production phase as RAG has not yet reached the production-ready status. That’s when we switched to the OpenAI library.
To facilitate effective search functionalities within legal documents, we incorporated the Qdrant vector database, designed to bolster semantic search and guarantee accurate and contextually aware information retrieval. For the secure storage and management of user interactions and conversation history, we opted for PostgreSQL as our chosen database solution

The foundation of our system rested on embedding legal documents, and for this task, we utilized the text-embedding-ada002 model provided by OpenAI. Additionally, we integrated the GPT-3.5 and GPT-4 models as our primary Language Models (LLM) to generate responses and engage in effective legal discourse. In upholding a secure and compliant setting, our team deployed OpenAI's moderation endpoint to guarantee adherence to OpenAI's policies. Prioritizing data privacy and anonymization, we employed AWS cloud services to protect user information and interactions. As a result, we designed and implemented a custom AI chat assistant able to answer legal questions in a contextual, swift, and secure manner.

Customer's testimonial
Mitchell Maddox_TestimonialAvatar
Rumble Fish’s execution of the innovative AI chat assistant, seamlessly integrating advanced models and database solutions, has significantly enhanced the document analysis and legal discourse efficiency. Their commitment to data privacy and compliance underscores their professionalism and has truly set them apart in delivering tailored solutions based on the cutting-edge technologies.
Mitchell MaddoxCEO of Woodland Russel
Mitchell Maddox_TestimonialAvatar
Check our case studies
More recent projectBuilding the Most User-Friendly Crypto Wallet with EIP-4337lastCaseStudyBanner
Previous projectDeveloping a daily affirmation mobile app in React NativelastCaseStudyBanner
Have an idea?
Let’s work
together!
We will answer any questions you may have related to your startup journey!Do you prefer e-mail?
hello@rumblefish.pl
AnimatedLogoTextImageAnimatedLogoFishesImage
RUMBLEFISH POLAND SP Z O.O.Filipa Eisenberga 11/3 31-523 Kraków, Polska
NIP: 6772425725REGON: 368368380KRS: 0000696628
P: +48 601 265 364E: hello@rumblefish.dev
Copyright © 2025 Rumblefish