@@ -21,17 +21,17 @@ def run(self):
2121 summarize_results = SummarizeCypherResult (
2222 llm = self .llm ,
2323 )
24-
24+ print ( "CompanyReport" )
2525 company_data = self .database .query (
2626 "MATCH (n {name:$companyName}) return n.summary, n.isDissolved, n.nbrEmployees, n.name, n.motto, n.isPublic, n.revenue" ,
2727 {"companyName" : self .company },
2828 )
29-
29+ print ( company_data )
3030 relation_data = self .database .query (
3131 "MATCH (n {name:$companyName})-[r]->(m) WHERE NOT m:Article OPTIONAL MATCH (m)-[:IN_COUNTRY]->(c:Country) WITH r,m,c return r,m,c" ,
3232 {"companyName" : self .company },
3333 )
34-
34+ print ( relation_data )
3535 company_data_output = {
3636 "name" : company_data [0 ]["n.name" ],
3737 "motto" : company_data [0 ]["n.motto" ],
@@ -41,7 +41,8 @@ def run(self):
4141 "isPublic" : company_data [0 ]["n.isPublic" ],
4242 "revenue" : company_data [0 ].get ("n.revenue" , None ),
4343 }
44-
44+ print (company_data_output )
45+ print ("all data fetched" )
4546 offices = []
4647 suppliers = []
4748 subsidiaries = []
@@ -122,7 +123,7 @@ def run(self):
122123 "Can you summarize the following articles about " + self .company + " ?" ,
123124 article_data [:HARD_LIMIT_CONTEXT_RECORDS ],
124125 )
125-
126+ print ( "output: " + output )
126127 return {
127128 "company" : company_data_output ,
128129 "subsidiaries" : subsidiaries ,
0 commit comments