Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knowledge base #22

Merged
merged 30 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
dd06afd
feat(kb): Setup
RezaRahemtola Jul 30, 2024
3ccf59e
feat(kb): Main page with creation and persistence on Aleph
RezaRahemtola Jul 30, 2024
c78fa03
feat(kb): Individual page and file upload
RezaRahemtola Aug 1, 2024
5b54cd2
ci: Fix caching and running on every push
RezaRahemtola Aug 1, 2024
629ccce
refacto: Icons and base dialog
RezaRahemtola Aug 1, 2024
15bcb3a
feat(kb): Delete document
RezaRahemtola Aug 1, 2024
35beb42
feat(kb): Rename document
RezaRahemtola Aug 1, 2024
f8a2b86
refacto: All possible icons migrated
RezaRahemtola Aug 1, 2024
5867e62
feat(kb): All content encrypted
RezaRahemtola Aug 3, 2024
c4c90bb
feat(kb): Encrypt encryption key and iv
RezaRahemtola Aug 4, 2024
1396d9d
feat(kb): Migrations of chats and personas to support KB
RezaRahemtola Aug 5, 2024
e40492a
feat(kb): Link KB to chat
RezaRahemtola Aug 6, 2024
56fe885
feat(kb): Link to personas
RezaRahemtola Aug 6, 2024
bb69ec4
feat: Remove chat tags
RezaRahemtola Aug 6, 2024
ab6bc25
feat(kb): Generating embedding chunks and vectors
RezaRahemtola Aug 6, 2024
da78e58
feat(kb): Chunks generation and basic search results
RezaRahemtola Aug 6, 2024
a5aa223
feat(kb): Rename and delete KB
RezaRahemtola Aug 7, 2024
42d4c50
refacto(kb): Simplify code of aleph persistence
RezaRahemtola Aug 7, 2024
c809fd9
fix: style
RezaRahemtola Aug 7, 2024
48e5ee6
feat(kb): Use document as attachment
RezaRahemtola Aug 7, 2024
d46e514
feat: Load environment variables and use Aleph testnet
RezaRahemtola Aug 7, 2024
0315f6d
feat(kb): Disable knowledge selector if no KB found
RezaRahemtola Aug 7, 2024
70f011b
fix: Run after build issue
RezaRahemtola Aug 9, 2024
88c7147
feat(kb): Add path support for the future
RezaRahemtola Aug 24, 2024
1fe4254
feat(kb): Documentation link added
RezaRahemtola Sep 1, 2024
e258d2f
fix: Display links in markdown AI response
RezaRahemtola Sep 4, 2024
0339f55
fix(kb): Require account connected to access page
RezaRahemtola Sep 5, 2024
01c2628
feat(kb): Empty states for list
RezaRahemtola Sep 10, 2024
ee0340a
feat(kb): Empty state for documents
RezaRahemtola Sep 10, 2024
9cf69f2
feat(kb): Update channels
RezaRahemtola Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use the testnet in development
# ALEPH_API_URL=https://api.twentysix.testnet.network
21 changes: 5 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
name: Build

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/npm.lock') }}
restore-keys: |
${{ runner.OS }}-npm-
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
Expand Down
21 changes: 5 additions & 16 deletions .github/workflows/fmt.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
name: FormatCheck

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
on: push

jobs:
format-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/npm.lock') }}
restore-keys: |
${{ runner.OS }}-npm-
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Lint
Expand Down
21 changes: 5 additions & 16 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
name: Lint

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on: push

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/yarn
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-yarn-
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Lint
Expand Down
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,29 @@ A UI for decentralized AI

## Install the dependencies

```bash
npm i
```sh
npm install
```

### Start the app in development mode (hot-code reloading, error reporting, etc.)

```bash
quasar dev
```
> Don't forget to also fill environment variables in a `.env` file. You can use [`.env.example`](.env.example) as an
> inspiration.

### Lint the files
### Start the app in development mode (hot-code reloading, error reporting, etc.)

```bash
npm run lint
```sh
npm run dev
```

### Format the files
### Format and lint the files

```bash
```sh
npm run format
npm run lint
```

### Build the app for production

```bash
```sh
npm run build
```

Expand Down
Loading