613 Downloads Updated 6 months ago
After you pull the image, you can simply use the openai compatible embedding endpoint:
curl -vvvv -H 'Content-Type: application/json' "http://localhost:11434/v1/embeddings" -d '{
"input": ["passage: my text 1", "passage: my text 2"],
"model": "jeffh/intfloat-e5-base-v2"
}'
Where model
can also include the tag as necessary (such as jeffh/intfloat-e5-base-v2:f16
)
The following models quantizations are available:
You should prefix your text with query:
or passage:
for queries and document indexing.