Didn't found the reference for transform query in the mixbread-ai blogs

#27
by iamsatyapati - opened

For retrieval you need to pass this prompt. Please find our more in our blog post.

def transform_query(query: str) -> str:
""" For retrieval, add the prompt for query (not for documents).
"""
return f'Represent this sentence for searching relevant passages: {query}'

Sign up or log in to comment