Skip to content

itlasso/talk-to-your-data

Repository files navigation

Talk to Your Data

Upload PDFs, Excel files, or Documents and query them using an AI chatbot interface. The app includes the ability to construct a table of contents to categorize the data, with a visible file library allowing users to select and find the data or file they need.

Features

  • 📄 Upload multiple file types (PDF, Excel, Word, Text)
  • 🤖 AI chatbot interface for querying your documents
  • 📚 Interactive table of contents with file categorization
  • 🔍 Search functionality across all uploaded files
  • 💬 Chat history and conversation management
  • 🎨 Modern, responsive UI with gradient designs

Installation

Prerequisites

  • Node.js (version 18 or higher)
  • npm or yarn package manager
  • Git

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/itlasso/talk-to-your-data.git
    cd talk-to-your-data
  2. Install dependencies:

    npm install

    or

    yarn install
  3. Start the development server:

    npm run dev

    or

    yarn dev
  4. Open your browser: Navigate to http://localhost:5173 to view the application.

Building for Production

npm run build

The built files will be in the dist directory.

Pushing to GitHub

Initial Setup (if starting fresh)

  1. Initialize Git repository:

    git init
  2. Add all files:

    git add .
  3. Create initial commit:

    git commit -m "Initial commit: Talk to Your Data app"
  4. Add remote repository:

    git remote add origin https://github.com/itlasso/talk-to-your-data.git
  5. Push to GitHub:

    git branch -M main
    git push -u origin main

Updating Existing Repository

  1. Add changes:

    git add .
  2. Commit changes:

    git commit -m "Update: [describe your changes]"
  3. Push to GitHub:

    git push origin main

Project Structure

src/
├── components/
│   ├── ui/              # Reusable UI components
│   ├── AppLayout.tsx    # Main app layout
│   ├── ChatInterface.tsx # AI chat interface
│   ├── FileUpload.tsx   # File upload component
│   └── TableOfContents.tsx # Document library
├── contexts/
│   └── AppContext.tsx   # Global state management
├── pages/
│   ├── Index.tsx        # Main page
│   └── NotFound.tsx     # 404 page
└── lib/
    └── utils.ts         # Utility functions

Technologies Used

  • React 18 - Frontend framework
  • TypeScript - Type safety
  • Vite - Build tool and dev server
  • Tailwind CSS - Styling
  • Radix UI - Accessible UI primitives
  • Lucide React - Icons
  • React Router - Navigation

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -m 'Add feature'
  4. Push to the branch: git push origin feature-name
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages