Giter VIP home page Giter VIP logo

doc_qa_langchain's Introduction

Chat with your text or PDF files.

Doc_QA_LangChain is a front-end only implementation of a website that allows users to upload a PDF or text-based file (txt, markdown, JSON, HTML, etc) and ask questions related to the document with GPT. The project uses Vue3 for interactivity, Tailwind CSS for styling, and LangChain for parsing documents/creating vector stores/querying LLM.

What it does

  1. Parse a PDF or text-based file
  2. Split the document into 1000-token chunks
  3. Create embeddings of the document chunks with GPT API
  4. Store the embeddings into an ephemeral document store
  5. Create an embedding of the question to query relevant chunks from the document
  6. Get a response from GPT API and display it in the text area

Installation

To run the project:

  1. Clone the project
  2. Run npm install
  3. Run npm run dev

To use it with a hosted frontend:

Visit https://doc-qa-langchain.vercel.app/

Usage

Once the project is running, go to your web browser and navigate to the URL provided by Vite. You can then upload a PDF or text-based file and ask questions related to the document.

Technologies Used

  • Vue3
  • Tailwind CSS
  • LangChain

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you have any questions about the project, please feel free to reach out to me at [email protected]

doc_qa_langchain's People

Contributors

troyanovsky avatar

Stargazers

stophobia 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.