Skip to content

Commit

Permalink
Merge pull request #270 from ChatWithPDF/restructure
Browse files Browse the repository at this point in the history
Update model.py
  • Loading branch information
Gautam-Rajeev authored Nov 1, 2023
2 parents 68463fb + ef0b42a commit ec77faa
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 ec77faa

Please sign in to comment.