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

Support (optional) direct return on SQLDatabaseChain to prevent passing data to LLM #821

Closed
zachschillaci27 opened this issue Jan 31, 2023 · 3 comments · Fixed by #864
Closed

Comments

@zachschillaci27
Copy link
Contributor

Thanks for the amazing open source work!

For certain data-sensitive projects, it may be important to silo the database and its contents (aside from table/column names) from any calls to the LLM. This means the LLM cannot be used for formatting the output of the SQL query. I suppose one way to support this would be to allow something like the Tool option return_direct in the SQLDatabaseChain chain, but perhaps there's a better way. I'm happy to help contribute as needed.

@hwchase17
Copy link
Contributor

love this idea, let me get on it

@hwchase17 hwchase17 linked a pull request Feb 3, 2023 that will close this issue
@hwchase17
Copy link
Contributor

thoughts on the above pr?

@zachschillaci27
Copy link
Contributor Author

thoughts on the above pr?

Looks great, thanks for the quick response!

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

Successfully merging a pull request may close this issue.

2 participants