Enfinite Meets AI – Chatbot Revolutionizes Information Access in Oil, Gas & Water Wells Operations
Business Problem
About Enfinite
Enfinite Technologies is an artificial intelligence (AI) company that helps oil and gas (O&G) exploration and production (E&P) companies optimize production from their wells. Their AI platform uses real-time data to predict failures in critical equipment and autonomously optimize performance. This can help E&P companies increase production volumes and reduce downtime.
Solution
To address the challenge, we developed a sophisticated chatbot system with the following components:
Query Classification
Classifier Model: Used GPT-3.5-turbo for a few-shot classifier to determine if a query is database-related or pertains to domain-specific PDFs.
Database-Related Queries
Text-to-SQL Agent: Employed the Lyzr text-to-sql agent (enterprise version) with llama3-instruct model to convert natural language queries into SQL, retrieve data from the PostgreSQL database, and visualize results.
Domain-Related Queries
Chat Agent: Utilized the Lyzr open-source chat agent to handle queries related to PDF documents.
Vector Store: Stored and indexed the client’s PDFs, allowing efficient searches and accurate information retrieval.
API Endpoints
New Chat: Endpoint to initiate a new chat session.
Existing Chat: Endpoint to continue an existing chat, maintaining context for seamless user experience.
Response Structure
Modified Responses: Redesigned to ensure easy integration with the client’s UI, enhancing user interaction.