Atharv Pathak is a Python developer, full-stack web developer, and IT engineering student based in India.

Prompt AI

LOCAL AI / FULL-STACK PROMPT ENGINE

Scroll to explore↓
Prompt AILOCAL AI / FULL-STACK PROMPT ENGINE
The work

Prompt Generator AI — Local LLM Prompt Synthesis

A full-stack prompt engineering and generation studio pairing a React input interface with an Express backend connected to a local Ollama Mistral 7B engine for cost-free, private prompt synthesis.

PROTOTYPEFull-Stack AI Project & Local Inference Gateway•2025
OLLAMAMISTRAL 7BEXPRESSREACTNODE.JS
01 // The Problem

Crafting high-quality system prompts for LLMs requires clear role boundaries, contextual constraints, and explicit instructions. Non-technical users often produce vague prompts with inconsistent AI outputs. Additionally, iterating on prompts through commercial cloud APIs incurs recurring token fees and risks exposing confidential instructions.

02 // The Solution

An end-to-end web studio pairing an intuitive React input layout with an Express MVC backend that orchestrates prompt synthesis using a local Ollama Mistral 7B instance, guaranteeing data privacy and zero API expenses.

03 // Engineering Deep Dive

Prompt Generator AI is a full-stack developer utility designed to streamline prompt engineering workflows. Rather than manually typing loose, unstructured queries into chat interfaces, users decompose prompt requirements into foundational prompt-engineering dimensions: Role, Context, Action, and Specific Instructions.

The React client captures structured input parameters and dispatches them to a modular Express.js backend. The API handles schema validation and routes prompt generation requests to a locally hosted Ollama runtime executing the Mistral 7B large language model.

By running Mistral 7B locally on device via Ollama, the application delivers instant, zero-cost prompt synthesis without transmitting sensitive proprietary instructions or user data to external cloud APIs.

04 // System Architecture & Visual Breakdown

Architecture in Action

Visual walk-through of the operational pipeline, core algorithmic stages, and execution telemetry. Click any diagram to inspect in full resolution.

Structured System Prompt Decomposition Studio
Click to enlarge view
FIGURE 01 // 03PROMPT ENGINEERING STUDIO

Structured System Prompt Decomposition Studio

Interactive React prompt engineering studio breaking down complex instructions into foundational dimensions: Persona Role, Domain Context, Core Action Directives, and Output Constraints with real-time token count previews.

Local Ollama & Mistral 7B Private Inference Gateway
Click to enlarge view
FIGURE 02 // 03INFERENCE PIPELINE

Local Ollama & Mistral 7B Private Inference Gateway

Full-stack inference architecture routing requests from an Express.js MVC backend to a locally hosted Ollama runtime executing quantized Mistral 7B weights, achieving zero API token cost and complete data privacy.

Prompt Evaluation, Token Efficiency & Export Studio
Click to enlarge view
FIGURE 03 // 03BENCHMARKING & EXPORT

Prompt Evaluation, Token Efficiency & Export Studio

Comprehensive developer studio analyzing prompt token efficiency, latency metrics, and formatting compatibility across Mistral 7B, Llama 3, and Claude models with instant JSON and clipboard export.

05 // Architecture Stack

System Components

Client / UI

React.js with component-driven state architecture (promptgenerator.js) capturing Role, Context, Action, and Instructions

Backend & API

Node.js & Express.js REST API with MVC pattern separation across routes, controllers, and models

Data & Storage

Local in-memory schema and prompt data model (promptModel.js) for serialization and synthesis history

Protocols / Services

Local Ollama execution gateway serving quantized Mistral 7B parameter weights via local HTTP endpoints

06 // Capabilities

Core Implemented Features

  • Structured prompt engineering interface decomposing tasks into Role, Context, Action, and Constraints
  • Local LLM orchestration powered by Ollama Mistral 7B for cost-free, private local inference
  • Decoupled Express.js architecture with dedicated routes, controllers, and prompt models
  • Real-time prompt rendering and one-click copyable system prompt output
  • Zero third-party cloud API dependencies, ensuring confidential instructions remain on-premise
  • Extensible controller pipeline capable of targeting alternative local models (Llama 3, Phi-3, Gemma)
07 // Technical Challenge & Retrospective

Overcoming Bottlenecks

Integrating with local Ollama daemon endpoints while managing inference latency on consumer hardware. We implemented structured input sanitization and prompt template wrapping to ensure Mistral 7B consistently returns concise, ready-to-use prompt definitions.

Project Gallery

Visual Artifacts & Diagrams

Prompt AI preview
Enlarge
Prompt AI preview
Enlarge
Prompt AI preview
Enlarge
Prompt AI preview
Enlarge
Back to theall works.