[GH-ISSUE #237] Embeddings in Modelfiles #46609

Closed
opened 2026-04-27 23:12:06 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @BruceMacD on GitHub (Jul 28, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/237

Originally assigned to: @BruceMacD on GitHub.

Originally created by @BruceMacD on GitHub (Jul 28, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/237 Originally assigned to: @BruceMacD on GitHub.
GiteaMirror added the feature request label 2026-04-27 23:12:06 -05:00
Author
Owner

@BruceMacD commented on GitHub (Aug 1, 2023):

Work in progress Modelfile format:

FROM llama2
EMBED /path/to/doc.txt
TEMPLATE """
Context:
{{ .Embed }}
User:
{{ .User }}
"""
<!-- gh-comment-id:1661105738 --> @BruceMacD commented on GitHub (Aug 1, 2023): Work in progress Modelfile format: ``` FROM llama2 EMBED /path/to/doc.txt TEMPLATE """ Context: {{ .Embed }} User: {{ .User }} """ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46609