Files
ollama-python/examples/embed.py
T
64c1eb78ff Examples refactor (#329)
* Examples and README updates

---------

Co-authored-by: fujitatomoya <[email protected]>
Co-authored-by: Michael Yang <[email protected]>
2024-11-21 15:14:59 -08:00

5 lines
114 B
Python

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