| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "transformers", | |
| # "torch", | |
| # ] | |
| # /// | |
| # Use a pipeline as a high-level helper | |
| from transformers import pipeline | |
| pipe = pipeline("feature-extraction", model="jinaai/jina-embeddings-v3", trust_remote_code=True) | |
| # Load model directly | |
| from transformers import AutoModel | |
| model = AutoModel.from_pretrained("jinaai/jina-embeddings-v3", trust_remote_code=True) | |