(pth, topic, docs)
| 167 | return response.replace('\n', ' ') |
| 168 | |
| 169 | def draw_subtable(pth, topic, docs): |
| 170 | fw = open(pth, 'w') |
| 171 | cnt = 1 |
| 172 | for ky in docs.keys(): |
| 173 | fw.write('Table #'+str(cnt)+'\n') |
| 174 | cnt+=1 |
| 175 | prp = 'We want to explore '+topic+'. Read the following article and list the key elements and values of the experiment into a concise markdown table. Article: ' |
| 176 | prp+=ky+'. '+docs[ky] |
| 177 | prp+='Table: ' |
| 178 | lt = len(prp.split(' ')) |
| 179 | response = generate_response(prp, 4000-2*lt) |
| 180 | fw.write(response.strip('\n')) |
| 181 | fw.write('\n') |
| 182 | fw.flush() |
| 183 | fw.close() |
| 184 | |
| 185 | def extra_draw(pth, docs, extra_query): |
| 186 | fw = open(pth, 'w') |
no test coverage detected