Class SqlChainExample

java.lang.Object
com.hw.langchain.examples.chains.SqlChainExample

public class SqlChainExample extends Object
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 Details

    • SqlChainExample

      public SqlChainExample()
  • Method Details

    • main

      public static void main(String[] args)