Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results in tabular format are truncated #390

Open
Haxeebraja opened this issue Jul 30, 2024 · 3 comments
Open

Results in tabular format are truncated #390

Haxeebraja opened this issue Jul 30, 2024 · 3 comments

Comments

@Haxeebraja
Copy link

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?

@liqul
Copy link
Contributor

liqul commented Jul 30, 2024

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.

@Haxeebraja
Copy link
Author

Haxeebraja commented Jul 30, 2024

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.

@liqul
Copy link
Contributor

liqul commented Sep 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants