Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #202 from janhq/docs-update
Browse files Browse the repository at this point in the history
Update the quickstart, jan data folder, and desktop installations
  • Loading branch information
freelerobot authored May 14, 2024
2 parents a4f1320 + 5729449 commit 1620208
Show file tree
Hide file tree
Showing 32 changed files with 991 additions and 450 deletions.
144 changes: 77 additions & 67 deletions _redirects

Large diffs are not rendered by default.

Binary file added src/pages/docs/_assets/amd.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/docs/_assets/delete-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/docs/_assets/instructions.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/docs/_assets/models.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions src/pages/docs/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"quickstart": {
"title": "Quickstart"
},
"desktop-installation": "Desktop Installation",
"desktop": "Desktop",
"server-installation": "Server Installation",
"data-folder": "Jan Data Folder",
"user-guides": {
"title": "BASIC USAGE",
"type": "separator"
Expand All @@ -25,12 +26,12 @@
"shortcuts": "Keyboard Shortcuts",
"local-api": "",
"inference-engines": {
"title": "INFERENCE ENGINES",
"title": "MODEL PROVIDER",
"type": "separator"
},
"built-in": "Built-in Engines",
"local-inference": "Local Engines",
"remote-inference": "Remote APIs",
"built-in": "Built-in Models",
"local-models": "Local Models",
"remote-models": "Remote APIs",
"extensions-separator": {
"title": "EXTENSIONS",
"type": "separator"
Expand Down
142 changes: 142 additions & 0 deletions src/pages/docs/data-folder.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
---
title: Jan Data Folder
description: Discover the Structure of Jan Data.
sidebar_position: 2
keywords:
[
Jan,
Customizable Intelligence, LLM,
local AI,
privacy focus,
free and open source,
private and offline,
conversational AI,
no-subscription fee,
large language models,
quickstart,
getting started,
using AI model,
]
---

import { Tabs } from 'nextra/components'
import { Callout, Steps } from 'nextra/components'

# Jan Data Folder
Jan stores your data locally in your own filesystem in a universal file format (JSON). We build for privacy by default and do not collect or sell your data.

This guide helps you understand where and how this data is stored. We'll also show you how to delete or move the data folder location.

## Folder Structure
Jan app data folder should have the following folder structure:
<Callout type="info">
Jan is stored in the root `~/jan` by default.
</Callout>
```yaml
/assistants
/jan
assistant.json
/shakespeare
assistant.json
/extensions
extensions.json
/@janhq
/extension_A
package.json
/logs
/app.txt
/models
/model_A
model.json
/settings
settings.json
/@janhq
/extension_A_Settings
settings.json
/threads
/jan_thread_A
messages.jsonl
thread.json
messages.jsonl
```
### `jan/` (The Root Directory)

This is the primary directory where all files related to Jan are stored. It typically resides in the user's home directory.

### `assistants/`

Stores configuration files for various AI assistants. Each assistant within this directory can have different settings.

- **Default Assistant**: Located in `/assistants/jan/`, it includes an `assistant.json` configuring the default settings and capabilities. The default sample of `assistan.json` is as follows:

```json
{
"avatar": "",
"id": "jan",
"object": "assistant",
"created_at": 1715132389207,
"name": "Jan",
"description": "A default assistant that can use all downloaded models",
"model": "*",
"instructions": ""
}

```

Each parameter in the file is defined as follows:

| Parameter | Description |
| --- | --- |
| avatar | Path to the assistant's avatar image, allowing visual customization. |
| id | Unique identifier for the assistant. |
| object | Indicates that this is an assistant configuration. |
| created_at | Timestamp of creation, in milliseconds since the epoch. |
| name | The assistant's name. |
| description | Describes the assistant’s capabilities and intended role. |
| model | Defines accessible models, with "*" representing access to all models. |
| instructions | Specifies queries and commands to tailor Jan's responses for improved interaction effectiveness. |
- **Custom Assistant Example**: The `/assistants/shakespeare/` shows a custom setup, also with its own `assistant.json`.

### `extensions/`

Extensions enhance Jan's functionality by adding new capabilities or integrating external services.

- **Extension Configuration**: The `extensions.json` in the `/extensions/` directory provides settings for all installed extensions.
- **Specific Extensions**: Subdirectories like `/@janhq/extension_A/` contain `package.json` files that import necessary modules for each extension.

### `logs/`

Logs from the application are stored here. This is useful for troubleshooting and monitoring the application's behavior over time. The file `/logs/app.txt` captures general application activity.

### `models/`

Stores the AI models that the assistants use to process requests and generate responses.

- **Model Configurations**: Each model directory, such as `/models/modelA/`, contains a `model.json` with settings specific to that model.

### `settings/`

General settings for the application are stored here, separate from individual assistant or engine configurations.

- **General Settings**: The `settings.json` in the `/settings/` directory holds application-wide settings.
- **Extension-specific Settings**: Additional settings for extensions are stored in respective subdirectories under `/settings/@janhq/`.

### `threads/`

Threads history is kept in this directory. Each session or thread is stored in a way that makes it easy to review past interactions. Each thread is stored in its subdirectory, such as `/threads/jan_unixstamp/`, with files like `messages.jsonl` and `thread.json` detailing the thread settings.

## Open the Data Folder

To open the Jan data folder, follow the steps in the [Settings](/docs/settings#access-the-jan-data-folder) guide.

## Delete Jan Data Folder

If you have uninstalled the Jan app, you may also want to delete the Jan data folder. You can automatically remove this folder during uninstallation by selecting **OK** when prompted.

![Delete Data Folder](./_assets/delete-data.png)

If you missed this step and need to delete the folder manually, please follow these instructions:

1. Go to the root data folder in your Users directory.
2. Locate the Jan data folder.
3. Delete the folder manually.
14 changes: 0 additions & 14 deletions src/pages/docs/desktop-installation/_meta.json

This file was deleted.

97 changes: 0 additions & 97 deletions src/pages/docs/desktop-installation/linux.mdx

This file was deleted.

79 changes: 0 additions & 79 deletions src/pages/docs/desktop-installation/mac.mdx

This file was deleted.

Loading

0 comments on commit 1620208

Please sign in to comment.