Skip to content

Conversation

@bnmajor
Copy link
Collaborator

@bnmajor bnmajor commented Oct 13, 2025

This branch depends on #13

Support using the Github YAML prompt format for system defaults and user overrides:

  • System for composing components with conditional logic
    • Core system message defining Python code generation role
    • Default model configuration (gpt-5, temperature: 0.5, max_tokens: 10000)
    • RAG context injection for retrieval-augmented generation
    • UI-specific renderer instructions for web interface
  • Singleton loader for YAML prompts with variable substitution
  • Added --prompt-file option for YAML prompt loading from CLI and UI
    • CLI argument precedence over file-based defaults
  • Tests CLI/UI modes, RAG combinations, and parameter overrides
  • Updated README and DEVELOPMENT documentation

Resolves #3

@vicentebolea vicentebolea linked an issue Oct 15, 2025 that may be closed by this pull request
@vicentebolea vicentebolea added this to the 0.1.0 milestone Oct 15, 2025
Replace text-based templates with structured YAML prompts following GitHub's
schema. UI now loads model parameters directly from YAML files. Updates UI
initialization to sync with YAML model parameters.
- CLI: vtk-prompt --prompt-file custom.yml
- UI: vtk-prompt-ui --prompt-file custom.yml
- Parameter hierarchy: CLI > custom prompt > defaults
- Add RAG + UI integration with smart prompt selection
Replace monolithic YAML prompts with modular components for improved
maintainability.

- Implement PromptComponentLoader with LRU caching
- Add VTKPromptAssembler with conditional composition
- Single code path: custom prompts OR component assembly
- Single source of truth for prompt composition
- Keep specialized prompts (rag_chat, vtk_xml_generation)
- Centralize constants and eliminate code duplication
- Remove unreachable code and simplify architecture
- Optimize performance with LRU caching
Tests cover CLI/UI modes, RAG integration, parameter overrides, and error
handling. Enhance documentation with model configuration guide, component
system architecture.
Avoid lru_cache on instance methods. This retains "self" and can cause
memory leaks.
Also moves load/download converstation file and download config file to the
toolbar. Camera reset, clear scene, and tokens in/out have been moved to VTK
Visualization component. Overall styling/spacing has been cleaned up for a more
aligned, consistent layout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopting Github Prompt yaml format

2 participants