Skip to content

Commit b632144

Browse files
authored
Merge pull request #82 from pmbstyle/1.1.10
[1.1.10] Improved local embeddings, markdown, and settings
2 parents 79ff957 + 1b2713c commit b632144

31 files changed

+1571
-457
lines changed

.github/workflows/build-go-backend.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,26 @@ on:
1515
jobs:
1616
build-go:
1717
name: Build Go Backend
18-
runs-on: ubuntu-latest
1918
strategy:
2019
matrix:
2120
include:
22-
- goos: windows
21+
- os: windows-latest
22+
goos: windows
2323
goarch: amd64
2424
output: alice-backend.exe
25-
- goos: darwin
25+
- os: macos-13
26+
goos: darwin
2627
goarch: amd64
2728
output: alice-backend
28-
- goos: darwin
29+
- os: macos-14
30+
goos: darwin
2931
goarch: arm64
3032
output: alice-backend
31-
- goos: linux
33+
- os: ubuntu-latest
34+
goos: linux
3235
goarch: amd64
3336
output: alice-backend
37+
runs-on: ${{ matrix.os }}
3438

3539
steps:
3640
- name: Checkout code
@@ -53,6 +57,12 @@ jobs:
5357
${{ runner.os }}-go-${{ matrix.goos }}-${{ matrix.goarch }}-
5458
${{ runner.os }}-go-
5559
60+
- name: Install system dependencies
61+
if: matrix.os == 'ubuntu-latest'
62+
run: |
63+
sudo apt-get update
64+
sudo apt-get install -y build-essential
65+
5666
- name: Install dependencies
5767
working-directory: backend
5868
run: go mod download
@@ -74,14 +84,7 @@ jobs:
7484
GOARCH: ${{ matrix.goarch }}
7585
CGO_ENABLED: 1
7686
run: |
77-
# Install cross-compilation tools if needed
78-
if [ "${{ matrix.goos }}" = "windows" ]; then
79-
sudo apt-get update
80-
sudo apt-get install -y gcc-mingw-w64
81-
export CC=x86_64-w64-mingw32-gcc
82-
export CXX=x86_64-w64-mingw32-g++
83-
fi
84-
87+
echo "Building Go backend for ${{ matrix.goos }}/${{ matrix.goarch }} on ${{ matrix.os }}..."
8588
go build -v -ldflags="-s -w" -o ${{ matrix.output }} .
8689
8790
- name: Test binary

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,20 @@ jobs:
100100
run: mkdir -p resources/backend
101101
shell: bash
102102

103+
- name: Install build dependencies
104+
run: |
105+
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
106+
sudo apt-get update
107+
sudo apt-get install -y build-essential
108+
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
109+
# Windows has build tools available by default
110+
echo "Using Windows build tools"
111+
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
112+
# macOS has build tools available via Xcode Command Line Tools
113+
echo "Using macOS build tools"
114+
fi
115+
shell: bash
116+
103117
- name: Build Go Backend and Download Models
104118
run: npm run build:go
105119
shell: bash

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@ resources/python/alice-ai-backend.exe
4141
/python/__pycache__
4242
/resources
4343
/backend/bin
44+
/backend/lib
45+
/backend/models
4446
/bin
4547
/models
48+
AGENTS.md
49+
backend/alice-backend

backend/go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ toolchain go1.24.4
77
require (
88
github.com/gorilla/mux v1.8.1
99
github.com/rs/cors v1.11.0
10+
github.com/yalue/onnxruntime_go v1.21.0
1011
)
11-
12-
require github.com/ggerganov/whisper.cpp/bindings/go v0.0.0-20250824163423-7745fcf32846 // indirect

backend/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
github.com/ggerganov/whisper.cpp/bindings/go v0.0.0-20250824163423-7745fcf32846 h1:aaLWbfqU+D/FQdUS/RvXB6AI0CIToj47pBVaLQE3pVs=
2-
github.com/ggerganov/whisper.cpp/bindings/go v0.0.0-20250824163423-7745fcf32846/go.mod h1:qyHjS/50ORo01H0NsuEEGsQR9VCtOcEye0gUl2sx1s8=
31
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
42
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
53
github.com/rs/cors v1.11.0 h1:0B9GE/r9Bc2UxRMMtymBkHTenPkHDv0CW4Y98GBY+po=
64
github.com/rs/cors v1.11.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
5+
github.com/yalue/onnxruntime_go v1.21.0 h1:DdtvfY7OP5gR8mwPDqAOAQckf+KcI30hPNJL8hQaYWI=
6+
github.com/yalue/onnxruntime_go v1.21.0/go.mod h1:b4X26A8pekNb1ACJ58wAXgNKeUCGEAQ9dmACut9Sm/4=

backend/internal/minilm/embeddings.go

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)