Update README.md
Browse files
README.md
CHANGED
@@ -134,7 +134,7 @@ query = ["Bidirectional transformers"]
|
|
134 |
query_embedding = embed_input(query)
|
135 |
|
136 |
#load the proximity adapter, provide an identifier for the adapter in load_as argument and activate it
|
137 |
-
model.load_adapter("allenai/
|
138 |
papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
|
139 |
{'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
|
140 |
# concatenate title and abstract
|
|
|
134 |
query_embedding = embed_input(query)
|
135 |
|
136 |
#load the proximity adapter, provide an identifier for the adapter in load_as argument and activate it
|
137 |
+
model.load_adapter("allenai/specter2", source="hf", load_as="specter2_proximity", set_active=True)
|
138 |
papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
|
139 |
{'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
|
140 |
# concatenate title and abstract
|