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

How to provide table documentation to the model? #395

Closed
moltar opened this issue Feb 16, 2024 · 2 comments
Closed

How to provide table documentation to the model? #395

moltar opened this issue Feb 16, 2024 · 2 comments

Comments

@moltar
Copy link

moltar commented Feb 16, 2024

Let's say we have extensive docs of every column available to us.

What is the best way to provide this context to the model?

Will it introspect the database and discover these comments?

What about engines that do not support comments?

@jcjc712
Copy link
Contributor

jcjc712 commented Feb 16, 2024

@moltar Hi, You can use the UPDATE table description endpoint PUT /api/v1/table-descriptions/{table_description_id} and set the descriptions per columns and tables. The Agents uses the descriptions field to provide more context.

If you mean the create table command when it scans the tables it gets this and is stored in the table_schema field and used by the agents.

@moltar
Copy link
Author

moltar commented Feb 16, 2024

Ah, great, thanks!! Didn't realize there was an API for 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