Case study

AI Assistant for Contracts Intelligence and Analysis

Building an AI assistant to analyze contract interconnections and augment it with market data

Ai Assistant For Contracts Analysis

Client

Technology Company
(NDA protected), USA

Project Duration

2+ months

Client Challenge

The Client required an advanced AI assistant for their application. The goal was to create a tool that would allow users to answer complex questions about the relationships between contracts and forecast prices, and market trends.

A key technical challenge was the use of a particular LLM model, which lacks native support in standard cloud services like AWS Bedrock, necessitating the development of a custom architectural solution.

Service Process

Service Process

The project was carried out iteratively, allowing for flexible adaptation to requirements and systematic value creation. The development process consisted of several key stages:

  1. Proof of Concept (POC): The first step was to create a proof of concept where the LLM model was connected to a PostgreSQL database on AWS. For security reasons, connecting to the non-public database required the use of a jumphost.
  2. Context Enrichment: To increase the model's precision and scope of responses, additional data sources were added, including JSON and PDF documents, providing the AI with a broader context for analysis.
  3. Implementation of Testing and Monitoring: Early on, a parallel testing environment based on AWS Bedrock was implemented. This allowed for ongoing comparison of the performance and quality of responses from both models. Monitoring was also implemented to track query flow and token consumption.
  4. Interactive Client Testing: To facilitate client testing and feedback collection, a simple, password-protected user interface (UI) was developed.

The project is currently in its final phase, which includes exposing the FastAPI interface and integrating it with the target application in the development environment.

Project Results

An advanced AI assistant that meets all the client's objectives was successfully designed and implemented. The solution is based on a custom Multi-Model RAG architecture implemented in AWS Lambda (Python), which effectively integrates the LLM model with various data sources.

The architecture utilizes a "Super Agent" with full access to the PostgreSQL database and specialized agents with limited access, ensuring security and operational precision. Additionally, integration with Google Maps allows for the generation of interactive maps, and the analysis of PDF and other documents enriches the query context.

Deliverables

  • AI assistant based on a Multi-Model RAG using AWS Lambda and a particular LLM model
  • integration with multiple data sources: PostgreSQL database, Google Maps, PDF, and JSON documents
  • seamless and scalable integration with the client's software product

Benefits

  • users can get answers to complex questions in natural language
  • the AI agent can analyze contracts within wide market data contexts
  • ensured high quality and performance of responses through continuous benchmarking

Want to Learn More? Need a Project Quote?

Reach Out Today!
We're always ready to help

Blazej Kosmowski

Blazej Kosmowski

CTO
Marek Petrykowski

Marek Petrykowski

CEO
  • Get a reply within 24 hours
  • Discuss your needs with our expert
  • Receive your custom proposal in days

Click for the details

SoftKraft undertakes to process the above information for the purpose of contacting you and discussing your project. If you consent to being contacted for these purposes, please check the box below.

You can unsubscribe from these communications at any time. For more information on how to unsubscribe, please refer to our Privacy Policy.

or

It Staff Augmentation
Kafka Consulting
Software Development Team
It Staff Augmentation
Kafka Consulting
Software Development Team