From 20984aeae20ac38ced457923f6273413a6636f45 Mon Sep 17 00:00:00 2001 From: Tiger Ren Date: Mon, 19 Aug 2024 13:41:56 +0800 Subject: [PATCH 1/2] add time stamp for each LLM call --- .DS_Store | Bin 10244 -> 0 bytes .gitignore | 2 ++ 2 files changed, 2 insertions(+) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 1f3fec5ca1655d492f808e51c746afa7b40c62bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHM&rcIU6n+CJB?SVaMi0hKyl{Y83JAnYMTl}RA=JphA9YJ>SzWrdyA=$<^sN7b z|AJTl68{YEp7eWf7u;cYfp9P+&NMS`cXqySX1;mzHnSxnwcM@G5LrZ&LuNZRj3OoR zbIys>7uDQ`RlpO~X`b#OPt#(ewW%-)7zK<1MggOMQQ#sdfOj^hTt2j>Gzu66i~>gr zaD1?k*_I>Q3$26>6mkTB9YD1tT;m)d7%Q^n$o4`jP;iE)2Ngk8bi`009M3Io4qJ|F zFSH??R0t;(^{k>3ijv-ev!pqxa%fFy6fg=T72vb`BrVYv&Cna|{2ta#(;Uw8MViH# z-p1L!ggi|Ps4D@nh`J@<8fdkEUxD6Io0@B`w^eh!8o03?)fePXza_~4@>IpIO&`&# zjl2y!YIGDmK-;gUqiVZ;JL>Cut?fE~P%QpXef&0GxUQO~&jpU$B+%L2f8FR2{pq zzdye)J7tyb%^gfx`wL6+Q`Y=a@!()6ckRyI`y17F?oP}5EVCvRg)SNi?~h98Lm8TU zsB~Jc*J`2#qeq}h6Kb_6pmpkyM|)7Qz*_3+sat4W(A2YmvdKkzpB&^2l=>M%T?Il% z@wz$44KO))*2v=NdlloENa5)K>r)pz0XPE8B+%!;9&qYtbe27^`Lw6=u>WbJ83gk> zt)0+o+*^k+b{{|1ERcEdc$12=mygEgJdU1Tsk4I8wj{9aFoa|$5DGQioivP=+#pg7xp{l@pVBm3O zF<>WZJ7`pA*zlTDCt7SAGn=HY9>La>Y@FV-vp(QX;V8ofOB9(jMY#yvKhVG(0U^Lbu{I0J@cl2O1YU=%P47zK<1=T@LUL|S>+)$ITO&&_XuMggP1 z#aBQLtW;K(G0wveRL6(R-`XwY*T|f>T`#l(K_Q>xVdZl?ZuoQjBr>-xvgL&9a%6j< XMGewF|1-dx|Nnk9Fz5gO^8Eh?Xf6K+ diff --git a/.gitignore b/.gitignore index 5d381cc..ba19c78 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,5 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +# ignore apple ds_store +.DS_Store \ No newline at end of file From 343d21d734a2f23fbdfae97fe2f88222176633a8 Mon Sep 17 00:00:00 2001 From: Tiger Ren Date: Mon, 19 Aug 2024 13:43:50 +0800 Subject: [PATCH 2/2] add time stamp for each LLM call --- analysis_pipeline.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/analysis_pipeline.py b/analysis_pipeline.py index 293a087..3e4b0dd 100644 --- a/analysis_pipeline.py +++ b/analysis_pipeline.py @@ -1,5 +1,6 @@ import pandas as pd from AgentProxy import AgentProxy +from datetime import datetime # Add this import # Here you need to replace the API Key and API Secret with your,I provide a test key and secret here api_key = '25bda2c39c0f8ca0' @@ -42,16 +43,14 @@ sales_stage_definition = ''' ''' # Read the Excel file -df = pd.read_excel('output_top20.xlsx') +df = pd.read_excel('output_top200.xlsx') # Iterate over each row in the DataFrame for index, row in df.iterrows(): # Extract the information from the column "当前详细状态及Close节奏" - if index > 3: - break try: detailed_status = row['当前详细状态及Close节奏'] - print(f"Processing row {index}") + print(f"Processing row {index} at current time: {datetime.now()}") detailed_current_stage = row['Sales stage'] prompt = (f"某公司当前销售定义为 {sales_stage_definition}, " f"当前销售阶段为 {detailed_current_stage}, "