Skip to content

Commit ab7462f

Browse files
committed
upload reranker inference
1 parent b552d87 commit ab7462f

2 files changed

Lines changed: 439 additions & 1 deletion

File tree

examples/inference/embedder/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- [Model List](#model-list)
44
- [Usage](#usage)
5+
- [Citation](#citation)
56

67
An embedder can encode text into embeddings.
78

@@ -287,4 +288,28 @@ with torch.no_grad():
287288
# normalize embeddings
288289
sentence_embeddings = torch.nn.functional.normalize(sentence_embeddings, p=2, dim=1)
289290
print("Sentence embeddings:", sentence_embeddings)
290-
```
291+
```
292+
293+
## Citation
294+
295+
If you find this repository useful, please consider giving a star :star: and citation
296+
297+
```
298+
@misc{bge_embedding,
299+
title={C-Pack: Packaged Resources To Advance General Chinese Embedding},
300+
author={Shitao Xiao and Zheng Liu and Peitian Zhang and Niklas Muennighoff},
301+
year={2023},
302+
eprint={2309.07597},
303+
archivePrefix={arXiv},
304+
primaryClass={cs.CL}
305+
}
306+
@misc{bge-m3,
307+
title={BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation},
308+
author={Jianlv Chen and Shitao Xiao and Peitian Zhang and Kun Luo and Defu Lian and Zheng Liu},
309+
year={2024},
310+
eprint={2402.03216},
311+
archivePrefix={arXiv},
312+
primaryClass={cs.CL}
313+
}
314+
```
315+

0 commit comments

Comments
 (0)