Skip to content

update documentation and skills - #489

Open
davidkoski wants to merge 1 commit into
mainfrom
update-docs
Open

davidkoski wants to merge 1 commit into
mainfrom
update-docs

Conversation

@davidkoski

Copy link
Copy Markdown
Member

Proposed changes

  • make sure we are using current best practices e.g. for #huggingFaceTokenizerLoader()
  • where found, update skills to current API

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

- make sure we are using current best practices e.g. for #huggingFaceTokenizerLoader()
- where found, update skills to current API
@davidkoski
davidkoski requested a review from angeloskath July 31, 2026 15:58
Comment on lines +13 to +16
let modelContainer = try await EmbedderModelFactory.shared.loadContainer(
from: #hubDownloader(),
using: #huggingFaceTokenizerLoader(),
configuration: EmbedderRegistry.nomic_text_v1_5

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Some stragglers using the old API

let texts = ["First text", "Second text", "Third text"]

let embeddings = await container.perform { model, tokenizer, pooler in
let embeddings = await container.perform { context in

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Update this to the non-deprecated form of the call. Note that all of this will be obsolete with #335

@CharlieTLe CharlieTLe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants