ollama-python/examples/embed/embed.py
2025-09-24 15:10:00 -07:00

5 lines
114 B
Python

from ollama import embed
response = embed(model='llama3.2', input='Hello, world!')
print(response['embeddings'])