Skip to content

Commit

Permalink
refacto: Remove KB related features and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Aug 6, 2024
1 parent 2532836 commit f1fcfbd
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 1,121 deletions.
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/yarn
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-yarn-
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build
Expand Down
23 changes: 6 additions & 17 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:
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/yarn
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-yarn-
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Lint
Expand Down
23 changes: 6 additions & 17 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:
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/yarn
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-yarn-
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Lint
Expand Down
27 changes: 10 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@libertai/libertai-js",
"version": "0.0.9",
"version": "0.0.10",
"description": "In-browser SDK for interacting with LibertAI Decentralized AI Network",
"keywords": [],
"type": "module",
Expand Down Expand Up @@ -58,25 +58,18 @@
"start": "tsc -w",
"prepare": "yarn build"
},
"dependencies": {
"axios": "^1.7.3"
},
"devDependencies": {
"@types/node": "^20.14.9",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@types/node": "^20.14.14",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
},
"dependencies": {
"axios": "^1.7.2",
"langchain": "^0.1.37",
"localforage": "^1.10.0",
"ml-distance": "^4.0.1",
"uuid": "^10.0.0"
},
"resolutions": {
"@langchain/core": "^0.1"
"typescript": "^5.5.4"
}
}
17 changes: 0 additions & 17 deletions src/config.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/constants.ts

This file was deleted.

69 changes: 0 additions & 69 deletions src/idb.ts

This file was deleted.

11 changes: 1 addition & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
export { KnowledgeStore } from './knowledge-store.js';
export { LlamaCppApiEngine } from './inference.js';
export {
Model,
PromptFormat,
Message,
Persona,
Embedding,
Document,
SearchResult,
} from './types.js';
export { Model, PromptFormat, Message, Persona } from './types.js';
Loading

0 comments on commit f1fcfbd

Please sign in to comment.