Leonid Ganeline
ae8bc9e830
Refactored sql_database ( #7945 )
...
The `sql_database.py` is unnecessarily placed in the root code folder.
A similar code is usually placed in the `utilities/`.
As a byproduct of this placement, the sql_database is [placed on the top
level of classes in the API
Reference](https://api.python.langchain.com/en/latest/api_reference.html#module-langchain.sql_database )
which is confusing and not correct.
- moved the `sql_database.py` from the root code folder to the
`utilities/`
@baskaryan
---------
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com >
2023-07-20 22:17:55 -07:00
Yaroslav Halchenko
0d92a7f357
codespell: workflow, config + some (quite a few) typos fixed ( #6785 )
...
Probably the most boring PR to review ;)
Individual commits might be easier to digest
---------
Co-authored-by: Bagatur <baskaryan@gmail.com >
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
2023-07-12 16:20:08 -04:00
Ankush Gola
d3ec00b566
Callbacks Refactor [base] ( #3256 )
...
Co-authored-by: Nuno Campos <nuno@boringbits.io >
Co-authored-by: Davis Chase <130488702+dev2049@users.noreply.github.com >
Co-authored-by: Zander Chase <130414180+vowelparrot@users.noreply.github.com >
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com >
2023-04-30 11:14:09 -07:00
Harrison Chase
cb04ba0136
Add support for intermediate steps to SQLDatabaseSequentialChain ( #1583 ) ( #1601 )
...
for https://github.com/hwchase17/langchain/issues/1582
I simply added the `return_intermediate_steps` and changed the
`output_keys` function.
I added 2 simple tests, 1 for SQLDatabaseSequentialChain without the
intermediate steps and 1 with
Co-authored-by: brad-nemetski <115185478+brad-nemetski@users.noreply.github.com >
2023-03-11 15:44:41 -08:00
Andrew Gleave
ea67c049f0
Support SQL statements that return no results ( #222 )
...
Adds support for statements such as insert, update etc which do not
return any rows.
`engine.execute` is deprecated and so execution has been updated to use
`connection.exec_driver_sql` as-per:
https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Engine.execute
2022-11-29 08:28:45 -08:00
Harrison Chase
f23b3ceb49
consolidate run functions ( #126 )
...
consolidating logic for when a chain is able to run with single input
text, single output text
open to feedback on naming, logic, usefulness
2022-11-13 18:14:35 -08:00
Harrison Chase
af81e9ca9c
add sql database ( #35 )
2022-10-27 23:21:47 -07:00