Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address #232 Now **kwargs are being passed from `hf.embed()` and `hf.embed_many()` to the underlying `model.encode()` ``` from redisvl.utils.vectorize import HFTextVectorizer from tqdm.auto import tqdm hf = HFTextVectorizer(model="sentence-transformers/all-MiniLM-L6-v2") # Embed a sentence test = hf.embed("This is a test sentence.", show_progress_bar=True) #progress bar would show test = hf.embed("This is a test sentence.") #progress bar would show (default behavior as before) test = hf.embed("This is a test sentence.", show_progress_bar=False) #progress bar would NOT show # Uncomment to see vector embedding output print(test[:10]) ```
- Loading branch information