chore(docs): fix Markdown lint issues in the docs
This commit is contained in:
parent
18529391f4
commit
f3e918c3e3
|
@ -1,4 +1,4 @@
|
||||||
## Perplexica's Architecture
|
# Perplexica's Architecture
|
||||||
|
|
||||||
Perplexica's architecture consists of the following key components:
|
Perplexica's architecture consists of the following key components:
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## How does Perplexica work?
|
# How does Perplexica work?
|
||||||
|
|
||||||
Curious about how Perplexica works? Don't worry, we'll cover it here. Before we begin, make sure you've read about the architecture of Perplexica to ensure you understand what it's made up of. Haven't read it? You can read it [here](https://github.com/ItzCrazyKns/Perplexica/tree/master/docs/architecture/README.md).
|
Curious about how Perplexica works? Don't worry, we'll cover it here. Before we begin, make sure you've read about the architecture of Perplexica to ensure you understand what it's made up of. Haven't read it? You can read it [here](https://github.com/ItzCrazyKns/Perplexica/tree/master/docs/architecture/README.md).
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ We'll understand how Perplexica works by taking an example of a scenario where a
|
||||||
4. After the information is retrieved, it is based on keyword-based search. We then convert the information into embeddings and the query as well, then we perform a similarity search to find the most relevant sources to answer the query.
|
4. After the information is retrieved, it is based on keyword-based search. We then convert the information into embeddings and the query as well, then we perform a similarity search to find the most relevant sources to answer the query.
|
||||||
5. After all this is done, the sources are passed to the response generator. This chain takes all the chat history, the query, and the sources. It generates a response that is streamed to the UI.
|
5. After all this is done, the sources are passed to the response generator. This chain takes all the chat history, the query, and the sources. It generates a response that is streamed to the UI.
|
||||||
|
|
||||||
### How are the answers cited?
|
## How are the answers cited?
|
||||||
|
|
||||||
The LLMs are prompted to do so. We've prompted them so well that they cite the answers themselves, and using some UI magic, we display it to the user.
|
The LLMs are prompted to do so. We've prompted them so well that they cite the answers themselves, and using some UI magic, we display it to the user.
|
||||||
|
|
||||||
### Image and Video Search
|
## Image and Video Search
|
||||||
|
|
||||||
Image and video searches are conducted in a similar manner. A query is always generated first, then we search the web for images and videos that match the query. These results are then returned to the user.
|
Image and video searches are conducted in a similar manner. A query is always generated first, then we search the web for images and videos that match the query. These results are then returned to the user.
|
||||||
|
|
|
@ -10,7 +10,7 @@ This guide will show you how to make Perplexica available over a network. Follow
|
||||||
|
|
||||||
3. Stop and remove the existing Perplexica containers and images:
|
3. Stop and remove the existing Perplexica containers and images:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker compose down --rmi all
|
docker compose down --rmi all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ docker compose down --rmi all
|
||||||
|
|
||||||
5. Replace `127.0.0.1` with the IP address of the server Perplexica is running on in these two lines:
|
5. Replace `127.0.0.1` with the IP address of the server Perplexica is running on in these two lines:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||||
|
@ -28,7 +28,7 @@ args:
|
||||||
|
|
||||||
7. Rebuild and restart the Perplexica container:
|
7. Rebuild and restart the Perplexica container:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -38,25 +38,25 @@ docker compose up -d --build
|
||||||
|
|
||||||
2. Navigate to the directory with the `docker-compose.yaml` file:
|
2. Navigate to the directory with the `docker-compose.yaml` file:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
cd /path/to/docker-compose.yaml
|
cd /path/to/docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Stop and remove existing containers and images:
|
3. Stop and remove existing containers and images:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker compose down --rmi all
|
docker compose down --rmi all
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Open `docker-compose.yaml` in a text editor like Sublime Text:
|
4. Open `docker-compose.yaml` in a text editor like Sublime Text:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nano docker-compose.yaml
|
nano docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Replace `127.0.0.1` with the server IP in these lines:
|
5. Replace `127.0.0.1` with the server IP in these lines:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||||
|
@ -66,7 +66,7 @@ args:
|
||||||
|
|
||||||
7. Rebuild and restart Perplexica:
|
7. Rebuild and restart Perplexica:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -76,25 +76,25 @@ docker compose up -d --build
|
||||||
|
|
||||||
2. Navigate to the `docker-compose.yaml` directory:
|
2. Navigate to the `docker-compose.yaml` directory:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
cd /path/to/docker-compose.yaml
|
cd /path/to/docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Stop and remove containers and images:
|
3. Stop and remove containers and images:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker compose down --rmi all
|
docker compose down --rmi all
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Edit `docker-compose.yaml`:
|
4. Edit `docker-compose.yaml`:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nano docker-compose.yaml
|
nano docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Replace `127.0.0.1` with the server IP:
|
5. Replace `127.0.0.1` with the server IP:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||||
|
@ -104,6 +104,6 @@ args:
|
||||||
|
|
||||||
7. Rebuild and restart Perplexica:
|
7. Rebuild and restart Perplexica:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue