Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzCrazyKns committed Dec 2, 2024
2 parents 8cb74f1 + f889127 commit d79d854
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 78 deletions.
34 changes: 17 additions & 17 deletions docs/API/SEARCH.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,24 @@ The response from the API includes both the final message and the sources used t

```json
{
"message": "Perplexica is an innovative, open-source AI-powered search engine designed to enhance the way users search for information online. Here are some key features and characteristics of Perplexica:\n\n- **AI-Powered Technology**: It utilizes advanced machine learning algorithms to not only retrieve information but also to understand the context and intent behind user queries, providing more relevant results [1][5].\n\n- **Open-Source**: Being open-source, Perplexica offers flexibility and transparency, allowing users to explore its functionalities without the constraints of proprietary software [3][10].",
"sources": [
{
"pageContent": "Perplexica is an innovative, open-source AI-powered search engine designed to enhance the way users search for information online.",
"metadata": {
"title": "What is Perplexica, and how does it function as an AI-powered search ...",
"url": "https://askai.glarity.app/search/What-is-Perplexica--and-how-does-it-function-as-an-AI-powered-search-engine"
}
},
{
"pageContent": "Perplexica is an open-source AI-powered search tool that dives deep into the internet to find precise answers.",
"metadata": {
"title": "Sahar Mor's Post",
"url": "https://www.linkedin.com/posts/sahar-mor_a-new-open-source-project-called-perplexica-activity-7204489745668694016-ncja"
}
}
"message": "Perplexica is an innovative, open-source AI-powered search engine designed to enhance the way users search for information online. Here are some key features and characteristics of Perplexica:\n\n- **AI-Powered Technology**: It utilizes advanced machine learning algorithms to not only retrieve information but also to understand the context and intent behind user queries, providing more relevant results [1][5].\n\n- **Open-Source**: Being open-source, Perplexica offers flexibility and transparency, allowing users to explore its functionalities without the constraints of proprietary software [3][10].",
"sources": [
{
"pageContent": "Perplexica is an innovative, open-source AI-powered search engine designed to enhance the way users search for information online.",
"metadata": {
"title": "What is Perplexica, and how does it function as an AI-powered search ...",
"url": "https://askai.glarity.app/search/What-is-Perplexica--and-how-does-it-function-as-an-AI-powered-search-engine"
}
},
{
"pageContent": "Perplexica is an open-source AI-powered search tool that dives deep into the internet to find precise answers.",
"metadata": {
"title": "Sahar Mor's Post",
"url": "https://www.linkedin.com/posts/sahar-mor_a-new-open-source-project-called-perplexica-activity-7204489745668694016-ncja"
}
}
....
]
]
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Perplexica's Architecture
# Perplexica's Architecture

Perplexica's architecture consists of the following key components:

Expand Down
6 changes: 3 additions & 3 deletions docs/architecture/WORKING.md
Original file line number Diff line number Diff line change
@@ -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).

Expand All @@ -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.
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.

### 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.
90 changes: 45 additions & 45 deletions docs/installation/NETWORKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,100 +10,100 @@ This guide will show you how to make Perplexica available over a network. Follow

3. Stop and remove the existing Perplexica containers and images:

```
docker compose down --rmi all
```
```bash
docker compose down --rmi all
```

4. Open the `docker-compose.yaml` file in a text editor like Notepad++

5. Replace `127.0.0.1` with the IP address of the server Perplexica is running on in these two lines:

```
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
```
```bash
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
```

6. Save and close the `docker-compose.yaml` file

7. Rebuild and restart the Perplexica container:

```
docker compose up -d --build
```
```bash
docker compose up -d --build
```

## macOS

1. Open the Terminal application

2. Navigate to the directory with the `docker-compose.yaml` file:

```
cd /path/to/docker-compose.yaml
```
```bash
cd /path/to/docker-compose.yaml
```

3. Stop and remove existing containers and images:

```
docker compose down --rmi all
```
```bash
docker compose down --rmi all
```

4. Open `docker-compose.yaml` in a text editor like Sublime Text:

```
nano docker-compose.yaml
```
```bash
nano docker-compose.yaml
```

5. Replace `127.0.0.1` with the server IP in these lines:

```
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
```
```bash
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
```

6. Save and exit the editor

7. Rebuild and restart Perplexica:

```
docker compose up -d --build
```
```bash
docker compose up -d --build
```

## Linux

1. Open the terminal

2. Navigate to the `docker-compose.yaml` directory:

```
cd /path/to/docker-compose.yaml
```
```bash
cd /path/to/docker-compose.yaml
```

3. Stop and remove containers and images:

```
docker compose down --rmi all
```
```bash
docker compose down --rmi all
```

4. Edit `docker-compose.yaml`:

```
nano docker-compose.yaml
```
```bash
nano docker-compose.yaml
```

5. Replace `127.0.0.1` with the server IP:

```
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
```
```bash
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
```

6. Save and exit the editor

7. Rebuild and restart Perplexica:

```
docker compose up -d --build
```
```bash
docker compose up -d --build
```
24 changes: 12 additions & 12 deletions docs/installation/UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@ To update Perplexica to the latest version, follow these steps:

1. Clone the latest version of Perplexica from GitHub:

```bash
git clone https://github.com/ItzCrazyKns/Perplexica.git
```
```bash
git clone https://github.com/ItzCrazyKns/Perplexica.git
```

2. Navigate to the Project Directory.

3. Pull latest images from registry.

```bash
docker compose pull
```
```bash
docker compose pull
```

4. Update and Recreate containers.

```bash
docker compose up -d
```
```bash
docker compose up -d
```

5. Once the command completes running go to http://localhost:3000 and verify the latest changes.

## For non Docker users

1. Clone the latest version of Perplexica from GitHub:

```bash
git clone https://github.com/ItzCrazyKns/Perplexica.git
```
```bash
git clone https://github.com/ItzCrazyKns/Perplexica.git
```

2. Navigate to the Project Directory
3. Execute `npm i` in both the `ui` folder and the root directory.
Expand Down

0 comments on commit d79d854

Please sign in to comment.