Skip to content

Your Private Spreadsheet Assistant Many AI tools can help with spreadsheets, but your company's rules might not allow you to upload sensitive data to just any online platform – and for good reason! I ran into the same problem, so I built my own solution.

License

Notifications You must be signed in to change notification settings

abyshergill/spreadsheet_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartSheet Agents - Excel/CSV AI Assistant Code 

Features:

1. Dynamic Model Selection

Automatically detects all your installed Ollama models Dropdown selection for easy model switching Connection status monitoring

2. AI Agents

  • Code Generation Agent: Smarter code generation with better prompting
  • Code Review Agent: Validates code safety and correctness
  • Data Insight Agent: Provides automatic dataset analysis

3. Safety & Reliability

  • Code safety validation (blocks dangerous operations)
  • Error handling and user feedback
  • Isolated code execution environment

4. User Experience

  • Responsive UI with sidebar configuration
  • Predefined example prompts for common tasks
  • Real-time progress indicators
  • Advanced settings panel

5. Data Processing

  • Support for multiple CSV encodings
  • Excel file handling
  • Download options for both Excel and CSV formats
  • Data preview with adjustable row count

6. Smart Code Extraction

  • Code block parsing from LLM responses
  • Handles various response formats
  • Better code cleaning and validation

🔧 Usage Instructions:

Setup Requirements:

  • python 3.11++ or above
  • Ollama on local system

Install required Libraries:

pip install requirments.txt

Start the ollama server inside command prompt:

ollama serve  # Start Ollama server

Run the Application:

streamlit run main.py

Use the Interface:

  • Select your preferred model from the dropdown
  • Upload CSV/Excel files
  • Use natural language prompts or example commands
  • Review generated code before execution
  • Download processed results

💡 Example Prompts You Can Try:

  • "Add a profit margin column calculated as (revenue - cost) / revenue * 100"
  • "Filter rows where sales are above the median value"
  • "Create a summary table grouped by category"
  • "Find all rows with missing values and highlight them"
  • "Calculate running totals for the amount column"

About

Your Private Spreadsheet Assistant Many AI tools can help with spreadsheets, but your company's rules might not allow you to upload sensitive data to just any online platform – and for good reason! I ran into the same problem, so I built my own solution.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages