Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 852 Bytes

File metadata and controls

37 lines (33 loc) · 852 Bytes

Example application for macOS using FAISS

Objective-C++ example that uses IndexFlat from the FAISS.

See original tutorial here

Output

is_trained = true
ntotal = 100000
I=
    0   723   254   152 
    1   995   136   183 
    2   312   253    29 
    3   983   467    88 
    4   403   112   643 
D=
      0 7.60087 7.68724 7.82754 
      0 5.78548 6.72638 6.73293 
      0 5.07469 6.84876 7.19263 
      0 6.77275 7.04459 7.27541 
      0 6.84196 6.89793  7.0937 
I (5 first results)=
  960   249   963   571 
   12   384   880   819 
  222   792   116   444 
   51   271   328   648 
   54   272    17    26 
I (5 last results)=
 9844 10699 10016 10219 
 9360  9570 10423  9260 
10380  9998 10282 10549 
 9037 10148 10750  9531 
 9968 10436 10695  9929 
Program ended with exit code: 0