Git Product home page Git Product logo

langchain-chat-with-documents's Introduction

Chat with documents using LLM

This is a Bellingcat hackathon submission

Team Members

Radu Ciocan - code

Ana State - design

Tool Description

A chat interface that allows users to upload PDF/DOCX documents and and chat with them using ChatGPT as the large language model.

demo.mp4

Installation

  1. Make sure you ave installed Node v18 or later
  2. Download the tool's repository using the command:
git clone [email protected]:ciocan/langchain-chat-with-documents.git
  1. Move to the tool's directory and install the tool
cd langchain-chat-with-documents
npm install
  1. Copy the .env.example into .env file and add the following variables:
WEAVIATE_HOST= # do not use https:// just the domain like bellingcat-xxx.weaviate.network
WEAVIATE_API_KEY=

# cloudflare r2
CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_SECRET_KEY=
CLOUDFLARE_SECRET_ACCESS_KEY=

# open ai key
OPENAI_API_KEY=

Weaviate is an open source vector database where the documents are vectorized and indexed. You can install it locally or use their free cloud.

Cloudflare R2 is a object storage solution compatible with AWS S3. They have a free tier of 10gb. More info

Signup for an OpenAI API key here

  1. Start the tool
npm run dev

Tech Stack

This is a T3 Stack project bootstrapped with create-t3-app.

Additional libraries:

  • Zustand - Used for state management
  • Mantine UI - Used for awesome UI components
  • LangChain - Used for interacting with the LLM model (OpenAI)

High Level Architecture

architecture

langchain-chat-with-documents's People

Contributors

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