Coder Social home page Coder Social logo

ptzagk / anything-llm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mintplex-labs/anything-llm

0.0 0.0 0.0 2.63 MB

A full-stack application that turns any documents into an intelligent chatbot with a sleek UI and easier way to manage your workspaces.

Home Page: https://twitter.com/tcarambat

License: MIT License

Shell 0.23% JavaScript 81.23% Python 15.23% CSS 1.62% HTML 0.51% Dockerfile 1.17%

anything-llm's Introduction

๐Ÿค– AnythingLLM: A full-stack personalized AI assistant

Twitter

A full-stack application and tool suite that enables you to turn any document, resource, or piece of content into a piece of data that any LLM can use as reference during chatting. This application runs with very minimal overhead as by default the LLM and vectorDB are hosted remotely, but can be swapped for local instances. Currently this project supports Pinecone, ChromaDB & more for vector storage and OpenAI for LLM/chatting.

Chatting view more screenshots

Watch the demo!

Watch the video

Product Overview

AnythingLLM aims to be a full-stack application where you can use commercial off-the-shelf LLMs with Long-term-memory solutions or use popular open source LLM and vectorDB solutions.

Anything LLM is a full-stack product that you can run locally as well as host remotely and be able to chat intelligently with any documents you provide it.

AnythingLLM divides your documents into objects called workspaces. A Workspace functions a lot like a thread, but with the addition of containerization of your documents. Workspaces can share documents, but they do not talk to each other so you can keep your context for each workspace clean.

Some cool features of AnythingLLM

  • Atomically manage documents to be used in long-term-memory from a simple UI
  • Two chat modes conversation and query. Conversation retains previous questions and amendments. Query is simple QA against your documents
  • Each chat response contains a citation that is linked to the original content
  • Simple technology stack for fast iteration
  • Fully capable of being hosted remotely
  • "Bring your own LLM" model and vector solution. still in progress
  • Extremely efficient cost-saving measures for managing very large documents. you'll never pay to embed a massive document or transcript more than once. 90% more cost effective than other LTM chatbots

Technical Overview

This monorepo consists of three main sections:

  • collector: Python tools that enable you to quickly convert online resources or local documents into LLM useable format.
  • frontend: A viteJS + React frontend that you can run to easily create and manage all your content the LLM can use.
  • server: A nodeJS + express server to handle all the interactions and do all the vectorDB management and LLM interactions.

Requirements

  • yarn and node on your machine
  • python 3.8+ for running scripts in collector/.
  • access to an LLM like GPT-3.5, GPT-4*.
  • a Pinecone.io free account*. *you can use drop in replacements for these. This is just the easiest to get up and running fast. We support multiple vector database providers.

How to get started (Docker - simple setup)

Get up and running in minutes with Docker

How to get started (Development environment)

  • yarn setup from the project root directory.
    • This will fill in the required .env files you'll need in each of the application sections. Go fill those out before proceeding or else things won't work right.
  • cd frontend && yarn install && cd ../server && yarn install from the project root directory.

Next, you will need some content to embed. This could be a Youtube Channel, Medium articles, local text files, word documents, and the list goes on. This is where you will use the collector/ part of the repo.

Go set up and run collector scripts

Learn about documents

Learn about vector caching

Contributing

  • create issue
  • create PR with branch name format of <issue number>-<short name>
  • yee haw let's merge

anything-llm's People

Contributors

timothycarambat avatar antoniociolino avatar frasergr avatar preeteshjain avatar skidvis avatar timothyasp avatar hipnologo avatar jwaltz avatar m14t avatar mplawner 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.