GithubHelp home page GithubHelp logo

ai-chunker's Introduction

Streamlit Text Chunker

This Streamlit application uses AI to chunk input text into coherent sections. It leverages OpenAI's GPT model to determine appropriate chunk boundaries and provide context for each chunk.

Features

  • User-friendly web interface for text input
  • AI-powered text chunking
  • Visualization of chunks with context

Prerequisites

  • Python 3.7+
  • OpenAI API key

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/streamlit-text-chunker.git
    cd streamlit-text-chunker
    
  2. Install the required packages:

    pip install -r requirements.txt
    
  3. Set up your environment variables: Create a .env file in the project root and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here
    

Usage

Run the Streamlit app:

streamlit run text_chunker_app.py

Open your web browser and navigate to http://localhost:8501.

Deployment

This app can be deployed using various methods, including:

  • Streamlit Cloud
  • Heroku
  • Google Cloud Platform
  • Amazon Web Services
  • DigitalOcean

Refer to the deployment section in the code comments for more details.

Rate Limiting

This application implements rate limiting to prevent abuse and manage API usage. By default, it allows 5 requests per minute per user.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.# ai-chunker

ai-chunker's People

Contributors

mrmps avatar

Stargazers

 avatar  avatar Steffen avatar  avatar Ivan Paner avatar  avatar Adeel Ahmad avatar Shahrukh Khan avatar Ishara Dissanayake avatar Kalyan avatar James Tarr avatar Tam Nguyen avatar Taco Hiddink avatar Sachin Chanchani avatar Cappillen Lee avatar Zach Bessinger avatar Frank Facundo avatar Bruno Oliveira avatar polya avatar Denis Timonin avatar Milutin Studen avatar Artur Makowski avatar Veera Vignesh avatar Michele Pangrazzi avatar Elmira Ghorbani avatar Tim Schönborn avatar Tassilo Klein avatar Patrick Stiller avatar Badr Alabsi, PhD avatar Homayoun avatar Ariel avatar  avatar Mahmoud avatar Mohamed Alderazi avatar Fernando Pratama avatar Aflah avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.