TaskWeaver icon indicating copy to clipboard operation
TaskWeaver copied to clipboard

Results in tabular format are truncated

Open Haxeebraja opened this issue 1 year ago • 3 comments
trafficstars

When results are printed in tabular format they get truncated from the middle with dots. Possibly pd.set_option('display.max_rows', 500) is not set. TaskWeaver imports pandas library every time a question is asked. How can I configure it to print atleast 100 rows in output?

Haxeebraja avatar Jul 30 '24 09:07 Haxeebraja

This is intentional to shorten the output of the code, which is submitted to the LLM in the prompt. A too long display of the output my overwhelm the context window. But if you really want to change the display settings, you can find them here.

liqul avatar Jul 30 '24 11:07 liqul

I am using llama3.1 70B and Code Executor imports pandas library in code on each prompt. So it is not using options executor.py as library is being initialized each time. Is there any other way to set this option? Or simply prompt the LLM to stop importing library at runtime with each prompt.

Haxeebraja avatar Jul 30 '24 11:07 Haxeebraja

I believe it is already in the prompt asking the model not to re-import the lib every time. However, this is not a reliable way of achieving this.

liqul avatar Sep 02 '24 08:09 liqul