Skip to content

Commit

Permalink
Merge pull request #10 from prattcmp/patch-1
Browse files Browse the repository at this point in the history
feat: Allow tokenizer to be used to count tokens and limit tokens
  • Loading branch information
Anush008 authored Dec 23, 2023
2 parents ffc58cf + 404885f commit 84191ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub trait EmbeddingBase<S: AsRef<str>> {

/// Rust representation of the FlagEmbedding model
pub struct FlagEmbedding {
tokenizer: Tokenizer,
pub tokenizer: Tokenizer,
session: Session,
model: EmbeddingModel,
}
Expand Down

0 comments on commit 84191ef

Please sign in to comment.