How use "docid" get the text corresponding to docid? #1593
Replies: 2 comments 6 replies
-
The Faiss indexes do not store actual documents. You'll have to use the corresponding Lucene indexes. Consult this guide: https://github.com/castorini/pyserini/blob/master/docs/usage-fetch.md |
Beta Was this translation helpful? Give feedback.
-
You'll need some sort of way to lookup the raw content given a docid because faiss doesn't have this. You don't need to build a Lucene index though. Depends on how you have your data stored? |
Beta Was this translation helpful? Give feedback.
-
Hi~
I have obtained the retrieval result using the code(Dense Retrieve FaissSearcher), but I would like to ask how to obtain the corresponding text according to the docid?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions