Long AI Prompting Experiment

Experiment testing the "added value" of long context-dense prompts (versus casual converastional prompts) and the value of a voice "prompt optimisation" agent

About This Project

The Long-AI-Prompting-Experiment is a Python-based evaluation that tests whether longer, context-dense prompts add measurable value over short, casual prompts when querying a large language model. It compares three prompting approaches for the same technical consultation: a hand-crafted minimal control prompt, a raw speech-to-text transcript, and a voice transcript refined by a dedicated prompt optimisation agent. All runs use Gemini 2.5 Lite at default temperature with an identical system prompt, and the project records prompt length, output length, and the output-to-prompt ratio for each run. The stated research question asks whether AI-assisted refinement improves inference quality relative to raw voice input and minimal prompts.

The repository is organised around versioned prompt files, chart outputs, and a written analysis of results. Its first-pass findings, based on the author's qualitative review, conclude that the optimised prompt produced the most structured and constraint-aware responses, and that both enriched prompts outperformed the minimal control. The analysis also notes that the prompts represent a small fraction of the model's context window, so the experiment focuses on structure and specificity rather than capacity limits. The project relies on a single scenario and a single model, and its conclusions are presented as an initial assessment.

The project may be of interest to developers and researchers working on prompt engineering, LLM evaluation methodology, or voice-driven interfaces to AI systems. It offers a reproducible template for comparing prompt variants and a concrete example of using an AI agent to restructure unstructured user input before inference.

Project Details

Tags

ai-experimentsevaluationexperimentsprompt-engineering

Explore More Projects