ORA / app /services /simplify.py
Abdalkaderdev's picture
Initial ORA deployment
5e0532d
from app.services.llm import llm_service
class SimplifyService:
PROMPT = """Rewrite the following spiritual explanation
in clear, everyday language.
Text:
{text}
Rules:
- No jargon
- No preaching
- Keep meaning intact"""
async def simplify(self, text: str) -> str:
prompt = self.PROMPT.format(text=text)
return await llm_service.generate_response(message="Simplify this.", system_prompt=prompt)
simplify_service = SimplifyService()