From ef0b42a3c04fe0cb0c490e2e0b08a5d605c1da14 Mon Sep 17 00:00:00 2001 From: Gautam <102940730+GautamR-Samagra@users.noreply.github.com> Date: Fri, 27 Oct 2023 09:52:29 +0530 Subject: [PATCH] Update model.py --- src/embeddings/instructor/local/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/embeddings/instructor/local/model.py b/src/embeddings/instructor/local/model.py index 7053025..be05c15 100644 --- a/src/embeddings/instructor/local/model.py +++ b/src/embeddings/instructor/local/model.py @@ -16,8 +16,8 @@ def __new__(cls, context): async def inference(self, request: ModelRequest): # Modify this function according to model requirements such that inputs and output remains the same - corpus_instruction = "Represent the Wikipedia document for retrieval:" - query_instruction = 'Represent the Wikipedia question for retrieving supporting documents: ' + corpus_instruction = "Represent the document for retrieval:" + query_instruction = 'Represent the question for retrieving supporting documents: ' query = request.query if(query != None):