ArjanP

Untitled

Mar 31st, 2024
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.65 KB | None | 0 0
  1.     def generate_prompt_step1(self):
  2.         """
  3.  
  4.        - Determination of Question Significators:
  5.        Generate prompt for step 1 of the process, including refined question and astrological analysis.
  6.        """
  7.         refined_question = self.generate_preliminary_evaluation()
  8.         sign, ruler, score = self.chart_service.ascendant()
  9.         prompt = f"""
  10.            Identification of the Querent:
  11.            Now start answering the refined Horary Question: '{refined_question}'
  12.            The querent is symbolized by the Ascendant sign ({sign}) and its ruling planet ({ruler}).
  13.            The essential dignity score of the ruling planet is: {score}
  14.            Now summarize this and start with the next step."""
  15.  
  16.         return prompt
  17.    
  18.     def generate_prompt_step2(self, step1_summary):
  19.         """
  20.        Generate the prompt for step 2 based on the summary of step 1.
  21.  
  22.        Parameters:
  23.            step1_summary (str): The summary generated in step 1.
  24.  
  25.        Returns:
  26.            str: The generated prompt for step 2.
  27.        """
  28.        
  29.         step2_analyzes = [f"{step1_summary}\n"]
  30.         step2_analyzes.append(["Link the question to one of the astrological houses and the signs on the house cusp. "])
  31.         for cusp in const.LIST_HOUSES:
  32.             house, sign, ruler, score = self.chart_service.houses()
  33.             step2_analyzes.append(f"The {cusp} cusp is in {sign} and its ruler is {ruler} and dignities score: {score}")
  34.         step2_analyzes.append("Now link the question to the significators which aligns with the question and summarize these significators for step 3.")
  35.        
  36.         return step2_analyzes
Add Comment
Please, Sign In to add comment