THE FUTURE IS HERE

LangChain intro – make natural language SQL database queries

Make natural language queries to a local database using LangChain and OpenAI.

github link to notebook:
https://github.com/ScientificCoding/scientific-coding/blob/6a2cac1ae1bcf616947b9a50ef2f55dd333b62a6/lectures/2023-04-08/langchain%20-%20make%20natural%20language%20sql%20database%20queries.ipynb

Disclaimer:
Note: OpenAI provides a free API key for initial testing. Once you move to a paid subscription, calling the API in the way demonstrated in this example will incur monetary charges. Refer to OpenAI’s pricing information for details.

Be aware that information, such as files and databases to train OpenAI’s LLM can become public if applied in the way this demo demonstrates. Refer to OpenAI’s usage policy for details.

This demo is for educational purposes only and for demonstrating machine learning methods. The author makes no claims that the outcomes shown here or any outcomes that could be produced by this method are accurate or reliable.