DataChat
The chatbot, powered by LangChain and Ollama, will understand the questions, formulate queries, execute them, and present the results in a user-friendly format.
Install / Use
/learn @WizKnight/DataChatREADME
DataChat: Conversational Data Analysis with Ollama
DataChat is an interactive web application that lets you analyze and explore your datasets using natural language. Simply upload your CSV or Excel file, and start asking questions about your data in plain English. DataChat leverages the power of Ollama (gemma:2b) for language understanding and LangChain for seamless integration with data analysis tools.
Features
- Intuitive Chat Interface: Ask questions about your data in a conversational manner.
- Support for CSV and Excel Files: Easily upload your data from common file formats.
- Powerful Data Analysis: Get answers to questions about trends, statistics, distributions, and relationships within your data.
- Seamless Integration: Leverages LangChain to connect Ollama with data analysis tools like Pandas.
Getting Started
-
Prerequisites:
- Python 3.12
- Ollama installed and running (see: https://ollama.ai/)
-
Installation:
git clone [https://github.com/WizKnight/DataChat] cd DataChat pip install -r requirements.txt -
Running the App:
streamlit run src/main.pyThis will open DataChat in your web browser.
Usage
- Upload Data: Click "Select a file..." and choose your CSV or Excel file.
- Start Chatting: Type your questions about the data in the chat input box.
- Get Answers: DataChat will process your question and display the answer in the chat.
Examples
- "What is the average age of customers?"
- "How many sales were made in each region?"
- "Which product category has the highest revenue?"
- "Show me a histogram of customer ages."
Customization
- LLM: Experiment with different Ollama models or versions for improved performance.
- Data Analysis Tools: Extend DataChat by adding custom LangChain tools to integrate with other analysis libraries or APIs.
- UI/UX: Customize the Streamlit interface to match your preferences.
License
This project is licensed under the Apache 2.0 License.
Acknowledgements
- This project is inspired by the growing potential of large language models and their application to data analysis.
- I thank the developers of Ollama, LangChain, and Streamlit for their excellent tools and resources.
Related Skills
openhue
345.4kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
345.4kElevenLabs text-to-speech with mac-style say UX.
weather
345.4kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.5kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
