Muthukumaran
commited on
Commit
·
de8b481
1
Parent(s):
4f34e68
Update README.md
Browse files
README.md
CHANGED
@@ -65,7 +65,9 @@ input_passages = [
|
|
65 |
"As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day.
|
66 |
But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
|
67 |
"Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."]
|
68 |
-
query_embeddings = model.encode(input_queries)
|
|
|
|
|
69 |
```
|
70 |
|
71 |
## Citation
|
|
|
65 |
"As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day.
|
66 |
But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
|
67 |
"Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."]
|
68 |
+
query_embeddings = model.encode(input_queries)
|
69 |
+
passage_embeddings = model.encode(input_passages)
|
70 |
+
print(util.cos_sim(query_embeddings, passage_embeddings))
|
71 |
```
|
72 |
|
73 |
## Citation
|