Update README.md
Browse files
README.md
CHANGED
|
@@ -81,17 +81,17 @@ documents = [
|
|
| 81 |
]
|
| 82 |
rank(query, documents)
|
| 83 |
# [('O Pantanal é uma extensa planície alagável localizada na América do Sul, principalmente no Brasil, mas também em partes da Bolívia e Paraguai.',
|
| 84 |
-
# 0.
|
| 85 |
# ('O Pantanal é um importante habitat para diversas espécies de animais, inclusive aves migratórias.',
|
| 86 |
-
# 0.
|
| 87 |
# ('O Pantanal sofre com impactos ambientais, como a exploração mineral e o desmatamento.',
|
| 88 |
-
# 0.
|
| 89 |
# ('É um local com importância histórica e cultural para as populações locais.',
|
| 90 |
-
# 0.
|
| 91 |
-
# ('Sua beleza natural, com rios e lagos interligados, atrai turistas de todo o mundo.',
|
| 92 |
-
# 0.02968024567026795),
|
| 93 |
# ('É um dos ecossistemas mais ricos em biodiversidade do mundo, abrigando uma grande variedade de espécies animais e vegetais.',
|
| 94 |
-
# 0.
|
|
|
|
|
|
|
| 95 |
|
| 96 |
# Sample - 2
|
| 97 |
query = "What is the speed of light?"
|
|
@@ -104,13 +104,13 @@ documents = [
|
|
| 104 |
]
|
| 105 |
rank(query, documents)
|
| 106 |
# [('The speed of light in a vacuum is approximately 299,792 kilometers per second (km/s), or about 186,282 miles per second.',
|
| 107 |
-
# 0.
|
| 108 |
-
# ("Isaac Newton's laws of motion and gravity laid the groundwork for classical mechanics.",
|
| 109 |
-
# 0.2309855191720416),
|
| 110 |
# ('The Earth orbits the Sun at an average distance of about 93 million miles, taking roughly 365.25 days to complete one revolution.',
|
| 111 |
-
# 0.
|
| 112 |
# ('Light can be described as both a wave and a particle, a concept known as wave-particle duality.',
|
| 113 |
-
# 0.
|
| 114 |
# ('The theory of relativity, proposed by Albert Einstein, has revolutionized our understanding of space, time, and gravity.',
|
| 115 |
-
# 0.
|
|
|
|
|
|
|
| 116 |
```
|
|
|
|
| 81 |
]
|
| 82 |
rank(query, documents)
|
| 83 |
# [('O Pantanal é uma extensa planície alagável localizada na América do Sul, principalmente no Brasil, mas também em partes da Bolívia e Paraguai.',
|
| 84 |
+
# 0.34217479171361365),
|
| 85 |
# ('O Pantanal é um importante habitat para diversas espécies de animais, inclusive aves migratórias.',
|
| 86 |
+
# 0.3310142292228493),
|
| 87 |
# ('O Pantanal sofre com impactos ambientais, como a exploração mineral e o desmatamento.',
|
| 88 |
+
# 0.2649093801652631),
|
| 89 |
# ('É um local com importância histórica e cultural para as populações locais.',
|
| 90 |
+
# 0.027501075607910826),
|
|
|
|
|
|
|
| 91 |
# ('É um dos ecossistemas mais ricos em biodiversidade do mundo, abrigando uma grande variedade de espécies animais e vegetais.',
|
| 92 |
+
# 0.02122344629201432),
|
| 93 |
+
# ('Sua beleza natural, com rios e lagos interligados, atrai turistas de todo o mundo.',
|
| 94 |
+
# 0.013177076998348802)]
|
| 95 |
|
| 96 |
# Sample - 2
|
| 97 |
query = "What is the speed of light?"
|
|
|
|
| 104 |
]
|
| 105 |
rank(query, documents)
|
| 106 |
# [('The speed of light in a vacuum is approximately 299,792 kilometers per second (km/s), or about 186,282 miles per second.',
|
| 107 |
+
# 0.2666552015232382),
|
|
|
|
|
|
|
| 108 |
# ('The Earth orbits the Sun at an average distance of about 93 million miles, taking roughly 365.25 days to complete one revolution.',
|
| 109 |
+
# 0.25073310834800405),
|
| 110 |
# ('Light can be described as both a wave and a particle, a concept known as wave-particle duality.',
|
| 111 |
+
# 0.23357900324953587),
|
| 112 |
# ('The theory of relativity, proposed by Albert Einstein, has revolutionized our understanding of space, time, and gravity.',
|
| 113 |
+
# 0.1280649276771122),
|
| 114 |
+
# ("Isaac Newton's laws of motion and gravity laid the groundwork for classical mechanics.",
|
| 115 |
+
# 0.12096775920210973)]
|
| 116 |
```
|