-
Install Python dependencies:
pip install -r requirements.txt
-
Configure API key:
# Copy the template cp .env.example .env # Edit .env and add your Google API key # GOOGLE_API_KEY=your_actual_api_key_here
Get a free API key at: https://makersuite.google.com/app/apikey
python src/extract_parameters.pyThis will:
- Read snippets from
input/directory - Process each snippet with Gemini 1.5 Pro
- Extract architectural parameters
- Save results to
output/parameters.yaml
# Windows
type output\parameters.yaml
# Linux/Mac
cat output/parameters.yaml.
├── README.md # Project overview
├── SUMMARY.md # Detailed summary report
├── QUICKSTART.md # This file
├── requirements.txt # Python dependencies
├── .env.example # API key template
│
├── input/ # Input specification snippets
│ ├── snippet1_caches.txt
│ └── snippet2_csr.txt
│
├── src/ # Source code
│ └── extract_parameters.py # Main extraction script
│
├── output/ # Generated results
│ ├── sample_parameters.yaml # Example output
│ └── parameters.yaml # Actual results (generated)
│
├── docs/ # Documentation
│ ├── llm_details.md # LLM specifications
│ └── methodology.md # Technical approach
│
└── prompts/ # Prompt engineering
└── prompt_evolution.md # Prompt development history
pip install google-generativeaiMake sure you:
- Created
.envfile (copy from.env.example) - Added your actual API key to
.env - Running from project root directory
The LLM occasionally returns malformed JSON. The script will print the error and continue. This is rare with temperature=0.1.
- Add more snippets: Place new
.txtfiles ininput/directory - Modify prompts: Edit the prompt in
src/extract_parameters.py - Validate results: Review
output/parameters.yamlfor accuracy - Read documentation: See
docs/for detailed methodology
For issues or questions:
- Check
SUMMARY.mdfor detailed documentation - Review
prompts/prompt_evolution.mdfor prompt engineering insights - See
docs/methodology.mdfor technical details