Skip to content

Commit 3db03b9

Browse files
committed
refactor(embedding): replace providers with octolib integration
- Remove OpenAI, HuggingFace, FastEmbed, Google, and Jina providers - Delete legacy embedding modules, tests, and related features - Introduce octolib crate for centralized embedding support - Refactor embedding generation and batching to use octolib APIs - Add compatibility types and unified embedding config struct - Move token counting, batching, and hashing utilities to octolib - Upgrade Rust toolchain to 1.91.1 and synchronize dependencies
1 parent eb6db5f commit 3db03b9

File tree

22 files changed

+1016
-3621
lines changed

22 files changed

+1016
-3621
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Install Rust
22-
uses: dtolnay/rust-toolchain@1.87.0
22+
uses: dtolnay/rust-toolchain@1.91.1
2323
with:
2424
components: rustfmt, clippy
2525

@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/checkout@v4
5151

5252
- name: Install Rust
53-
uses: dtolnay/rust-toolchain@1.87.0
53+
uses: dtolnay/rust-toolchain@1.91.1
5454
with:
5555
components: rustfmt
5656

@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/checkout@v4
6666

6767
- name: Install Rust
68-
uses: dtolnay/rust-toolchain@1.87.0
68+
uses: dtolnay/rust-toolchain@1.91.1
6969
with:
7070
components: clippy
7171

@@ -94,7 +94,7 @@ jobs:
9494
strategy:
9595
matrix:
9696
os: [ubuntu-latest, windows-latest, macos-latest]
97-
rust: [1.87.0]
97+
rust: [1.91.1]
9898
include:
9999
- os: ubuntu-latest
100100
rust: beta
@@ -152,7 +152,7 @@ jobs:
152152
uses: actions/checkout@v4
153153

154154
- name: Install Rust
155-
uses: dtolnay/rust-toolchain@1.87.0
155+
uses: dtolnay/rust-toolchain@1.91.1
156156

157157
- name: Install protobuf compiler
158158
run: |
@@ -173,7 +173,7 @@ jobs:
173173
uses: actions/checkout@v4
174174

175175
- name: Install Rust
176-
uses: dtolnay/rust-toolchain@1.87.0
176+
uses: dtolnay/rust-toolchain@1.91.1
177177

178178
- name: Install protobuf compiler
179179
run: |
@@ -202,4 +202,4 @@ jobs:
202202
uses: codecov/codecov-action@v4
203203
with:
204204
file: ./cobertura.xml
205-
fail_ci_if_error: false
205+
fail_ci_if_error: false

.github/workflows/dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Install Rust
23-
uses: dtolnay/rust-toolchain@1.87.0
23+
uses: dtolnay/rust-toolchain@1.91.1
2424

2525
- name: Install protobuf compiler
2626
run: |
@@ -75,4 +75,4 @@ jobs:
7575
7676
This PR was automatically created by the dependency update workflow.
7777
branch: chore/update-dependencies
78-
delete-branch: true
78+
delete-branch: true

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
uses: actions/checkout@v4
159159

160160
- name: Install Rust
161-
uses: dtolnay/rust-toolchain@1.87.0
161+
uses: dtolnay/rust-toolchain@1.91.1
162162
with:
163163
targets: ${{ matrix.target }}
164164

@@ -192,7 +192,7 @@ jobs:
192192
docker run --rm \
193193
-v "$(pwd):/workspace" \
194194
-w /workspace \
195-
rust:1.87.0-alpine3.21 \
195+
rust:1.91.1-alpine3.21 \
196196
sh -c "
197197
apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconfig gcc g++ protobuf-dev && \
198198
rustup target add ${{ matrix.target }} && \
@@ -249,7 +249,7 @@ jobs:
249249
uses: actions/checkout@v4
250250

251251
- name: Install Rust
252-
uses: dtolnay/rust-toolchain@1.87.0
252+
uses: dtolnay/rust-toolchain@1.91.1
253253

254254
- name: Install protobuf compiler
255255
run: |
@@ -411,4 +411,4 @@ jobs:
411411
ghcr.io/${{ steps.repo.outputs.repository }}:latest
412412
ghcr.io/${{ steps.repo.outputs.repository }}:${{ needs.create-release.outputs.version }}
413413
cache-from: type=gha
414-
cache-to: type=gha,mode=max
414+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)