boostcampaitech3 / level2-mrc-level2-nlp-04

level2-mrc-level2-nlp-04 created by GitHub Classroom
1 stars 3 forks source link

retrieve_faiss사용 #13

Closed hyoeun98 closed 2 years ago

hyoeun98 commented 2 years ago

D, I = self.indexer.search(q_emb, k)에서 AssertionError : assert d == self.d 발생 query vector의 shape 오류로 보임

hyoeun98 commented 2 years ago

[query faiss search] done in 311.453 s [query exhaustive search] done in 51.104 s correct retrieval result by exhaustive search 0.25190839694656486 correct retrieval result by faiss 0.03482824427480916 faiss를 사용한 retrieval이 현저히 느리며, 정확도도 심각하게 떨어짐

hyoeun98 commented 2 years ago

[query faiss search] done in 56.092 s correct retrieval result by faiss 0.03482824427480916 conda install -c pytorch faiss-cpu 후 시간은 줄어들었으나, 정확도는 같음

hyoeun98 commented 2 years ago

image

hyoeun98 commented 2 years ago

실습할 때는 데이터가 더 작았었는데?