This project is a simple web application for data analysis using Streamlit and PandasAI, integrating the Meta Llama 3 language model via Ollama. Users can upload CSV or XLSX files and interact with the data through natural language queries.
- Upload CSV or Excel (XLSX) files.
- View the first few rows of your dataset.
- Ask questions about the data in natural language using the Llama 3 model.
- Receive answers in real-time using the
pandasai
library.
- Clone the repository:
git clone https://github.com/zenklinov/Streamlit-CSV-excel-xlsx-Llama3-Ollama-PandasAI.git
cd Streamlit-CSV-excel-xlsx-Llama3-Ollama-PandasAI
- Install dependencies: Ensure you have Python installed, then install required packages.
pip install -r requirements.txt
- Set up Meta Llama 3 with Ollama: Install and configure Ollama to run Llama 3 locally. Ensure the model is running on
http://localhost:11434/v1
for this application to connect successfully.
- Run the Streamlit application: Open PowerShell (or Terminal), navigate to the project directory, and run:
streamlit run app2.py
- Upload Data Files:
- After launching, use the "Upload your CSV or XLSX files" button to upload one or more data files.
- Select a file from the dropdown to load its data.
- Interact with Your Data:
- Type a question about the data into the provided text area.
- Click "Ask" to receive a response generated by Llama 3 through the
pandasai
library.
- Upload your data file (CSV or Excel).
- Type in queries like:
- "What is the average value in the column 'Price'?"
- "Show the rows where 'Quantity' is greater than 50."