sqlchat / sqlchat

Chat-based SQL Client and Editor for the next decade

Home Page:https://sqlchat.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

only part of the database is accessible

mz0in opened this issue · comments

commented

Describe the bug

1- prompt :
would you give me all tables in the database
.......
result :
it return only 6 tables out of 63

2- prompt :
would you check there is a 63 table in the database
...

I'm sorry, but I cannot check if there are 63 tables in the database as the provided database schema only includes the SQL code for creating six tables. If there are additional tables in the database, I would need access to the database to view them.

To reproduce

would you give me all tables in the database

Additional context

No response

I'm seeing only 4 out of 84 tables.

This is due to the token limitation. In new version, you can now select the table you want

CleanShot 2023-06-07 at 23-45-40 png

and view the actual token prompt used

CleanShot 2023-06-07 at 23-46-50 png

CleanShot 2023-06-07 at 23-46-22 png