ArjanP

Untitled

Mar 31st, 2024
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.17 KB | None | 0 0
  1.     def generate_prompt_step2(self, step1_summary):
  2.         """
  3.        Generate the prompt for step 2 based on the summary of step 1.
  4.  
  5.        Parameters:
  6.            step1_summary (str): The summary generated in step 1.
  7.  
  8.        Returns:
  9.            str: The generated prompt for step 2.
  10.        """
  11.        
  12.         step2_analyzes = [f"{step1_summary}\n"]
  13.         step2_analyzes.append(["Overview of the house cusp and its signs and rulers and debilities."])
  14.         for cusp in const.LIST_HOUSES:
  15.             house, sign, ruler, aspects, score, mutual_reception, essentials = self.chart_service.houses()
  16.             step2_analyzes.append(f"The {cusp} cusp is in {sign} is {essentials} and its ruler is {ruler} and dignities score:")
  17.             if aspects:
  18.                 step2_analyzes.append(f"The ruler makes aspects with {aspects}")
  19.             if mutual_reception:
  20.                 step2_analyzes.append(f"IHas mutual reception")
  21.  
  22.             step2_analyzes.append(f"{score}")
  23.  
  24.         step2_analyzes.append("Now link the question to the significators which aligns with the question and summarize these significators for step 3.")
  25.        
  26.         return step2_analyzes
Advertisement
Add Comment
Please, Sign In to add comment