mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-19 13:00:40 +00:00
fix: added support for trust_remote_code (#1454)
Closes #1285 Added trust_remote_code to the SentenceTransformerEmbeddings class. Defaults to `False`
This commit is contained in:
@@ -17,6 +17,7 @@ Allows you to set parameters when registering a `sentence-transformers` object.
|
||||
| `name` | `str` | `all-MiniLM-L6-v2` | The name of the model |
|
||||
| `device` | `str` | `cpu` | The device to run the model on (can be `cpu` or `gpu`) |
|
||||
| `normalize` | `bool` | `True` | Whether to normalize the input text before feeding it to the model |
|
||||
| `trust_remote_code` | `bool` | `False` | Whether to trust and execute remote code from the model's Huggingface repository |
|
||||
|
||||
|
||||
??? "Check out available sentence-transformer models here!"
|
||||
|
||||
Reference in New Issue
Block a user