36 lines
1005 B
Bash
Executable File
36 lines
1005 B
Bash
Executable File
# Intake Processing Workflow
|
|
|
|
This script processes intake responses and converts them to both human and LLM formats.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
# intake-workflow.sh
|
|
|
|
INTAKE_DIR="../intake/responses"
|
|
HUMAN_OUTPUT="../../human"
|
|
LLM_OUTPUT="../../llm"
|
|
ARTIFACTS_DIR="../../artifacts"
|
|
|
|
echo "Starting intake processing workflow..."
|
|
|
|
# Process each intake response
|
|
for response in "$INTAKE_DIR"/*.yaml; do
|
|
if [[ -f "$response" ]]; then
|
|
filename=$(basename "$response" .yaml)
|
|
echo "Processing $filename..."
|
|
|
|
# Convert to human-friendly markdown
|
|
# python3 convert-intake-to-human.py "$response" "$HUMAN_OUTPUT/$filename.md"
|
|
|
|
# Convert to LLM-optimized JSON
|
|
# python3 convert-intake-to-llm.py "$response" "$LLM_OUTPUT/$filename.json"
|
|
|
|
# Store canonical version
|
|
# cp "$response" "$ARTIFACTS_DIR/$filename.yaml"
|
|
|
|
echo "Completed processing $filename"
|
|
fi
|
|
done
|
|
|
|
echo "Intake processing workflow completed."
|
|
``` |