I am using Ollama embeddings and was wondering if there are fields for query_instruction similar to HuggingFaceEmbedding:
EMBED_MODEL = OllamaEmbedding(
model_name=EMBED_MODEL_NAME, # mxbai-embed-large:latest
base_url="http://localhost:11435",
ollama_additional_kwargs={"mirostat": 0},
# ? add query_instruction?
)
for mxbai-embed-large:latest, it asks for: "Represent this sentence for searching relevant passages:" for the queries.
if there isn't a built in field, do I just need to manually add the prompt to the queries at retreival time?
retriever.retrieve(f"Represent this sentence for searching relevant passages: {query}")