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

feat: update embedding #64

Merged
merged 2 commits into from
Dec 31, 2024
Merged

feat: update embedding #64

merged 2 commits into from
Dec 31, 2024

Conversation

jhen0409
Copy link
Member

  • add pooling_type & embd_normalize in init / embedding method
  • make n_ubatch same with n_batch if embedding enabled

- add pooling_type & embd_normalize in init / embedding method
- make n_ubatch same with n_batch if embedding enabled
@jhen0409 jhen0409 marked this pull request as ready for review December 31, 2024 02:10
@jhen0409 jhen0409 requested a review from Copilot December 31, 2024 02:10

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • src/EmbeddingWorker.cpp: Language not supported
  • src/EmbeddingWorker.h: Language not supported
  • src/LlamaContext.cpp: Language not supported
Comments suppressed due to low confidence (1)

lib/binding.ts:11

  • [nitpick] The variable name 'embd_normalize' is ambiguous. It should be renamed to 'embedding_normalize' for clarity and consistency.
embd_normalize?: number
@jhen0409 jhen0409 merged commit 1fc4c92 into main Dec 31, 2024
1 check passed
@jhen0409 jhen0409 deleted the jhen/embedding branch December 31, 2024 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant