GithubHelp home page GithubHelp logo

yrvelez / docuchat Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 17 KB

Yet another document chat application, but with locally stored embeddings

Home Page: https://tailoredexperiments.com/docuchat

PHP 38.53% HTML 31.81% CSS 29.66%

docuchat's Introduction

DocuChat: A Document Chat Application with Local Embeddings

DocuChat is a chat application that allows users to communicate with a document. The application uses OpenAI embeddings that are stored locally, eliminating the need for an external data store (e.g., Pinecone).

Technology

DocuChat is built using HTML, PHP, and JavaScript. The front-end of the application is built using HTML/JS. The back-end of the application is built using PHP. The local embeddings are stored as JSON output inside the browser.

Requirements

To use DocuChat, you need to have an OpenAI API Key. You should edit the config.php file to include your API Key before using the application.

Usage

Upload a PDF file (<25 pages) to start a conversation. Enter your message in the input field and click "Send". The application will use OpenAI embeddings to find relevant chunks of the PDF and display a summary after incorporating the most relevant chunks into the context.

Performance

The application is optimized for documents up to 50 pages in length (25 page limit can be removed). Longer documents may result in decreased performance.

Installation

Clone this repository. Edit the config.php file to include your OpenAI API Key. Install and configure a web server with PHP and MySQL. Upload the files to your web server. Open the application in a web browser.

Credits

DocuChat was developed by Yamil Ricardo Velez. It uses OpenAI's API for text embeddings and chat functionality.

docuchat's People

Contributors

yrvelez avatar

Stargazers

 avatar

Watchers

 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.