GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - whoismehfooz/Smart-Prompt-Studio: ๐Ÿ‘‰ Production-oriented FastAPI backend for managing, versioning, rendering, validating, and executing AI prompts with guardrails, logging, testing, Docker, and CI.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

โšก Smart Prompt Studio

A production-minded backend for managing, rendering, validating, and executing reusable AI prompts.

๐Ÿง  Prompt Management โ€ข ๐Ÿ›ก๏ธ Guardrails โ€ข ๐Ÿค– AI Execution โ€ข ๐Ÿ“‹ Evaluation โ€ข ๐Ÿ“ฆ Docker โ€ข ๐Ÿ”„ CI

Python FastAPI OpenAI Tests CI


๐Ÿš€ What is Smart Prompt Studio?

Smart Prompt Studio is a FastAPI-based backend built around one simple idea:

Treat prompts like backend-managed application assets, not random strings buried inside code.

Instead of scattering prompts throughout an application, this service provides a central layer for:

  • ๐Ÿ“ Creating prompts
  • ๐Ÿ”ข Managing prompt versions
  • ๐Ÿงฉ Rendering variables
  • ๐Ÿ›ก๏ธ Validating prompts before execution
  • ๐Ÿค– Sending prompts to an AI provider
  • ๐Ÿ“Š Tracking execution behavior
  • ๐Ÿงช Testing failure paths
  • ๐Ÿ“‹ Evaluating prompt behavior
  • ๐Ÿชต Logging requests and services
  • ๐Ÿณ Running inside Docker
  • ๐Ÿ”„ Validating changes through GitHub Actions

The project is intentionally small.

The engineering lessons are not.


โœจ Core Features

๐Ÿ“ Prompt Management

Create reusable prompts through the API.

POST /prompts

Prompts contain structured messages instead of one giant string.

This keeps prompt construction explicit and maintainable.


๐ŸŽฏ Project Goal

The goal is to build a clean foundation for AI-powered backend systems.

Smart Prompt Studio focuses on the engineering layer surrounding an LLM:

Client
  โ”‚
  โ–ผ
FastAPI API
  โ”‚
  โ–ผ
Prompt Service
  โ”‚
  โ”œโ”€โ”€ Versioning
  โ”œโ”€โ”€ Variable Rendering
  โ””โ”€โ”€ Validation
  โ”‚
  โ–ผ
Guardrail Service
  โ”‚
  โ–ผ
AI Service
  โ”‚
  โ–ผ
AI Provider
  โ”‚
  โ–ผ
Response


๐Ÿ—๏ธ Architecture

The project follows a service-oriented FastAPI structure.

Smart-Prompt-Studio/
โ”‚
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ config.py
โ”‚   โ”œโ”€โ”€ logging_config.py
โ”‚   โ”œโ”€โ”€ main.py
โ”‚   โ”œโ”€โ”€ schemas.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ exceptions/
โ”‚   โ”‚   โ”œโ”€โ”€ custom_exceptions.py
โ”‚   โ”‚   โ””โ”€โ”€ handlers.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ””โ”€โ”€ request_logging.py
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ services/
โ”‚       โ”œโ”€โ”€ ai_service.py
โ”‚       โ”œโ”€โ”€ guardrail_service.py
โ”‚       โ””โ”€โ”€ prompt_service.py
โ”‚
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ test_ai_service_errors.py
โ”‚   โ”œโ”€โ”€ test_ai_service_logging.py
โ”‚   โ””โ”€โ”€ test_prompt_evalutation.py
โ”‚
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ””โ”€โ”€ ci.yml
โ”‚
โ”œโ”€โ”€ .dockerignore
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ Dockerfile
โ””โ”€โ”€ requirements.txt

๐Ÿงฐ Tech Stack

Technology                                  Purpose
-๐Ÿ Python                               Application language
-โšก FastAPI                              API framework
-๐Ÿ“ฆ Pydantic                             Data validation
-๐Ÿค– OpenAI-compatible SDK                AI communication
-๐Ÿงช Pytest                               Automated testing
-๐Ÿณ Docker                               Containerization
-๐Ÿ”„ GitHub Actions                       CI
-๐Ÿชต Python Logging                       Observability
-๐ŸŒฟ Git                                  Version control

๐Ÿ“Œ Current Status

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Smart Prompt Studio          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Prompt Management       โœ…   โ”‚
โ”‚ Versioning              โœ…   โ”‚
โ”‚ Variable Rendering      โœ…   โ”‚
โ”‚ Guardrails              โœ…   โ”‚
โ”‚ AI Integration          โœ…   โ”‚
โ”‚ Error Handling          โœ…   โ”‚
โ”‚ Logging                 โœ…   โ”‚
โ”‚ Automated Tests         โœ…   โ”‚
โ”‚ Docker                  โœ…   โ”‚
โ”‚ GitHub Actions CI       โœ…   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Local test suite:

10 passed

CI:

โœ… Passed

Docker:

โœ… Verified


โšก Final Snapshot

Smart Prompt Studio is a compact AI backend focused on one principle:

Build the engineering around the model, not just the model call.

It combines:

โšก FastAPI
๐Ÿง  Prompt Management
๐Ÿ›ก๏ธ Guardrails
๐Ÿค– AI Execution
๐Ÿชต Logging
๐Ÿงช Testing
๐Ÿณ Docker
๐Ÿ”„ CI
๐ŸŒฟ Git

Small enough to understand.

Structured enough to extend.

Practical enough to build upon.


๐Ÿ—ฟ Built With Python

Made as part of a hands-on journey toward production-grade AI Backend Engineering.

Code โ†’ Test โ†’ Containerize โ†’ Automate โ†’ Ship

Smart Prompt Studio

The prompt is only the beginning.

About

๐Ÿ‘‰ Production-oriented FastAPI backend for managing, versioning, rendering, validating, and executing AI prompts with guardrails, logging, testing, Docker, and CI.

Topics

aiai-backenddockerfastapigithub-actiongroqllmopenaiprompt-engineeringprompt-managementpytespythonrest-api

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.