Replies: 3 comments
-
|
Could you print |
Beta Was this translation helpful? Give feedback.
-
|
Oh ok. I'll do the experiment from scratch today n update you
…On Tue, Feb 16, 2021, 1:51 AM Lucas Hosseini ***@***.***> wrote:
Could you print query_vector.shape from within your search() method? It
looks like it's not the right shape.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1687 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHAIDMA2T5T4NJV7NNYXGC3S7F64PANCNFSM4XUSPQ3Q>
.
|
Beta Was this translation helpful? Give feedback.
-
Ok so i think the shapes were not in the right format now its working. Can you tell me what is the difference between the method I used in the post and this -> in above method we don't need to define clusters right? i think this way is better but above mentioned code is not working |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi , so I have trained a faiss index and when I search for similar query I get an assertion error.
and i get error :- """---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
in ()
34 return [data[_id] for _id in top_k[1].tolist()[0]]
35 query=str(input())
---> 36 results=search(query)
37 print('results :')
38 for result in results:
1 frames
/usr/local/lib/python3.6/dist-packages/faiss/init.py in replacement_search(self, x, k, D, I)
130 def replacement_search(self, x, k, D=None, I=None):
131 n, d = x.shape
--> 132 assert d == self.d
133
134 if D is None:
"""
Beta Was this translation helpful? Give feedback.
All reactions