Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam-Rajeev authored Oct 27, 2023
1 parent 68463fb commit ef0b42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/embeddings/instructor/local/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ef0b42a

Please sign in to comment.