Open-source multi-user ChatGPT for all LLMs, embedders, and vector databases. Unlimited documents, messages, and users in one privacy-focused app.
Go to file
Timothy Carambat ecf4295537
Add ability to grab youtube transcripts via doc processor (#470)
* Add ability to grab youtube transcripts via doc processor

* dynamic imports
swap out Github for Youtube in placeholder text
2023-12-18 17:17:26 -08:00
.github/workflows bump build workflow 2023-11-17 19:18:26 -08:00
.vscode Add Qdrant support for embedding, chat, and conversation (#192) 2023-08-15 15:26:44 -07:00
cloud-deployments Document Processor v2 (#442) 2023-12-14 15:14:56 -08:00
collector Add ability to grab youtube transcripts via doc processor (#470) 2023-12-18 17:17:26 -08:00
docker docs: update default storage path to just write to user home dir for docker instructions 2023-12-17 15:48:56 -08:00
frontend Add ability to grab youtube transcripts via doc processor (#470) 2023-12-18 17:17:26 -08:00
images [Feature] AnythingLLM use locally hosted Llama.cpp and GGUF files for inferencing (#413) 2023-12-07 14:48:27 -08:00
server Add ability to grab youtube transcripts via doc processor (#470) 2023-12-18 17:17:26 -08:00
.dockerignore Adding url uploads to document picker (#375) 2023-11-16 17:15:01 -08:00
.editorconfig Franzbischoff document improvements (#241) 2023-09-18 16:21:37 -07:00
.gitattributes dockerfile cleanup; enforce text LF line endings (#81) 2023-06-17 20:18:01 -07:00
.gitignore Replace custom sqlite dbms with prisma (#239) 2023-09-28 14:00:03 -07:00
.nvmrc add .nvmrc in root 2023-06-08 10:35:36 -07:00
clean.sh resolves #14 (#15) 2023-06-09 12:59:22 -07:00
LICENSE inital commit 2023-06-03 19:28:07 -07:00
package.json Document Processor v2 (#442) 2023-12-14 15:14:56 -08:00
README.md docs: update default storage path to just write to user home dir for docker instructions 2023-12-17 15:48:56 -08:00
SECURITY.md Create SECURITY.md 2023-09-08 16:31:30 -07:00

AnythingLLM logo

AnythingLLM: A private ChatGPT to chat with anything!.
An efficient, customizable, and open-source enterprise-ready document chatbot solution.

Discord | License | Docs | Hosted Instance

A full-stack application that enables you to turn any document, resource, or piece of content into context that any LLM can use as references during chatting. This application allows you to pick and choose which LLM or Vector Database you want to use as well as supporting multi-user management and permissions.

Chatting

Watch the demo!

Watch the video

Product Overview

AnythingLLM is a full-stack application where you can use commercial off-the-shelf LLMs or popular open source LLMs and vectorDB solutions to build a private ChatGPT with no compromises 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

  • Multi-user instance support and permissioning
  • Multiple document type support (PDF, TXT, DOCX, etc)
  • Manage documents in your vector database from a simple UI
  • Two chat modes conversation and query. Conversation retains previous questions and amendments. Query is simple QA against your documents
  • In-chat citations linked to the original document source and text
  • Simple technology stack for fast iteration
  • 100% Cloud deployment ready.
  • "Bring your own LLM" model.
  • 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 document chatbot solutions.
  • Full Developer API for custom integrations!

Supported LLMs, Embedders, and Vector Databases

Supported LLMs:

Supported Embedding models:

Supported Vector Databases:

Technical Overview

This monorepo consists of three main sections:

  • 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.
  • docker: Docker instructions and build process + information for building from source.
  • collector: NodeJS express server that process and parses documents from the UI.

Minimum Requirements

Tip

Running AnythingLLM on AWS/GCP/Azure? You should aim for at least 2GB of RAM. Disk storage is proportional to however much data you will be storing (documents, vectors, models, etc). Minimum 10GB recommended.

  • yarn and node on your machine
  • access to an LLM running locally or remotely.

*AnythingLLM by default uses a built-in vector database powered by LanceDB

*AnythingLLM by default embeds text on instance privately Learn More

Important

If you are running another service on localhost like Chroma, LocalAi, or LMStudio you will need to use http://host.docker.internal:xxxx to access the service from within the docker container using AnythingLLM as localhost:xxxx will not resolve for the host system. eg: Chroma host URL running on localhost:8000 on host machine needs to be http://host.docker.internal:8000 when used in AnythingLLM.

Tip

It is best to mount the containers storage volume to a folder on your host machine so that you can pull in future updates without deleting your existing data!

docker pull mintplexlabs/anythingllm:master

export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
touch "$STORAGE_LOCATION/.env" && \
docker run -d -p 3001:3001 \
--cap-add SYS_ADMIN \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
mintplexlabs/anythingllm:master

Open http://localhost:3001 and you are now using AnythingLLM! All your data and progress will now persist between container rebuilds or pulls from Docker Hub.

Learn more about running AnythingLLM 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.
  • yarn prisma:setup To build the Prisma client and migrate the database.

To boot the server locally (run commands from root of repo):

  • ensure server/.env.development is set and filled out. yarn dev:server

To boot the frontend locally (run commands from root of repo):

  • ensure frontend/.env is set and filled out.
  • ensure VITE_API_BASE="http://localhost:3001/api" yarn dev:frontend

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

Telemetry

AnythingLLM by Mintplex Labs Inc contains a telemetry feature that collects anonymous usage information.

Why?

We use this information to help us understand how AnythingLLM is used, to help us prioritize work on new features and bug fixes, and to help us improve AnythingLLM's performance and stability.

Opting out

Set DISABLE_TELEMETRY in your server or docker .env settings to "true" to opt out of telemetry.

DISABLE_TELEMETRY="true"

What do you explicitly track?

We will only track usage details that help us make product and roadmap decisions, specifically:

  • Version of your installation
  • When a document is added or removed. No information about the document. Just that the event occurred. This gives us an idea of use.
  • Type of vector database in use. Let's us know which vector database provider is the most used to prioritize changes when updates arrive for that provider.
  • Type of LLM in use. Let's us know the most popular choice and prioritize changes when updates arrive for that provider.
  • Chat is sent. This is the most regular "event" and gives us an idea of the daily-activity of this project across all installations. Again, only the event is sent - we have no information on the nature or content of the chat itself.

You can verify these claims by finding all locations Telemetry.sendTelemetry is called. Additionally these events are written to the output log so you can also see the specific data which was sent - if enabled. No IP or other identifying information is collected. The Telemetry provider is PostHog - an open-source telemetry collection service.