lukawskikacper commited on
Commit
6cf7c71
·
1 Parent(s): 8f1eef0

Add generation info

Browse files
Files changed (1) hide show
  1. README.md +14 -25
README.md CHANGED
@@ -12,36 +12,25 @@ size_categories:
12
  # arxiv-titles-instructorxl-embeddings
13
 
14
  This dataset contains 768-dimensional embeddings generated from the [arxiv](https://arxiv.org/)
15
- paper abstracts using [InstructorXL](https://huggingface.co/hkunlp/instructor-xl) model. Each
16
  vector has an abstract used to create it, along with the DOI (Digital Object Identifier). The
17
  dataset was created using precomputed embeddings exposed by the [Alexandria Index](https://alex.macrocosm.so/download).
18
 
19
- [//]: # (## Generation process)
20
 
21
- [//]: # ()
22
- [//]: # (The embeddings have been generated using the following instruction:)
23
 
24
- [//]: # ()
25
- [//]: # (```text)
 
26
 
27
- [//]: # (Represent the Research Paper abstract for retrieval; Input:)
28
 
29
- [//]: # (```)
 
30
 
31
- [//]: # ()
32
- [//]: # (The following code snippet shows how to generate embeddings using the InstructorXL model:)
33
-
34
- [//]: # (```python)
35
-
36
- [//]: # (from InstructorEmbedding import INSTRUCTOR)
37
-
38
- [//]: # ()
39
- [//]: # (model = INSTRUCTOR('hkunlp/instructor-xl'))
40
-
41
- [//]: # (sentence = "The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train.")
42
-
43
- [//]: # (instruction = "Represent the Research Paper abstract for retrieval; Input:")
44
-
45
- [//]: # (embeddings = model.encode([[instruction, sentence]]))
46
-
47
- [//]: # (```)
 
12
  # arxiv-titles-instructorxl-embeddings
13
 
14
  This dataset contains 768-dimensional embeddings generated from the [arxiv](https://arxiv.org/)
15
+ paper titles using [InstructorXL](https://huggingface.co/hkunlp/instructor-xl) model. Each
16
  vector has an abstract used to create it, along with the DOI (Digital Object Identifier). The
17
  dataset was created using precomputed embeddings exposed by the [Alexandria Index](https://alex.macrocosm.so/download).
18
 
19
+ ## Generation process
20
 
21
+ The embeddings have been generated using the following instruction:
 
22
 
23
+ ```text
24
+ Represent the Research Paper title for retrieval; Input:
25
+ ```
26
 
27
+ The following code snippet shows how to generate embeddings using the InstructorXL model:
28
 
29
+ ```python
30
+ from InstructorEmbedding import INSTRUCTOR
31
 
32
+ model = INSTRUCTOR('hkunlp/instructor-xl')
33
+ sentence = "3D ActionSLAM: wearable person tracking in multi-floor environments"
34
+ instruction = "Represent the Research Paper title for retrieval; Input:"
35
+ embeddings = model.encode([[instruction, sentence]])
36
+ ```