-
Notifications
You must be signed in to change notification settings - Fork 0
Embedder #1
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
Open
ArnabChatterjee20k
wants to merge
10
commits into
master
Choose a base branch
from
embedder
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Embedder #1
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fcaa5df
feat: add embedding module with configuration and client
ArnabChatterjee20k 4599430
feat: update embedding configuration and enhance embedding client fun…
ArnabChatterjee20k 396ece4
refactor: rename EmbedOutcome to EmbeddingResult for consistency in e…
ArnabChatterjee20k dea5e94
feat: add embedding endpoint with request handling and response seria…
ArnabChatterjee20k 207be4e
feat: implement next_index function for round-robin model acquisition…
ArnabChatterjee20k d196e8d
feat: add initial Docker setup with Dockerfile, docker-compose, CI wo…
ArnabChatterjee20k cbd0d1c
Merge remote-tracking branch 'origin/master' into embedder
ArnabChatterjee20k 70bf5dc
updaetd dockerfile
ArnabChatterjee20k 141afde
fix: improve error handling and memory pool size calculation in Embed…
ArnabChatterjee20k 161d433
fix: add missing g++ installation in Dockerfile builder stage
ArnabChatterjee20k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| target | ||
| .git | ||
| .github | ||
| .env | ||
| .env.* | ||
| *.md | ||
| Dockerfile | ||
| .dockerignore | ||
| docker-compose.yml | ||
| tests | ||
| models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| EMBEDDING_DEFAULT_MODEL=nomic-embed-text | ||
| EMBEDDING_CACHE_DIR=./models | ||
| EMBEDDING_POOL_SIZE=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| RUSTFLAGS: -D warnings | ||
|
|
||
| jobs: | ||
| test: | ||
| name: fmt + clippy + test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: rustfmt, clippy | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: cargo fmt | ||
| run: cargo fmt --all -- --check | ||
|
|
||
| - name: cargo clippy | ||
| run: cargo clippy --all-targets -- -D warnings | ||
|
|
||
| # Compiles the integration tests in tests/ but runs only the non-ignored | ||
| # ones; e2e tests are #[ignore]'d so CI does not download ONNX models. | ||
| - name: cargo test | ||
| run: cargo test --all-targets | ||
|
|
||
| docker: | ||
| name: docker build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Build image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| push: false | ||
| tags: embedding:ci | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /target | ||
| .fastembed_cache/ | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure we are not ignoring the onnx cache here so start the server directly with the onnx cache to have a high startup time