feat(feedback): Add content improvement feedback system

Frontend (frontend/app.js):

- Add textarea for improvement feedback

- Add submit button with loading state

- Handle API response and display improved content

Backend (backend/copywriter.py):

- Add improve_copy() method using Cohere API

- Integrate retry mechanism for API calls

Backend (backend/main.py):

- Add /improve-content POST endpoint

- Implement error handling and return improved content with metadata

Testing:

- Verified feedback submission flow

- Confirmed improved content generation

- Tested error scenarios and loading states
This commit is contained in:
Michael Ikehi
2025-04-18 19:19:10 +01:00
parent 12e0830ba6
commit 71ad7b4d26
8 changed files with 790 additions and 91 deletions
+4 -2
View File
@@ -36,8 +36,10 @@ ENV/
# Local data
data/user_queries/*
!data/user_queries/.gitkeep
backend/data/vector_store/*
!backend/data/vector_store/.gitkeep
data/past_campaigns/*
!data/past_campaigns/.gitkeep
data/vector_store/*
data/training_data/*
# Logs
logs/*