File size: 651 Bytes
5e0532d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()