Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ def bi_encode(bi_enc,passages):
|
|
146 |
|
147 |
instruction = "Represent this sentence for searching relevant passages: "
|
148 |
|
149 |
-
corpus_embeddings = bi_encoder.encode([instruction + sentence for sentence in passages],
|
150 |
|
151 |
else:
|
152 |
|
|
|
146 |
|
147 |
instruction = "Represent this sentence for searching relevant passages: "
|
148 |
|
149 |
+
corpus_embeddings = bi_encoder.encode([instruction + sentence for sentence in passages], normalize_embeddings=True)
|
150 |
|
151 |
else:
|
152 |
|