https://github.com/dataprofessor/langchain-ask-the-data
Build an LLM powered Ask the Data App with LangChain (using the Pandas DataFrame Agent) and Streamlit
https://github.com/dataprofessor/langchain-ask-the-data
Last synced: about 1 year ago
JSON representation
Build an LLM powered Ask the Data App with LangChain (using the Pandas DataFrame Agent) and Streamlit
- Host: GitHub
- URL: https://github.com/dataprofessor/langchain-ask-the-data
- Owner: dataprofessor
- Created: 2023-06-19T06:00:59.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T14:33:54.000Z (over 2 years ago)
- Last Synced: 2025-03-30T10:03:21.015Z (over 1 year ago)
- Language: Python
- Homepage: https://langchain-ask-the-data.streamlit.app/
- Size: 219 KB
- Stars: 28
- Watchers: 4
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🦜🔗 Langchain - Ask the Data App
Build an LLM powered Ask the Data App with LangChain (using the Pandas DataFrame Agent) and Streamlit.
## Overview of the App
This app uses the Pandas DataFrame Agent from LangChain to allow you to ask questions about a Pandas DataFrame.
## Demo App
[](https://langchain-ask-the-data.streamlit.app/)
## Get an OpenAI API key
You can get your own OpenAI API key by following the following instructions:
1. Go to https://platform.openai.com/account/api-keys.
2. Click on the `+ Create new secret key` button.
3. Next, enter an identifier name (optional) and click on the `Create secret key` button.
## Try out the app
Once the app is loaded, do the following in sequential order:
1. Upload a CSV file (you can also tweak the underlying code to have it read in other tabular formats such as Excel or tab delimited files.
2. Select an example query from the drop-down menu or provide your own custom query (by selecting the *Other* option)
3. Enter your OpenAI API key
That's all and the Pandas DataFrame Agent will start to work on your query.