ollama-python/examples/embed.py
2024-11-20 14:15:41 -08:00

5 lines
114 B
Python

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