Back to Industry & Consulting

GenAI & Large Language Model Applications

Two client engagements — financial services and equipment rental — using the same core approach: index existing documents into a searchable knowledge base, retrieve the most relevant content for each query, and generate a response using a large language model. The implementation differed in data types, infrastructure, and compliance requirements.

Product Discovery

A major financial institution needed internal teams to find relevant products across a large, complex catalogue. Manual search was slow and inconsistent — the goal was a system that could take a natural language query and surface the right products with supporting context.

Built on Databricks with Claude as the LLM and LangChain's agent framework. MLflow handled experiment tracking and pipeline management throughout. Development was coordinated closely with compliance teams to meet the institution's regulatory requirements. Internal teams could find the right products faster, with consistent results across the full catalogue.

Architecture diagram for product discovery system: LangChain agent and chain, cloud storage with preprocessed plots and summarised characteristics, Claude 2.1 LLM, batch processing of raw descriptions via Python and LangChain
System architecture — product discovery: LangChain agent handles real-time queries; batch processing extracts and summarises product characteristics from cloud storage for Claude to reason over.

Knowledge Support Tool

A leading equipment rental firm needed to help sales representatives respond to customer inquiries faster, reduce manual document searches, and support internal training. Subject matter experts (SMEs) needed to be able to review and correct any flagged response.

The knowledge base was built from the firm's existing documents — structured (CSV, JSON) and unstructured (PDF, HTML) — ingested into S3 and converted to embeddings using GPT-3.5. Chroma was used as the vector store. The RAG pipeline used LangChain's RetrievalQA Chain with a prompt template matching the client's requirements: answers formatted as lists where appropriate, with links to source documents.

The deployment ran on AWS: Lambda functions handled input processing, LLM responses, and SME feedback updates; LangChain dependencies ran on EC2 via Docker; Amazon Lex handled natural language understanding; API Gateway connected the SME review interface; metadata was stored in DynamoDB.

Customer inquiry response time was reduced by 22%.

AWS architecture for knowledge support tool: Amazon Lex, Lambda functions, S3 bucket with PDFs and CSVs, LangChain RetrievalQA Chain, OpenAI GPT-3.5 on SageMaker, DynamoDB, Docker on EC2, API Gateway, SME review interface
System architecture — knowledge support tool: real-time interactions via Amazon Lex and Lambda; batch processing ingests documents into S3, creates embeddings, and retrains with SME feedback.