Package com.hw.langchain.examples.chains
Class SqlChainExample
java.lang.Object
com.hw.langchain.examples.chains.SqlChainExample
This example demonstrates the use of the SQLDatabaseChain for answering questions over a SQL database.
For more usage examples, please refer to SQLDatabaseChainTest in langchain-core module.
Note: The database script is in scripts/mysql/schema.sql and scripts/mysql/data.sql.
- Author:
- HamaWhite
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SqlChainExample
public SqlChainExample()
-
-
Method Details
-
main
-