Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit c483bcb

Browse files
Merge branch 'dev' into chore/model-run-docs-update
2 parents b558009 + f231e76 commit c483bcb

File tree

3 files changed

+46
-17
lines changed

3 files changed

+46
-17
lines changed

docs/docs/architecture/cortex-db.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: cortex.db
3+
description: cortex.db Overview.
4+
slug: "cortex-db"
5+
---
6+
7+
import Tabs from "@theme/Tabs";
8+
import TabItem from "@theme/TabItem";
9+
10+
:::warning
11+
🚧 Cortex.cpp is currently under development. Our documentation outlines the intended behavior of Cortex, which may not yet be fully implemented in the codebase.
12+
:::
13+
14+
This document outlines the architecture of the database designed to store and manage various types of entities and their associated metadata.
15+
16+
## Table Structure
17+
### models Table
18+
The `models` table is designed to hold metadata about various AI models. Below is the structure of the table:
19+
20+
| Column Name | Data Type | Description |
21+
|--------------------|-----------|---------------------------------------------------------|
22+
| model_id | TEXT | A unique identifier for each model (Primary Key). |
23+
| author_repo_id | TEXT | The identifier for the repository where the model is stored. |
24+
| branch_name | TEXT | The branch name in the repository that contains the model. |
25+
| path_to_model_yaml | TEXT | The file path to the YAML configuration file for the model. |

docs/docs/architecture/cortexrc.mdx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,37 @@ Cortex.cpp supports reading its configuration from a file called `.cortexrc`. Us
1616
## File Location
1717
The configuration file is stored in the following locations:
1818

19-
- **Windows**:
20-
- Stable: `C:\Users\<username>\.cortexrc`
21-
- Beta: `C:\Users\<username>\.cortexrc-beta`
22-
- Nighty: `C:\Users\<username>\.cortexrc-nightly`
23-
- **Linux**:
24-
- Stable: `/home/<username>/.cortexrc`
25-
- Beta: `/home/<username>/.cortexrc-beta`
26-
- Nighty: `/home/<username>/.cortexrc-nightly`
27-
- **macOS**:
28-
- Stable: `/Users/<username>/.cortexrc`
29-
- Beta: `/Users/<username>/.cortexrc-beta`
30-
- Nighty: `/Users/<username>/.cortexrc-nightly`
19+
- **Windows**: `C:\Users\<username>\.cortexrc`
20+
- **Linux**: `/home/<username>/.cortexrc`
21+
- **macOS**: `/Users/<username>/.cortexrc`
3122

3223
## Configuration Parameters
3324
You can configure the following parameters in the `.cortexrc` file:
3425
| Parameter | Description | Default Value |
3526
|------------------|--------------------------------------------------|--------------------------------|
3627
| `dataFolderPath` | Path to the folder where `.cortexrc` located. | User's home folder. |
37-
| `apiServerHost` | Host address for the Cortex.cpp API server. | `127.0.0.1` |
38-
| `apiServerPort` | Port number for the Cortex.cpp API server. | `39281` |
28+
| `apiServerHost` | Host address for the Cortex.cpp API server. | `127.0.0.1` |
29+
| `apiServerPort` | Port number for the Cortex.cpp API server. | `39281` |
30+
| `logFolderPath` | Path the folder where logs are located | User's home folder. |
31+
| `logLlamaCppPath` | The llama-cpp engine . | `./logs/cortex.log` |
32+
| `logTensorrtLLMPath` | The tensorrt-llm engine log file path. | `./logs/cortex.log` |
33+
| `logOnnxPath` | The onnxruntime engine log file path. | `./logs/cortex.log` |
34+
| `maxLogLines` | The maximum log lines that write to file. | `100000` |
35+
| `checkedForUpdateAt` | The last time for checking updates. | `0` |
36+
| `latestRelease` | The lastest release vesion. | Empty string |
37+
| `huggingFaceToken` | HuggingFace token. | Empty string |
3938

4039
Example of the `.cortexrc` file:
4140
```
41+
logFolderPath: /Users/<username>/cortexcpp
42+
logLlamaCppPath: ./logs/cortex.log
43+
logTensorrtLLMPath: ./logs/cortex.log
44+
logOnnxPath: ./logs/cortex.log
4245
dataFolderPath: /Users/<username>/cortexcpp
46+
maxLogLines: 100000
4347
apiServerHost: 127.0.0.1
4448
apiServerPort: 39281
49+
checkedForUpdateAt: 1730501224
50+
latestRelease: v1.0.1
51+
huggingFaceToken: ""
4552
```

0 commit comments

Comments
 (0)