stanford-futuredata / ColBERT

ColBERT: state-of-the-art neural search (SIGIR'20, TACL'21, NeurIPS'21, NAACL'22, CIKM'22, ACL'23, EMNLP'23)
MIT License
2.67k stars 355 forks source link

How to get the mapping information about doc_id with doc_content. #321

Open kevinningthu opened 3 months ago

kevinningthu commented 3 months ago

The retrieve result is in the format of doc ids, How to get the doc contents ?

Thanks.

fate-ubw commented 2 months ago

I got this. you can use searcher.collection(id) to return your doc contents