Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xusenlin committed Nov 15, 2023
1 parent a00046b commit d03697a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def create_embeddings(request: EmbeddingCreateParams, model_name: str = No
instruction = "为这个句子生成表示以用于检索相关文章:"
elif "en" in config.EMBEDDING_NAME.lower():
instruction = "Represent this sentence for searching relevant passages: "
request.inputs = [instruction + q for q in request.input]
request.input = [instruction + q for q in request.input]

data, total_tokens = [], 0
batches = [
Expand Down

0 comments on commit d03697a

Please sign in to comment.