Update README.md
Browse files
README.md
CHANGED
|
@@ -58,13 +58,13 @@ model = SearchR3(
|
|
| 58 |
'ytgui/Search-R3.0-Small', max_length=1024, batch_size=1
|
| 59 |
)
|
| 60 |
|
| 61 |
-
# 2. generating the
|
| 62 |
reasoning = model.generate(
|
| 63 |
batch=['what python library is useful for data analysis?']
|
| 64 |
)
|
| 65 |
pprint(reasoning)
|
| 66 |
|
| 67 |
-
# 3. compare distances to pre-encoded documents
|
| 68 |
documents = [
|
| 69 |
'pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.',
|
| 70 |
'The giant panda (Ailuropoda melanoleuca), also known as the panda bear or simply panda, is a bear species endemic to China. It is characterised by its white coat with black patches around the eyes, ears, legs and shoulders.',
|
|
|
|
| 58 |
'ytgui/Search-R3.0-Small', max_length=1024, batch_size=1
|
| 59 |
)
|
| 60 |
|
| 61 |
+
# 2. generating the reasoning path w.r.t. the user query
|
| 62 |
reasoning = model.generate(
|
| 63 |
batch=['what python library is useful for data analysis?']
|
| 64 |
)
|
| 65 |
pprint(reasoning)
|
| 66 |
|
| 67 |
+
# 3. embedding and compare distances to pre-encoded documents
|
| 68 |
documents = [
|
| 69 |
'pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.',
|
| 70 |
'The giant panda (Ailuropoda melanoleuca), also known as the panda bear or simply panda, is a bear species endemic to China. It is characterised by its white coat with black patches around the eyes, ears, legs and shoulders.',
|