Merged
Conversation
pass output_file to hf_embed_chunks from inside hf_embed_df to fix the filenmae issue
…r debugging people's code/errors (including my own)
…fy and later hf_embed
add max_length to hf_embed_df and hf_embed_df
move hf_classify_df over to hf_classify_chunks not hf_classify_batch remove old comments from hf_embed_df
… is to turn on 'AUTO_TRUNCATE' in the Set up of the endpoint
Build README Update NEWS.md
…s to the hf_*_df functions.
build rd files add comma in embed test add test/dev docs to .Rbuildignore
…to files with the origianl variable names.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Version bump to 0.1.2
Release notes:
EndpointR 0.1.2
File writing improvements:
hf_embed_df()andhf_classify_df()now write intermediate results as.parquetfiles tooutput_dirdirectories, similar to improvements in 0.1.1 for OpenAI functionsParameter changes: Moved from
batch_sizetochunk_sizeargument acrosshf_embed_df(),hf_classify_df(), andoai_complete_df()for consistencyNew chunking functions: Introduced
hf_embed_chunks()andhf_classify_chunks()for more efficient batch processing with better error handlingDependency update: Package now depends on
arrowfor faster.parquetfile writing and readingMetadata tracking: Hugging Face functions that write to files (
hf_embed_df(),hf_classify_df(),hf_embed_chunks(),hf_classify_chunks()) now writemetadata.jsonto output directories containing:max_length parameter: Added
max_lengthparameter tohf_classify_df()andhf_classify_chunks()for text truncation control. Note:hf_embed_df()handles truncation automatically via endpoint configuration (setAUTO_TRUNCATEin endpoint settings)New utility functions:
hf_get_model_max_length()- Retrieve maximum token length for a Hugging Face modelhf_get_endpoint_info()- Retrieve detailed information about a Hugging Face Inference EndpointImproved reporting: Chunked/batch processing functions now report total successes and failures at completion