Skip to content

This is a practical demonstration of using natural language queries to interact with SQL databases, leveraging LangChain's capabilities for enhanced data analysis in the financial sector.

Notifications You must be signed in to change notification settings

colburncodes/lang-chain-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Resources

Open AI

FRED STL

LANG_CHAIN_API

  • Create an account and setup your API Keys.

Features

  • LangChain and SQLite Integration: Demonstrates how to use LangChain with SQLite for querying and analyzing financial data using natural language.
  • Financial Data Analysis: focuses on financial data, providing insights into economic indicators, yield curve prices, production data, and business cycles.
  • Examples: includes SQL queries for data insertion, schema creation, and advanced data analysis techniques.
  • Comprehensive Setup: Guides through the setup process for LangChain, SQLite, and Python packages.

Prerequisites

  • Python 3.x installed
  • VS Code or Jupyter Notebook
  • Basic Knowledge of SQL, Python, and financial datasets.

Environment Setup

Setting Up the Environment Before diving into the data analysis, it's essential to set up our environment by installing all necessary Python packages. This includes pandas for data manipulation, sqlite3 for interacting with SQLite databases, openai and langchain for leveraging LangChain's capabilities, and other packages that will be used throughout this notebook.

pip3 install pandas
pip3 install scikit-learn
pip3 install pandas-datareader
pip3 install plotly redis
pip3 install langchain langchain-experimental
pip3 install openai
pip3 install tiktoken
pip3 install faiss-cpu
pip3 install openai
pip3 install SQLAlchemy
pip3 install load_dotenv

About

This is a practical demonstration of using natural language queries to interact with SQL databases, leveraging LangChain's capabilities for enhanced data analysis in the financial sector.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages