ORA / app /services /growth.py
Abdalkaderdev's picture
Initial ORA deployment
5e0532d
from app.services.llm import llm_service
class GrowthService:
PROMPT = """You are summarizing the user’s spiritual journey.
Based on:
- Past reflections: {reflections}
- Prayers: {prayers}
- Questions asked: {questions}
Produce:
- A gentle narrative summary
- Noticing growth patterns
- No judgment or evaluation"""
async def summarize(self, reflections: str, prayers: str, questions: str) -> str:
prompt = self.PROMPT.format(reflections=reflections, prayers=prayers, questions=questions)
return await llm_service.generate_response(message="Summarize my journey.", system_prompt=prompt)
growth_service = GrowthService()