anything-llm.md 1.32 KB
Newer Older
1
2
3
4
---
title: Anything LLM
---
[](){ #deployment-anything-llm }
5
6
7
8
9
10
11
12
13
14
15
16
17

[Anything LLM](https://github.com/Mintplex-Labs/anything-llm) is 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.

It allows you to deploy a large language model (LLM) server with vLLM as the backend, which exposes OpenAI-compatible endpoints.

## Prerequisites

- Setup vLLM environment

## Deploy

- Start the vLLM server with the supported chat completion model, e.g.

18
```bash
19
20
21
22
23
24
25
26
27
28
vllm serve Qwen/Qwen1.5-32B-Chat-AWQ --max-model-len 4096
```

- Download and install [Anything LLM desktop](https://anythingllm.com/desktop).

- On the bottom left of open settings, AI Prooviders --> LLM:
  - LLM Provider: Generic OpenAI
  - Base URL: http://{vllm server host}:{vllm server port}/v1
  - Chat Model Name: `Qwen/Qwen1.5-32B-Chat-AWQ`

29
![](../../assets/deployment/anything-llm-provider.png)
30
31
32

- Back to home page, New Workspace --> create `vllm` workspace, and start to chat:

33
![](../../assets/deployment/anything-llm-chat-without-doc.png)
34
35
36
37
38
39

- Click the upload button:
  - upload the doc
  - select the doc and move to the workspace
  - save and embed

40
![](../../assets/deployment/anything-llm-upload-doc.png)
41
42
43

- Chat again:

44
![](../../assets/deployment/anything-llm-chat-with-doc.png)