| Algorithm 2. A.D.A interaction process within ArsHive. |
| Input: User-Provided Data File (Excel or CSV format) |
| Output: Chat Window with Loaded Dataset |
| Begin Initialize ArsHive Software A.D.A. button is displayed on ArsHive Software Interface When A.D.A. Button is Clicked: Prompt User for OpenAI API Key Initialize OpenAI API with Provided Key Open Data Preprocessing Window Display Options to Upload Data File (Excel or CSV) User Uploads File Load Dataset into A.D.A. Calculate Token Count and Associated Cost for Dataset Display Token Count and Cost in Preprocessing Window Allow User to Modify Dataset if Needed (e.g., Delete Columns) Confirm Final Dataset for Analysis Transition to Chat Window Display Summary of Dataset (Variables, Global Identifier, Token Cost) Initialize Chat Session with GPT-4-turbo Model Load Dataset Context (Variables, Token Information) User Interacts with A.D.A. through Chat Window Send Queries Related to Dataset Receive Responses from A.D.A. based on GPT-4-turbo Model Maintain Session History for Continuous Conversation Context Offer Option to Save Session Transcript End A.D.A. Interaction on User Command or Window Closure End |