andylizf commited on
Commit
d45fdef
·
verified ·
1 Parent(s): a8dce47

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. SPANN/.gitattributes +1 -0
  2. SPANN/AnnService.users.props +19 -0
  3. SPANN/AnnService/BalancedDataPartition.vcxproj +159 -0
  4. SPANN/AnnService/BalancedDataPartition.vcxproj.filters +25 -0
  5. SPANN/AnnService/Client.vcxproj +150 -0
  6. SPANN/AnnService/Client.vcxproj.filters +35 -0
  7. SPANN/AnnService/CoreLibrary.vcxproj +244 -0
  8. SPANN/AnnService/IndexSearcher.vcxproj +174 -0
  9. SPANN/AnnService/IndexSearcher.vcxproj.filters +25 -0
  10. SPANN/AnnService/SSDServing.vcxproj +204 -0
  11. SPANN/AnnService/Server.vcxproj.filters +59 -0
  12. SPANN/Dockerfile +20 -0
  13. SPANN/Dockerfile.cuda +40 -0
  14. SPANN/LICENSE +21 -0
  15. SPANN/MANIFEST.in +1 -0
  16. SPANN/README.md +190 -0
  17. SPANN/SECURITY.md +41 -0
  18. SPANN/SPTAG.WinRT.nuspec +31 -0
  19. SPANN/SPTAG.nuspec +117 -0
  20. SPANN/SPTAG.sdf +0 -0
  21. SPANN/SPTAG.sln +290 -0
  22. SPANN/setup.py +188 -0
  23. rag-evaluation-harness/tests/testdata/blimp_determiner_noun_agreement_with_adjective_1-v0-loglikelihood +1 -0
  24. rag-evaluation-harness/tests/testdata/blimp_matrix_question_npi_licensor_present-v0-res.json +1 -0
  25. rag-evaluation-harness/tests/testdata/blimp_transitive-v0-loglikelihood +1 -0
  26. rag-evaluation-harness/tests/testdata/crows_pairs_french_race_color-v0-res.json +1 -0
  27. rag-evaluation-harness/tests/testdata/crows_pairs_french_socioeconomic-v0-res.json +1 -0
  28. rag-evaluation-harness/tests/testdata/cycle_letters-v0-res.json +1 -0
  29. rag-evaluation-harness/tests/testdata/ethics_virtue-v0-loglikelihood +1 -0
  30. rag-evaluation-harness/tests/testdata/hendrycksTest-college_biology-v0-loglikelihood +1 -0
  31. rag-evaluation-harness/tests/testdata/hendrycksTest-professional_law-v0-loglikelihood +1 -0
  32. rag-evaluation-harness/tests/testdata/lambada_mt_it-v0-loglikelihood +1 -0
  33. rag-evaluation-harness/tests/testdata/lambada_openai_mt_it-v0-res.json +1 -0
  34. rag-evaluation-harness/tests/testdata/multirc-v1-res.json +1 -0
  35. rag-evaluation-harness/tests/testdata/mutual_plus-v0-res.json +1 -0
  36. rag-evaluation-harness/tests/testdata/mutual_plus-v1-res.json +1 -0
  37. rag-evaluation-harness/tests/testdata/pile_books3-v0-loglikelihood_rolling +1 -0
  38. rag-evaluation-harness/tests/testdata/pile_books3-v1-loglikelihood_rolling +1 -0
  39. rag-evaluation-harness/tests/testdata/pile_freelaw-v1-loglikelihood_rolling +1 -0
  40. rag-evaluation-harness/tests/testdata/pile_hackernews-v0-loglikelihood_rolling +1 -0
  41. rag-evaluation-harness/tests/testdata/pile_nih-exporter-v1-loglikelihood_rolling +1 -0
  42. rag-evaluation-harness/tests/testdata/pile_philpapers-v0-res.json +1 -0
  43. rag-evaluation-harness/tests/testdata/pile_pile-cc-v1-res.json +1 -0
  44. rag-evaluation-harness/tests/testdata/pile_ubuntu-irc-v1-res.json +1 -0
  45. rag-evaluation-harness/tests/testdata/random_insertion-v0-greedy_until +1 -0
  46. rag-evaluation-harness/tests/testdata/truthfulqa_mc-v0-res.json +1 -0
  47. rag-evaluation-harness/tests/testdata/wmt20-en-ja-v1-res.json +1 -0
  48. rag-evaluation-harness/tests/testdata/wmt20-iu-en-v0-greedy_until +1 -0
  49. rag-evaluation-harness/tests/testdata/wmt20-ja-en-v0-greedy_until +1 -0
  50. rag-evaluation-harness/tests/testdata/wmt20-pl-en-v0-greedy_until +1 -0
SPANN/.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.bin filter=lfs diff=lfs merge=lfs -text
SPANN/AnnService.users.props ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(SolutionDir)AnnService.users.props.user" Condition="Exists('$(SolutionDir)AnnService.users.props.user')" />
4
+
5
+ <ItemDefinitionGroup>
6
+ <ClCompile>
7
+ <AdditionalOptions>$(SystemVersionDef) %(AdditionalOptions)</AdditionalOptions>
8
+ </ClCompile>
9
+ </ItemDefinitionGroup>
10
+
11
+ <PropertyGroup Label="UserMacros">
12
+ <OutAppDir>$(SolutionDir)\$(Platform)\$(Configuration)\</OutAppDir>
13
+ <OutLibDir>$(SolutionDir)\$(Platform)\$(Configuration)\</OutLibDir>
14
+ <JavaIncDir></JavaIncDir>
15
+ <JavaLib></JavaLib>
16
+ <PYTHON_VERSION>3.9</PYTHON_VERSION>
17
+ </PropertyGroup>
18
+ </Project>
19
+
SPANN/AnnService/BalancedDataPartition.vcxproj ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Release|Win32">
9
+ <Configuration>Release</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|x64">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>x64</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|x64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <PropertyGroup Label="Globals">
22
+ <VCProjectVersion>16.0</VCProjectVersion>
23
+ <ProjectGuid>{EB9D699A-16CB-4D51-AB39-0B170BE72FC8}</ProjectGuid>
24
+ <RootNamespace>BalancedDataPartition</RootNamespace>
25
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
26
+ </PropertyGroup>
27
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28
+ <Import Project="$(SolutionDir)\AnnService.users.props" />
29
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30
+ <ConfigurationType>Application</ConfigurationType>
31
+ <UseDebugLibraries>true</UseDebugLibraries>
32
+ <PlatformToolset>v142</PlatformToolset>
33
+ <CharacterSet>MultiByte</CharacterSet>
34
+ </PropertyGroup>
35
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36
+ <ConfigurationType>Application</ConfigurationType>
37
+ <UseDebugLibraries>false</UseDebugLibraries>
38
+ <PlatformToolset>v142</PlatformToolset>
39
+ <WholeProgramOptimization>true</WholeProgramOptimization>
40
+ <CharacterSet>MultiByte</CharacterSet>
41
+ </PropertyGroup>
42
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43
+ <ConfigurationType>Application</ConfigurationType>
44
+ <UseDebugLibraries>true</UseDebugLibraries>
45
+ <PlatformToolset>v142</PlatformToolset>
46
+ <CharacterSet>MultiByte</CharacterSet>
47
+ </PropertyGroup>
48
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49
+ <ConfigurationType>Application</ConfigurationType>
50
+ <UseDebugLibraries>false</UseDebugLibraries>
51
+ <PlatformToolset>v142</PlatformToolset>
52
+ <WholeProgramOptimization>true</WholeProgramOptimization>
53
+ <CharacterSet>MultiByte</CharacterSet>
54
+ </PropertyGroup>
55
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56
+ <ImportGroup Label="ExtensionSettings">
57
+ </ImportGroup>
58
+ <ImportGroup Label="Shared">
59
+ </ImportGroup>
60
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62
+ </ImportGroup>
63
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65
+ </ImportGroup>
66
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68
+ </ImportGroup>
69
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71
+ </ImportGroup>
72
+ <PropertyGroup>
73
+ <IntDir>$(SolutionDir)obj\$(Platform)_$(Configuration)\$(ProjectName)\</IntDir>
74
+ <IncludePath>C:\Program Files %28x86%29\Microsoft SDKs\MPI\Include;$(ProjectDir);$(IncludePath)</IncludePath>
75
+ <OutDir>$(OutAppDir)</OutDir>
76
+ <LibraryPath>C:\Program Files %28x86%29\Microsoft SDKs\MPI\Lib\x64;$(OutLibDir);$(LibraryPath)</LibraryPath>
77
+ </PropertyGroup>
78
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
79
+ <LinkIncremental>false</LinkIncremental>
80
+ </PropertyGroup>
81
+ <ItemDefinitionGroup>
82
+ <Link>
83
+ <AdditionalDependencies>msmpi.lib;CoreLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
84
+ </Link>
85
+ </ItemDefinitionGroup>
86
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
87
+ <ClCompile>
88
+ <WarningLevel>Level3</WarningLevel>
89
+ <Optimization>MaxSpeed</Optimization>
90
+ <FunctionLevelLinking>true</FunctionLevelLinking>
91
+ <IntrinsicFunctions>true</IntrinsicFunctions>
92
+ <SDLCheck>true</SDLCheck>
93
+ <ConformanceMode>true</ConformanceMode>
94
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
95
+ <OpenMPSupport>true</OpenMPSupport>
96
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
97
+ <LanguageStandard>stdcpp17</LanguageStandard>
98
+ </ClCompile>
99
+ <Link>
100
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
101
+ <OptimizeReferences>true</OptimizeReferences>
102
+ </Link>
103
+ </ItemDefinitionGroup>
104
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
105
+ <ClCompile>
106
+ <WarningLevel>Level3</WarningLevel>
107
+ <Optimization>Disabled</Optimization>
108
+ <SDLCheck>true</SDLCheck>
109
+ <ConformanceMode>true</ConformanceMode>
110
+ </ClCompile>
111
+ </ItemDefinitionGroup>
112
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
113
+ <ClCompile>
114
+ <WarningLevel>Level3</WarningLevel>
115
+ <Optimization>Disabled</Optimization>
116
+ <SDLCheck>true</SDLCheck>
117
+ <ConformanceMode>true</ConformanceMode>
118
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119
+ <ControlFlowGuard>Guard</ControlFlowGuard>
120
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
121
+ <OpenMPSupport>true</OpenMPSupport>
122
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
123
+ <LanguageStandard>stdcpp17</LanguageStandard>
124
+ </ClCompile>
125
+ <Link>
126
+ <AdditionalOptions>/guard:cf %(AdditionalOptions)</AdditionalOptions>
127
+ </Link>
128
+ </ItemDefinitionGroup>
129
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
130
+ <ClCompile>
131
+ <WarningLevel>Level3</WarningLevel>
132
+ <Optimization>MaxSpeed</Optimization>
133
+ <FunctionLevelLinking>true</FunctionLevelLinking>
134
+ <IntrinsicFunctions>true</IntrinsicFunctions>
135
+ <SDLCheck>true</SDLCheck>
136
+ <ConformanceMode>true</ConformanceMode>
137
+ </ClCompile>
138
+ <Link>
139
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
140
+ <OptimizeReferences>true</OptimizeReferences>
141
+ </Link>
142
+ </ItemDefinitionGroup>
143
+ <ItemGroup>
144
+ <ClCompile Include="src\BalancedDataPartition\main.cpp" />
145
+ </ItemGroup>
146
+ <ItemGroup>
147
+ <None Include="packages.config" />
148
+ </ItemGroup>
149
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
150
+ <ImportGroup Label="ExtensionTargets">
151
+ <Import Project="..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets" Condition="Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" />
152
+ </ImportGroup>
153
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
154
+ <PropertyGroup>
155
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
156
+ </PropertyGroup>
157
+ <Error Condition="!Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets'))" />
158
+ </Target>
159
+ </Project>
SPANN/AnnService/BalancedDataPartition.vcxproj.filters ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
4
+ <Filter Include="Source Files">
5
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7
+ </Filter>
8
+ <Filter Include="Header Files">
9
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10
+ <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11
+ </Filter>
12
+ <Filter Include="Resource Files">
13
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15
+ </Filter>
16
+ </ItemGroup>
17
+ <ItemGroup>
18
+ <None Include="packages.config" />
19
+ </ItemGroup>
20
+ <ItemGroup>
21
+ <ClCompile Include="src\BalancedDataPartition\main.cpp">
22
+ <Filter>Source Files</Filter>
23
+ </ClCompile>
24
+ </ItemGroup>
25
+ </Project>
SPANN/AnnService/Client.vcxproj ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Release|Win32">
9
+ <Configuration>Release</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|x64">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>x64</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|x64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <PropertyGroup Label="Globals">
22
+ <VCProjectVersion>16.0</VCProjectVersion>
23
+ <ProjectGuid>{A89D70C3-C53B-42DE-A5CE-9A472540F5CB}</ProjectGuid>
24
+ <RootNamespace>Client</RootNamespace>
25
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
26
+ </PropertyGroup>
27
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28
+ <Import Project="$(SolutionDir)\AnnService.users.props" />
29
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30
+ <ConfigurationType>Application</ConfigurationType>
31
+ <UseDebugLibraries>true</UseDebugLibraries>
32
+ <PlatformToolset>v142</PlatformToolset>
33
+ <CharacterSet>MultiByte</CharacterSet>
34
+ </PropertyGroup>
35
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36
+ <ConfigurationType>Application</ConfigurationType>
37
+ <UseDebugLibraries>false</UseDebugLibraries>
38
+ <PlatformToolset>v142</PlatformToolset>
39
+ <WholeProgramOptimization>true</WholeProgramOptimization>
40
+ <CharacterSet>MultiByte</CharacterSet>
41
+ </PropertyGroup>
42
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43
+ <ConfigurationType>Application</ConfigurationType>
44
+ <UseDebugLibraries>true</UseDebugLibraries>
45
+ <PlatformToolset>v142</PlatformToolset>
46
+ <CharacterSet>MultiByte</CharacterSet>
47
+ </PropertyGroup>
48
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49
+ <ConfigurationType>Application</ConfigurationType>
50
+ <UseDebugLibraries>false</UseDebugLibraries>
51
+ <PlatformToolset>v142</PlatformToolset>
52
+ <WholeProgramOptimization>true</WholeProgramOptimization>
53
+ <CharacterSet>MultiByte</CharacterSet>
54
+ </PropertyGroup>
55
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56
+ <ImportGroup Label="ExtensionSettings">
57
+ </ImportGroup>
58
+ <ImportGroup Label="Shared">
59
+ </ImportGroup>
60
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62
+ </ImportGroup>
63
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65
+ </ImportGroup>
66
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68
+ </ImportGroup>
69
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71
+ </ImportGroup>
72
+ <PropertyGroup Label="UserMacros" />
73
+ <PropertyGroup>
74
+ <IntDir>$(SolutionDir)obj\$(Platform)_$(Configuration)\$(ProjectName)\</IntDir>
75
+ <IncludePath>$(ProjectDir);$(IncludePath)</IncludePath>
76
+ <OutDir>$(OutAppDir)</OutDir>
77
+ <LibraryPath>$(OutLibDir);$(LibraryPath)</LibraryPath>
78
+ </PropertyGroup>
79
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
80
+ <LinkIncremental>false</LinkIncremental>
81
+ </PropertyGroup>
82
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
83
+ <Link>
84
+ <AdditionalDependencies>CoreLibrary.lib;SocketLib.lib;%(AdditionalDependencies)</AdditionalDependencies>
85
+ </Link>
86
+ </ItemDefinitionGroup>
87
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
88
+ <Link>
89
+ <AdditionalDependencies>CoreLibrary.lib;SocketLib.lib;%(AdditionalDependencies)</AdditionalDependencies>
90
+ </Link>
91
+ </ItemDefinitionGroup>
92
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
93
+ <Link>
94
+ <AdditionalDependencies>CoreLibrary.lib;SocketLib.lib;%(AdditionalDependencies)</AdditionalDependencies>
95
+ <AdditionalOptions>/guard:cf %(AdditionalOptions)</AdditionalOptions>
96
+ </Link>
97
+ <ClCompile>
98
+ <ControlFlowGuard>Guard</ControlFlowGuard>
99
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
100
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
101
+ <WarningLevel>Level3</WarningLevel>
102
+ <LanguageStandard>stdcpp17</LanguageStandard>
103
+ </ClCompile>
104
+ </ItemDefinitionGroup>
105
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
106
+ <Link>
107
+ <AdditionalDependencies>CoreLibrary.lib;SocketLib.lib;%(AdditionalDependencies)</AdditionalDependencies>
108
+ </Link>
109
+ <ClCompile>
110
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111
+ <LanguageStandard>stdcpp17</LanguageStandard>
112
+ </ClCompile>
113
+ </ItemDefinitionGroup>
114
+ <ItemGroup>
115
+ <ClCompile Include="src\Client\ClientWrapper.cpp" />
116
+ <ClCompile Include="src\Client\main.cpp" />
117
+ <ClCompile Include="src\Client\Options.cpp" />
118
+ </ItemGroup>
119
+ <ItemGroup>
120
+ <ClInclude Include="inc\Client\ClientWrapper.h" />
121
+ <ClInclude Include="inc\Client\Options.h" />
122
+ </ItemGroup>
123
+ <ItemGroup>
124
+ <None Include="packages.config" />
125
+ </ItemGroup>
126
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
127
+ <ImportGroup Label="ExtensionTargets">
128
+ <Import Project="..\packages\boost.1.72.0.0\build\boost.targets" Condition="Exists('..\packages\boost.1.72.0.0\build\boost.targets')" />
129
+ <Import Project="..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets" Condition="Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" />
130
+ <Import Project="..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets" Condition="Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" />
131
+ <Import Project="..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets" Condition="Exists('..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets')" />
132
+ <Import Project="..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets" Condition="Exists('..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets')" />
133
+ <Import Project="..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets" Condition="Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" />
134
+ <Import Project="..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets" Condition="Exists('..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets')" />
135
+ <Import Project="..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets" Condition="Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" />
136
+ </ImportGroup>
137
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
138
+ <PropertyGroup>
139
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
140
+ </PropertyGroup>
141
+ <Error Condition="!Exists('..\packages\boost.1.72.0.0\build\boost.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost.1.72.0.0\build\boost.targets'))" />
142
+ <Error Condition="!Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets'))" />
143
+ <Error Condition="!Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets'))" />
144
+ <Error Condition="!Exists('..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets'))" />
145
+ <Error Condition="!Exists('..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets'))" />
146
+ <Error Condition="!Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets'))" />
147
+ <Error Condition="!Exists('..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets'))" />
148
+ <Error Condition="!Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets'))" />
149
+ </Target>
150
+ </Project>
SPANN/AnnService/Client.vcxproj.filters ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
4
+ <Filter Include="Source Files">
5
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7
+ </Filter>
8
+ <Filter Include="Header Files">
9
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10
+ <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11
+ </Filter>
12
+ </ItemGroup>
13
+ <ItemGroup>
14
+ <ClCompile Include="src\Client\main.cpp">
15
+ <Filter>Source Files</Filter>
16
+ </ClCompile>
17
+ <ClCompile Include="src\Client\ClientWrapper.cpp">
18
+ <Filter>Source Files</Filter>
19
+ </ClCompile>
20
+ <ClCompile Include="src\Client\Options.cpp">
21
+ <Filter>Source Files</Filter>
22
+ </ClCompile>
23
+ </ItemGroup>
24
+ <ItemGroup>
25
+ <ClInclude Include="inc\Client\Options.h">
26
+ <Filter>Header Files</Filter>
27
+ </ClInclude>
28
+ <ClInclude Include="inc\Client\ClientWrapper.h">
29
+ <Filter>Header Files</Filter>
30
+ </ClInclude>
31
+ </ItemGroup>
32
+ <ItemGroup>
33
+ <None Include="packages.config" />
34
+ </ItemGroup>
35
+ </Project>
SPANN/AnnService/CoreLibrary.vcxproj ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Release|Win32">
9
+ <Configuration>Release</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|x64">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>x64</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|x64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <PropertyGroup Label="Globals">
22
+ <VCProjectVersion>16.0</VCProjectVersion>
23
+ <ProjectGuid>{C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}</ProjectGuid>
24
+ <RootNamespace>CoreLibrary</RootNamespace>
25
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
26
+ <ProjectName>CoreLibrary</ProjectName>
27
+ </PropertyGroup>
28
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29
+ <Import Project="$(SolutionDir)\AnnService.users.props" />
30
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
31
+ <ConfigurationType>Application</ConfigurationType>
32
+ <UseDebugLibraries>true</UseDebugLibraries>
33
+ <PlatformToolset>v142</PlatformToolset>
34
+ <CharacterSet>MultiByte</CharacterSet>
35
+ </PropertyGroup>
36
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
37
+ <ConfigurationType>Application</ConfigurationType>
38
+ <UseDebugLibraries>false</UseDebugLibraries>
39
+ <PlatformToolset>v142</PlatformToolset>
40
+ <WholeProgramOptimization>true</WholeProgramOptimization>
41
+ <CharacterSet>MultiByte</CharacterSet>
42
+ </PropertyGroup>
43
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44
+ <ConfigurationType>StaticLibrary</ConfigurationType>
45
+ <UseDebugLibraries>true</UseDebugLibraries>
46
+ <PlatformToolset>v142</PlatformToolset>
47
+ <CharacterSet>MultiByte</CharacterSet>
48
+ </PropertyGroup>
49
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
50
+ <ConfigurationType>StaticLibrary</ConfigurationType>
51
+ <UseDebugLibraries>false</UseDebugLibraries>
52
+ <PlatformToolset>v142</PlatformToolset>
53
+ <WholeProgramOptimization>true</WholeProgramOptimization>
54
+ <CharacterSet>MultiByte</CharacterSet>
55
+ </PropertyGroup>
56
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
57
+ <ImportGroup Label="ExtensionSettings">
58
+ </ImportGroup>
59
+ <ImportGroup Label="Shared">
60
+ </ImportGroup>
61
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
62
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
63
+ </ImportGroup>
64
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
65
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
66
+ </ImportGroup>
67
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
68
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
69
+ </ImportGroup>
70
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
71
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
72
+ </ImportGroup>
73
+ <PropertyGroup Label="UserMacros" />
74
+ <PropertyGroup>
75
+ <IncludePath>$(IncludePath);$(ProjectDir)</IncludePath>
76
+ </PropertyGroup>
77
+ <PropertyGroup>
78
+ <IntDir>$(SolutionDir)obj\$(Platform)_$(Configuration)\$(ProjectName)\</IntDir>
79
+ <OutDir>$(OutLibDir)</OutDir>
80
+ </PropertyGroup>
81
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
82
+ <ClCompile>
83
+ <WarningLevel>Level3</WarningLevel>
84
+ <Optimization>Disabled</Optimization>
85
+ <SDLCheck>true</SDLCheck>
86
+ <ConformanceMode>true</ConformanceMode>
87
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
88
+ </ClCompile>
89
+ </ItemDefinitionGroup>
90
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
91
+ <ClCompile>
92
+ <WarningLevel>Level3</WarningLevel>
93
+ <Optimization>Disabled</Optimization>
94
+ <SDLCheck>true</SDLCheck>
95
+ <ConformanceMode>true</ConformanceMode>
96
+ <OpenMPSupport>true</OpenMPSupport>
97
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
98
+ <ControlFlowGuard>Guard</ControlFlowGuard>
99
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
100
+ <AdditionalOptions>/Zc:twoPhase- /Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
101
+ <LanguageStandard>stdcpp17</LanguageStandard>
102
+ </ClCompile>
103
+ </ItemDefinitionGroup>
104
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
105
+ <ClCompile>
106
+ <WarningLevel>Level3</WarningLevel>
107
+ <Optimization>MaxSpeed</Optimization>
108
+ <FunctionLevelLinking>true</FunctionLevelLinking>
109
+ <IntrinsicFunctions>true</IntrinsicFunctions>
110
+ <SDLCheck>true</SDLCheck>
111
+ <ConformanceMode>true</ConformanceMode>
112
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
113
+ </ClCompile>
114
+ <Link>
115
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
116
+ <OptimizeReferences>true</OptimizeReferences>
117
+ </Link>
118
+ </ItemDefinitionGroup>
119
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
120
+ <ClCompile>
121
+ <WarningLevel>Level3</WarningLevel>
122
+ <Optimization>MaxSpeed</Optimization>
123
+ <FunctionLevelLinking>true</FunctionLevelLinking>
124
+ <IntrinsicFunctions>true</IntrinsicFunctions>
125
+ <SDLCheck>true</SDLCheck>
126
+ <ConformanceMode>true</ConformanceMode>
127
+ <OpenMPSupport>true</OpenMPSupport>
128
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129
+ <AdditionalOptions>/Zc:twoPhase- /Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
130
+ <LanguageStandard>stdcpp17</LanguageStandard>
131
+ <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
132
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
133
+ <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
134
+ <OmitFramePointers>true</OmitFramePointers>
135
+ <FloatingPointModel>Fast</FloatingPointModel>
136
+ </ClCompile>
137
+ <Link>
138
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
139
+ <OptimizeReferences>true</OptimizeReferences>
140
+ </Link>
141
+ </ItemDefinitionGroup>
142
+ <ItemGroup>
143
+ <ClInclude Include="inc\Core\Common\FineGrainedLock.h" />
144
+ <ClInclude Include="inc\Core\Common\InstructionUtils.h" />
145
+ <ClInclude Include="inc\Core\Common\KNearestNeighborhoodGraph.h" />
146
+ <ClInclude Include="inc\Core\Common\Labelset.h" />
147
+ <ClInclude Include="inc\Core\Common\OPQQuantizer.h" />
148
+ <ClInclude Include="inc\Core\Common\PQQuantizer.h" />
149
+ <ClInclude Include="inc\Core\Common\IQuantizer.h" />
150
+ <ClInclude Include="inc\Core\Common\SIMDUtils.h" />
151
+ <ClInclude Include="inc\Core\Common\TruthSet.h" />
152
+ <ClInclude Include="inc\Core\Common\WorkSpace.h" />
153
+ <ClInclude Include="inc\Core\Common\CommonUtils.h" />
154
+ <ClInclude Include="inc\Core\Common\Dataset.h" />
155
+ <ClInclude Include="inc\Core\Common\DistanceUtils.h" />
156
+ <ClInclude Include="inc\Core\Common\Heap.h" />
157
+ <ClInclude Include="inc\Core\Common\QueryResultSet.h" />
158
+ <ClInclude Include="inc\Core\Common\WorkSpacePool.h" />
159
+ <ClInclude Include="inc\Core\BKT\Index.h" />
160
+ <ClInclude Include="inc\Core\BKT\ParameterDefinitionList.h" />
161
+ <ClInclude Include="inc\Core\KDT\Index.h" />
162
+ <ClInclude Include="inc\Core\KDT\ParameterDefinitionList.h" />
163
+ <ClInclude Include="inc\Core\Common.h" />
164
+ <ClInclude Include="inc\Core\CommonDataStructure.h" />
165
+ <ClInclude Include="inc\Core\DefinitionList.h" />
166
+ <ClInclude Include="inc\Core\MetadataSet.h" />
167
+ <ClInclude Include="inc\Core\MultiIndexScan.h" />
168
+ <ClInclude Include="inc\Core\ResultIterator.h" />
169
+ <ClInclude Include="inc\Core\SearchQuery.h" />
170
+ <ClInclude Include="inc\Core\SearchResult.h" />
171
+ <ClInclude Include="inc\Core\SPANN\Compressor.h" />
172
+ <ClInclude Include="inc\Core\SPANN\ExtraFullGraphSearcher.h" />
173
+ <ClInclude Include="inc\Core\SPANN\IExtraSearcher.h" />
174
+ <ClInclude Include="inc\Core\SPANN\Index.h" />
175
+ <ClInclude Include="inc\Core\SPANN\Options.h" />
176
+ <ClInclude Include="inc\Core\SPANN\ParameterDefinitionList.h" />
177
+ <ClInclude Include="inc\Core\SPANN\SPANNResultIterator.h" />
178
+ <ClInclude Include="inc\Core\VectorIndex.h" />
179
+ <ClInclude Include="inc\Core\VectorSet.h" />
180
+ <ClInclude Include="inc\Helper\ArgumentsParser.h" />
181
+ <ClInclude Include="inc\Helper\AsyncFileReader.h" />
182
+ <ClInclude Include="inc\Helper\Base64Encode.h" />
183
+ <ClInclude Include="inc\Helper\CommonHelper.h" />
184
+ <ClInclude Include="inc\Helper\Concurrent.h" />
185
+ <ClInclude Include="inc\Helper\ConcurrentSet.h" />
186
+ <ClInclude Include="inc\Helper\DiskIO.h" />
187
+ <ClInclude Include="inc\Helper\DynamicNeighbors.h" />
188
+ <ClInclude Include="inc\Helper\LockFree.h" />
189
+ <ClInclude Include="inc\Helper\Logging.h" />
190
+ <ClInclude Include="inc\Helper\SimpleIniReader.h" />
191
+ <ClInclude Include="inc\Helper\StringConvert.h" />
192
+ <ClInclude Include="inc\Core\Common\NeighborhoodGraph.h" />
193
+ <ClInclude Include="inc\Core\Common\RelativeNeighborhoodGraph.h" />
194
+ <ClInclude Include="inc\Core\Common\BKTree.h" />
195
+ <ClInclude Include="inc\Core\Common\KDTree.h" />
196
+ <ClInclude Include="inc\Helper\ThreadPool.h" />
197
+ <ClInclude Include="inc\Helper\VectorSetReader.h" />
198
+ <ClInclude Include="inc\Helper\VectorSetReaders\DefaultReader.h" />
199
+ <ClInclude Include="inc\Helper\VectorSetReaders\MemoryReader.h" />
200
+ <ClInclude Include="inc\Helper\VectorSetReaders\TxtReader.h" />
201
+ <ClInclude Include="inc\Helper\VectorSetReaders\XvecReader.h" />
202
+ </ItemGroup>
203
+ <ItemGroup>
204
+ <ClCompile Include="src\Core\Common\CommonUtils.cpp" />
205
+ <ClCompile Include="src\Core\Common\DistanceUtils.cpp" />
206
+ <ClCompile Include="src\Core\Common\InstructionUtils.cpp" />
207
+ <ClCompile Include="src\Core\Common\IQuantizer.cpp" />
208
+ <ClCompile Include="src\Core\Common\SIMDUtils.cpp" />
209
+ <ClCompile Include="src\Core\Common\TruthSet.cpp" />
210
+ <ClCompile Include="src\Core\SPANN\SPANNIndex.cpp" />
211
+ <ClCompile Include="src\Core\VectorSet.cpp" />
212
+ <ClCompile Include="src\Core\MetadataSet.cpp" />
213
+ <ClCompile Include="src\Core\MultiIndexScan.cpp" />
214
+ <ClCompile Include="src\Core\ResultIterator.cpp" />
215
+ <ClCompile Include="src\Core\BKT\BKTIndex.cpp" />
216
+ <ClCompile Include="src\Core\KDT\KDTIndex.cpp" />
217
+ <ClCompile Include="src\Core\Common\NeighborhoodGraph.cpp" />
218
+ <ClCompile Include="src\Core\VectorIndex.cpp" />
219
+ <ClCompile Include="src\Helper\ArgumentsParser.cpp" />
220
+ <ClCompile Include="src\Helper\AsyncFileReader.cpp" />
221
+ <ClCompile Include="src\Helper\Base64Encode.cpp" />
222
+ <ClCompile Include="src\Helper\CommonHelper.cpp" />
223
+ <ClCompile Include="src\Helper\Concurrent.cpp" />
224
+ <ClCompile Include="src\Helper\SimpleIniReader.cpp" />
225
+ <ClCompile Include="src\Helper\VectorSetReader.cpp" />
226
+ <ClCompile Include="src\Helper\DynamicNeighbors.cpp" />
227
+ <ClCompile Include="src\Helper\VectorSetReaders\DefaultReader.cpp" />
228
+ <ClCompile Include="src\Helper\VectorSetReaders\TxtReader.cpp" />
229
+ <ClCompile Include="src\Helper\VectorSetReaders\XvecReader.cpp" />
230
+ </ItemGroup>
231
+ <ItemGroup>
232
+ <None Include="packages.config" />
233
+ </ItemGroup>
234
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
235
+ <ImportGroup Label="ExtensionTargets">
236
+ <Import Project="..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets" Condition="Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" />
237
+ </ImportGroup>
238
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
239
+ <PropertyGroup>
240
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
241
+ </PropertyGroup>
242
+ <Error Condition="!Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets'))" />
243
+ </Target>
244
+ </Project>
SPANN/AnnService/IndexSearcher.vcxproj ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Release|Win32">
9
+ <Configuration>Release</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|x64">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>x64</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|x64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <PropertyGroup Label="Globals">
22
+ <VCProjectVersion>16.0</VCProjectVersion>
23
+ <ProjectGuid>{97615D3B-9FA0-469E-B229-95A91A5087E0}</ProjectGuid>
24
+ <RootNamespace>IndexSearcher</RootNamespace>
25
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
26
+ <ProjectName>IndexSearcher</ProjectName>
27
+ </PropertyGroup>
28
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29
+ <Import Project="$(SolutionDir)\AnnService.users.props" />
30
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
31
+ <ConfigurationType>Application</ConfigurationType>
32
+ <UseDebugLibraries>true</UseDebugLibraries>
33
+ <PlatformToolset>v142</PlatformToolset>
34
+ <CharacterSet>MultiByte</CharacterSet>
35
+ </PropertyGroup>
36
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
37
+ <ConfigurationType>Application</ConfigurationType>
38
+ <UseDebugLibraries>false</UseDebugLibraries>
39
+ <PlatformToolset>v142</PlatformToolset>
40
+ <WholeProgramOptimization>true</WholeProgramOptimization>
41
+ <CharacterSet>MultiByte</CharacterSet>
42
+ </PropertyGroup>
43
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44
+ <ConfigurationType>Application</ConfigurationType>
45
+ <UseDebugLibraries>true</UseDebugLibraries>
46
+ <PlatformToolset>v142</PlatformToolset>
47
+ <CharacterSet>MultiByte</CharacterSet>
48
+ </PropertyGroup>
49
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
50
+ <ConfigurationType>Application</ConfigurationType>
51
+ <UseDebugLibraries>false</UseDebugLibraries>
52
+ <PlatformToolset>v142</PlatformToolset>
53
+ <WholeProgramOptimization>true</WholeProgramOptimization>
54
+ <CharacterSet>MultiByte</CharacterSet>
55
+ </PropertyGroup>
56
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
57
+ <ImportGroup Label="ExtensionSettings">
58
+ </ImportGroup>
59
+ <ImportGroup Label="Shared">
60
+ </ImportGroup>
61
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
62
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
63
+ </ImportGroup>
64
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
65
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
66
+ </ImportGroup>
67
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
68
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
69
+ </ImportGroup>
70
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
71
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
72
+ </ImportGroup>
73
+ <PropertyGroup>
74
+ <IntDir>$(SolutionDir)obj\$(Platform)_$(Configuration)\$(ProjectName)\</IntDir>
75
+ <IncludePath>$(ProjectDir);$(SolutionDir)AnnService\;$(IncludePath)</IncludePath>
76
+ <LibraryPath>$(OutLibDir);$(LibraryPath)</LibraryPath>
77
+ <OutDir>$(OutAppDir)</OutDir>
78
+ </PropertyGroup>
79
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
80
+ <LinkIncremental>false</LinkIncremental>
81
+ </PropertyGroup>
82
+ <ItemDefinitionGroup>
83
+ <Link>
84
+ <AdditionalDependencies>CoreLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
85
+ </Link>
86
+ </ItemDefinitionGroup>
87
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
88
+ <ClCompile>
89
+ <WarningLevel>Level3</WarningLevel>
90
+ <Optimization>MaxSpeed</Optimization>
91
+ <FunctionLevelLinking>true</FunctionLevelLinking>
92
+ <IntrinsicFunctions>true</IntrinsicFunctions>
93
+ <SDLCheck>true</SDLCheck>
94
+ <ConformanceMode>true</ConformanceMode>
95
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
96
+ <OpenMPSupport>true</OpenMPSupport>
97
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
98
+ <LanguageStandard>stdcpp17</LanguageStandard>
99
+ </ClCompile>
100
+ <Link>
101
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
102
+ <OptimizeReferences>true</OptimizeReferences>
103
+ </Link>
104
+ </ItemDefinitionGroup>
105
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
106
+ <ClCompile>
107
+ <WarningLevel>Level3</WarningLevel>
108
+ <Optimization>Disabled</Optimization>
109
+ <SDLCheck>true</SDLCheck>
110
+ <ConformanceMode>true</ConformanceMode>
111
+ </ClCompile>
112
+ </ItemDefinitionGroup>
113
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
114
+ <ClCompile>
115
+ <WarningLevel>Level3</WarningLevel>
116
+ <Optimization>Disabled</Optimization>
117
+ <SDLCheck>true</SDLCheck>
118
+ <ConformanceMode>true</ConformanceMode>
119
+ <PreprocessorDefinitions>_MBCS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
120
+ <ControlFlowGuard>Guard</ControlFlowGuard>
121
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
122
+ <OpenMPSupport>true</OpenMPSupport>
123
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
124
+ <LanguageStandard>stdcpp17</LanguageStandard>
125
+ </ClCompile>
126
+ <Link>
127
+ <AdditionalOptions>/guard:cf %(AdditionalOptions)</AdditionalOptions>
128
+ </Link>
129
+ </ItemDefinitionGroup>
130
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
131
+ <ClCompile>
132
+ <WarningLevel>Level3</WarningLevel>
133
+ <Optimization>MaxSpeed</Optimization>
134
+ <FunctionLevelLinking>true</FunctionLevelLinking>
135
+ <IntrinsicFunctions>true</IntrinsicFunctions>
136
+ <SDLCheck>true</SDLCheck>
137
+ <ConformanceMode>true</ConformanceMode>
138
+ </ClCompile>
139
+ <Link>
140
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
141
+ <OptimizeReferences>true</OptimizeReferences>
142
+ </Link>
143
+ </ItemDefinitionGroup>
144
+ <ItemGroup>
145
+ <ClCompile Include="src\IndexSearcher\main.cpp" />
146
+ </ItemGroup>
147
+ <ItemGroup>
148
+ <None Include="packages.config" />
149
+ </ItemGroup>
150
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
151
+ <ImportGroup Label="ExtensionTargets">
152
+ <Import Project="..\packages\boost.1.72.0.0\build\boost.targets" Condition="Exists('..\packages\boost.1.72.0.0\build\boost.targets')" />
153
+ <Import Project="..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets" Condition="Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" />
154
+ <Import Project="..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets" Condition="Exists('..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets')" />
155
+ <Import Project="..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets" Condition="Exists('..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets')" />
156
+ <Import Project="..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets" Condition="Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" />
157
+ <Import Project="..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets" Condition="Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" />
158
+ <Import Project="..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets" Condition="Exists('..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets')" />
159
+ <Import Project="..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets" Condition="Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" />
160
+ </ImportGroup>
161
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
162
+ <PropertyGroup>
163
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
164
+ </PropertyGroup>
165
+ <Error Condition="!Exists('..\packages\boost.1.72.0.0\build\boost.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost.1.72.0.0\build\boost.targets'))" />
166
+ <Error Condition="!Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets'))" />
167
+ <Error Condition="!Exists('..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets'))" />
168
+ <Error Condition="!Exists('..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets'))" />
169
+ <Error Condition="!Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets'))" />
170
+ <Error Condition="!Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets'))" />
171
+ <Error Condition="!Exists('..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets'))" />
172
+ <Error Condition="!Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets'))" />
173
+ </Target>
174
+ </Project>
SPANN/AnnService/IndexSearcher.vcxproj.filters ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
4
+ <Filter Include="Source Files">
5
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7
+ </Filter>
8
+ <Filter Include="Header Files">
9
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10
+ <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11
+ </Filter>
12
+ <Filter Include="Resource Files">
13
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15
+ </Filter>
16
+ </ItemGroup>
17
+ <ItemGroup>
18
+ <ClCompile Include="src\IndexSearcher\main.cpp">
19
+ <Filter>Source Files</Filter>
20
+ </ClCompile>
21
+ </ItemGroup>
22
+ <ItemGroup>
23
+ <None Include="packages.config" />
24
+ </ItemGroup>
25
+ </Project>
SPANN/AnnService/SSDServing.vcxproj ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Release|Win32">
9
+ <Configuration>Release</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Debug|x64">
13
+ <Configuration>Debug</Configuration>
14
+ <Platform>x64</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|x64">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>x64</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <ItemGroup>
22
+ <ClCompile Include="src\SSDServing\main.cpp" />
23
+ </ItemGroup>
24
+ <ItemGroup>
25
+ <ClInclude Include="inc\SSDServing\main.h" />
26
+ <ClInclude Include="inc\SSDServing\SelectHead.h" />
27
+ <ClInclude Include="inc\SSDServing\SSDIndex.h" />
28
+ <ClInclude Include="inc\SSDServing\Utils.h" />
29
+ </ItemGroup>
30
+ <ItemGroup>
31
+ <None Include="packages.config" />
32
+ </ItemGroup>
33
+ <PropertyGroup Label="Globals">
34
+ <VCProjectVersion>15.0</VCProjectVersion>
35
+ <ProjectGuid>{217B42B7-8F2B-4323-804C-08992CA2F65E}</ProjectGuid>
36
+ <RootNamespace>SSDServing</RootNamespace>
37
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
38
+ </PropertyGroup>
39
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
40
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
41
+ <ConfigurationType>Application</ConfigurationType>
42
+ <UseDebugLibraries>true</UseDebugLibraries>
43
+ <PlatformToolset>v142</PlatformToolset>
44
+ <CharacterSet>MultiByte</CharacterSet>
45
+ </PropertyGroup>
46
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
47
+ <ConfigurationType>Application</ConfigurationType>
48
+ <UseDebugLibraries>false</UseDebugLibraries>
49
+ <PlatformToolset>v142</PlatformToolset>
50
+ <WholeProgramOptimization>true</WholeProgramOptimization>
51
+ <CharacterSet>MultiByte</CharacterSet>
52
+ </PropertyGroup>
53
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
54
+ <ConfigurationType>StaticLibrary</ConfigurationType>
55
+ <UseDebugLibraries>true</UseDebugLibraries>
56
+ <PlatformToolset>v142</PlatformToolset>
57
+ <CharacterSet>MultiByte</CharacterSet>
58
+ </PropertyGroup>
59
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
60
+ <ConfigurationType>StaticLibrary</ConfigurationType>
61
+ <UseDebugLibraries>false</UseDebugLibraries>
62
+ <PlatformToolset>v142</PlatformToolset>
63
+ <WholeProgramOptimization>true</WholeProgramOptimization>
64
+ <CharacterSet>MultiByte</CharacterSet>
65
+ </PropertyGroup>
66
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
67
+ <ImportGroup Label="ExtensionSettings">
68
+ </ImportGroup>
69
+ <ImportGroup Label="Shared">
70
+ </ImportGroup>
71
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
72
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
73
+ </ImportGroup>
74
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
75
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
76
+ </ImportGroup>
77
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
78
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
79
+ </ImportGroup>
80
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
81
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
82
+ </ImportGroup>
83
+ <PropertyGroup Label="UserMacros" />
84
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
85
+ <LinkIncremental>false</LinkIncremental>
86
+ <IncludePath>$(ProjectDir);$(IncludePath)</IncludePath>
87
+ <LibraryPath>$(OutDir);$(LibraryPath)</LibraryPath>
88
+ </PropertyGroup>
89
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
90
+ <LinkIncremental>true</LinkIncremental>
91
+ </PropertyGroup>
92
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
93
+ <LinkIncremental>false</LinkIncremental>
94
+ </PropertyGroup>
95
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
96
+ <LinkIncremental>false</LinkIncremental>
97
+ <IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);$(IncludePath);$(ProjectDir)</IncludePath>
98
+ <LibraryPath>$(OutDir);$(LibraryPath)</LibraryPath>
99
+ <ReferencePath>$(ReferencePath)</ReferencePath>
100
+ <IntDir>$(SolutionDir)obj\$(Platform)_$(Configuration)\$(ProjectName)\</IntDir>
101
+ </PropertyGroup>
102
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
103
+ <ClCompile>
104
+ <WarningLevel>Level3</WarningLevel>
105
+ <SDLCheck>false</SDLCheck>
106
+ <PreprocessorDefinitions>_$(OutputType);_DEBUG;_MBCS;_SCL_SECURE_NO_WARNINGS;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107
+ <ConformanceMode>true</ConformanceMode>
108
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
109
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
110
+ <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
111
+ <OpenMPSupport>true</OpenMPSupport>
112
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
113
+ <LanguageStandard>stdcpp17</LanguageStandard>
114
+ </ClCompile>
115
+ <Link>
116
+ <SubSystem>Console</SubSystem>
117
+ <GenerateDebugInformation>true</GenerateDebugInformation>
118
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
119
+ <AdditionalDependencies>CoreLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
120
+ </Link>
121
+ </ItemDefinitionGroup>
122
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
123
+ <ClCompile>
124
+ <WarningLevel>Level3</WarningLevel>
125
+ <SDLCheck>true</SDLCheck>
126
+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
127
+ <ConformanceMode>true</ConformanceMode>
128
+ </ClCompile>
129
+ <Link>
130
+ <SubSystem>Console</SubSystem>
131
+ <GenerateDebugInformation>true</GenerateDebugInformation>
132
+ </Link>
133
+ </ItemDefinitionGroup>
134
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
135
+ <ClCompile>
136
+ <WarningLevel>Level3</WarningLevel>
137
+ <FunctionLevelLinking>true</FunctionLevelLinking>
138
+ <IntrinsicFunctions>true</IntrinsicFunctions>
139
+ <SDLCheck>true</SDLCheck>
140
+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
141
+ <ConformanceMode>true</ConformanceMode>
142
+ </ClCompile>
143
+ <Link>
144
+ <SubSystem>Console</SubSystem>
145
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
146
+ <OptimizeReferences>true</OptimizeReferences>
147
+ <GenerateDebugInformation>true</GenerateDebugInformation>
148
+ </Link>
149
+ </ItemDefinitionGroup>
150
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
151
+ <ClCompile>
152
+ <WarningLevel>Level3</WarningLevel>
153
+ <FunctionLevelLinking>true</FunctionLevelLinking>
154
+ <IntrinsicFunctions>true</IntrinsicFunctions>
155
+ <SDLCheck>true</SDLCheck>
156
+ <PreprocessorDefinitions>_$(OutputType);_MBCS;_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
157
+ <ConformanceMode>true</ConformanceMode>
158
+ <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
159
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
160
+ <PrecompiledHeaderFile>inc/SSDServing/Common/stdafx.h</PrecompiledHeaderFile>
161
+ <OpenMPSupport>true</OpenMPSupport>
162
+ <AdditionalOptions>/Zc:twoPhase- %(AdditionalOptions)</AdditionalOptions>
163
+ <LanguageStandard>stdcpp17</LanguageStandard>
164
+ <ProgramDataBaseFileName>$(IntDir)$(ProjectName).pdb</ProgramDataBaseFileName>
165
+ <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
166
+ <EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
167
+ <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
168
+ <OmitFramePointers>true</OmitFramePointers>
169
+ <FloatingPointModel>Fast</FloatingPointModel>
170
+ </ClCompile>
171
+ <Link>
172
+ <SubSystem>Console</SubSystem>
173
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
174
+ <OptimizeReferences>true</OptimizeReferences>
175
+ <GenerateDebugInformation>true</GenerateDebugInformation>
176
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
177
+ <AdditionalDependencies>CoreLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
178
+ </Link>
179
+ </ItemDefinitionGroup>
180
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
181
+ <ImportGroup Label="ExtensionTargets">
182
+ <Import Project="..\packages\boost.1.72.0.0\build\boost.targets" Condition="Exists('..\packages\boost.1.72.0.0\build\boost.targets')" />
183
+ <Import Project="..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets" Condition="Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" />
184
+ <Import Project="..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets" Condition="Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" />
185
+ <Import Project="..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets" Condition="Exists('..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets')" />
186
+ <Import Project="..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets" Condition="Exists('..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets')" />
187
+ <Import Project="..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets" Condition="Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" />
188
+ <Import Project="..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets" Condition="Exists('..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets')" />
189
+ <Import Project="..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets" Condition="Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" />
190
+ </ImportGroup>
191
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
192
+ <PropertyGroup>
193
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
194
+ </PropertyGroup>
195
+ <Error Condition="!Exists('..\packages\boost.1.72.0.0\build\boost.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost.1.72.0.0\build\boost.targets'))" />
196
+ <Error Condition="!Exists('..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_date_time-vc142.1.72.0.0\build\boost_date_time-vc142.targets'))" />
197
+ <Error Condition="!Exists('..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_regex-vc142.1.72.0.0\build\boost_regex-vc142.targets'))" />
198
+ <Error Condition="!Exists('..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_serialization-vc142.1.72.0.0\build\boost_serialization-vc142.targets'))" />
199
+ <Error Condition="!Exists('..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_system-vc142.1.72.0.0\build\boost_system-vc142.targets'))" />
200
+ <Error Condition="!Exists('..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_thread-vc142.1.72.0.0\build\boost_thread-vc142.targets'))" />
201
+ <Error Condition="!Exists('..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\boost_wserialization-vc142.1.72.0.0\build\boost_wserialization-vc142.targets'))" />
202
+ <Error Condition="!Exists('..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets'))" />
203
+ </Target>
204
+ </Project>
SPANN/AnnService/Server.vcxproj.filters ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
4
+ <Filter Include="Source Files">
5
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7
+ </Filter>
8
+ <Filter Include="Header Files">
9
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10
+ <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11
+ </Filter>
12
+ </ItemGroup>
13
+ <ItemGroup>
14
+ <ClInclude Include="inc\Server\ServiceSettings.h">
15
+ <Filter>Header Files</Filter>
16
+ </ClInclude>
17
+ <ClInclude Include="inc\Server\ServiceContext.h">
18
+ <Filter>Header Files</Filter>
19
+ </ClInclude>
20
+ <ClInclude Include="inc\Server\SearchExecutor.h">
21
+ <Filter>Header Files</Filter>
22
+ </ClInclude>
23
+ <ClInclude Include="inc\Server\SearchExecutionContext.h">
24
+ <Filter>Header Files</Filter>
25
+ </ClInclude>
26
+ <ClInclude Include="inc\Server\QueryParser.h">
27
+ <Filter>Header Files</Filter>
28
+ </ClInclude>
29
+ <ClInclude Include="inc\Server\SearchService.h">
30
+ <Filter>Header Files</Filter>
31
+ </ClInclude>
32
+ </ItemGroup>
33
+ <ItemGroup>
34
+ <ClCompile Include="src\Server\SearchExecutionContext.cpp">
35
+ <Filter>Source Files</Filter>
36
+ </ClCompile>
37
+ <ClCompile Include="src\Server\SearchExecutor.cpp">
38
+ <Filter>Source Files</Filter>
39
+ </ClCompile>
40
+ <ClCompile Include="src\Server\ServiceContext.cpp">
41
+ <Filter>Source Files</Filter>
42
+ </ClCompile>
43
+ <ClCompile Include="src\Server\ServiceSettings.cpp">
44
+ <Filter>Source Files</Filter>
45
+ </ClCompile>
46
+ <ClCompile Include="src\Server\QueryParser.cpp">
47
+ <Filter>Source Files</Filter>
48
+ </ClCompile>
49
+ <ClCompile Include="src\Server\SearchService.cpp">
50
+ <Filter>Source Files</Filter>
51
+ </ClCompile>
52
+ <ClCompile Include="src\Server\main.cpp">
53
+ <Filter>Source Files</Filter>
54
+ </ClCompile>
55
+ </ItemGroup>
56
+ <ItemGroup>
57
+ <None Include="packages.config" />
58
+ </ItemGroup>
59
+ </Project>
SPANN/Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/oss/mirror/docker.io/library/ubuntu:20.04
2
+ WORKDIR /app
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ RUN apt-get update && apt-get -y install wget build-essential swig cmake git libnuma-dev python3.8-dev python3-distutils gcc-8 g++-8 \
7
+ libboost-filesystem-dev libboost-test-dev libboost-serialization-dev libboost-regex-dev libboost-serialization-dev libboost-regex-dev libboost-thread-dev libboost-system-dev
8
+
9
+ RUN wget https://bootstrap.pypa.io/get-pip.py && python3.8 get-pip.py && python3.8 -m pip install numpy
10
+
11
+ ENV PYTHONPATH=/app/Release
12
+
13
+ COPY CMakeLists.txt ./
14
+ COPY AnnService ./AnnService/
15
+ COPY Test ./Test/
16
+ COPY Wrappers ./Wrappers/
17
+ COPY GPUSupport ./GPUSupport/
18
+ COPY ThirdParty ./ThirdParty/
19
+
20
+ RUN export CC=/usr/bin/gcc-8 && export CXX=/usr/bin/g++-8 && mkdir build && cd build && cmake .. && make -j && cd ..
SPANN/Dockerfile.cuda ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/mirror/nvcr/nvidia/cuda:11.8.0-base-ubuntu20.04
2
+ WORKDIR /app
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
7
+
8
+ RUN apt-get -y install wget build-essential swig cmake git libnuma-dev python3.8-dev python3-distutils gcc-8 g++-8 \
9
+ libboost-filesystem-dev libboost-test-dev libboost-serialization-dev libboost-regex-dev libboost-serialization-dev libboost-regex-dev libboost-thread-dev libboost-system-dev
10
+
11
+ RUN wget https://bootstrap.pypa.io/get-pip.py && python3.8 get-pip.py && python3.8 -m pip install numpy
12
+
13
+ RUN git clone https://github.com/NVIDIA/cub && cd cub && git checkout c3cceac && cp -r cub /usr/include/ && cd ..
14
+
15
+ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin && mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 \
16
+ && wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-ubuntu2004-11-8-local_11.8.0-520.61.05-1_amd64.deb \
17
+ && dpkg -i cuda-repo-ubuntu2004-11-8-local_11.8.0-520.61.05-1_amd64.deb && cp /var/cuda-repo-ubuntu2004-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/ \
18
+ && apt-get update && apt-get install -y cuda-toolkit-11-8
19
+
20
+ LABEL com.nvidia.volumes.needed="nvidia_driver"
21
+ LABEL com.nvidia.cuda.version="11.8.0"
22
+
23
+ ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
24
+ ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
25
+
26
+ ENV NVIDIA_VISIBLE_DEVICES all
27
+ ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
28
+ ENV NVIDIA_REQUIRE_CUDA "cuda>=11.0"
29
+
30
+
31
+ ENV PYTHONPATH=/app/Release
32
+
33
+ COPY CMakeLists.txt ./
34
+ COPY AnnService ./AnnService/
35
+ COPY Test ./Test/
36
+ COPY Wrappers ./Wrappers/
37
+ COPY GPUSupport ./GPUSupport/
38
+ COPY ThirdParty ./ThirdParty/
39
+
40
+ RUN export CC=/usr/bin/gcc-8 && export CXX=/usr/bin/g++-8 && mkdir build && cd build && cmake .. && make -j && cd ..
SPANN/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
SPANN/MANIFEST.in ADDED
@@ -0,0 +1 @@
 
 
1
+ recursive-include sptag *.py _SPTAG* *.so *.dll Server.exe server
SPANN/README.md ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPTAG: A library for fast approximate nearest neighbor search
2
+
3
+ [![MIT licensed](https://img.shields.io/badge/license-MIT-yellow.svg)](https://github.com/Microsoft/SPTAG/blob/master/LICENSE)
4
+ [![Build status](https://sysdnn.visualstudio.com/SPTAG/_apis/build/status/SPTAG-GITHUB)](https://sysdnn.visualstudio.com/SPTAG/_build/latest?definitionId=2)
5
+
6
+ ## **SPTAG**
7
+ SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by [Microsoft Research (MSR)](https://www.msra.cn/) and [Microsoft Bing](http://bing.com).
8
+
9
+ <p align="center">
10
+ <img src="docs/img/sptag.png" alt="architecture" width="500"/>
11
+ </p>
12
+
13
+ ## What's NEW
14
+ * Result Iterator with Relaxed Monotonicity Signal Support
15
+ * New Research Paper [SPFresh: Incremental In-Place Update for Billion-Scale Vector Search](https://dl.acm.org/doi/10.1145/3600006.3613166) - _published in SOSP 2023_
16
+ * New Research Paper [VBASE: Unifying Online Vector Similarity Search and Relational Queries via Relaxed Monotonicity](https://www.usenix.org/system/files/osdi23-zhang-qianxi_1.pdf) - _published in OSDI 2023_
17
+
18
+ ## **Introduction**
19
+
20
+ This library assumes that the samples are represented as vectors and that the vectors can be compared by L2 distances or cosine distances.
21
+ Vectors returned for a query vector are the vectors that have smallest L2 distance or cosine distances with the query vector.
22
+
23
+ SPTAG provides two methods: kd-tree and relative neighborhood graph (SPTAG-KDT)
24
+ and balanced k-means tree and relative neighborhood graph (SPTAG-BKT).
25
+ SPTAG-KDT is advantageous in index building cost, and SPTAG-BKT is advantageous in search accuracy in very high-dimensional data.
26
+
27
+
28
+
29
+ ## **How it works**
30
+
31
+ SPTAG is inspired by the NGS approach [[WangL12](#References)]. It contains two basic modules: index builder and searcher.
32
+ The RNG is built on the k-nearest neighborhood graph [[WangWZTG12](#References), [WangWJLZZH14](#References)]
33
+ for boosting the connectivity. Balanced k-means trees are used to replace kd-trees to avoid the inaccurate distance bound estimation in kd-trees for very high-dimensional vectors.
34
+ The search begins with the search in the space partition trees for
35
+ finding several seeds to start the search in the RNG.
36
+ The searches in the trees and the graph are iteratively conducted.
37
+
38
+ ## **Highlights**
39
+ * Fresh update: Support online vector deletion and insertion
40
+ * Distributed serving: Search over multiple machines
41
+
42
+ ## **Build**
43
+
44
+ ### **Requirements**
45
+
46
+ * swig >= 4.0.2
47
+ * cmake >= 3.12.0
48
+ * boost >= 1.67.0
49
+
50
+ ### **Fast clone**
51
+
52
+ ```
53
+ set GIT_LFS_SKIP_SMUDGE=1
54
+ git clone --recurse-submodules https://github.com/microsoft/SPTAG
55
+
56
+ OR
57
+
58
+ git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
59
+ git config --global filter.lfs.process "git-lfs filter-process --skip"
60
+ ```
61
+
62
+ ### **Install**
63
+
64
+ > For Linux:
65
+ ```bash
66
+ mkdir build
67
+ cd build && cmake .. && make
68
+ ```
69
+ It will generate a Release folder in the code directory which contains all the build targets.
70
+
71
+ > For Windows:
72
+ ```bash
73
+ mkdir build
74
+ cd build && cmake -A x64 ..
75
+ ```
76
+ It will generate a SPTAGLib.sln in the build directory.
77
+ Compiling the ALL_BUILD project in the Visual Studio (at least 2019) will generate a Release directory which contains all the build targets.
78
+
79
+ For detailed instructions on installing Windows binaries, please see [here](docs/WindowsInstallation.md)
80
+
81
+ > Using Docker:
82
+ ```bash
83
+ docker build -t sptag .
84
+ ```
85
+ Will build a docker container with binaries in `/app/Release/`.
86
+
87
+ ### **Verify**
88
+
89
+ Run the SPTAGTest (or Test.exe) in the Release folder to verify all the tests have passed.
90
+
91
+ ### **Usage**
92
+
93
+ The detailed usage can be found in [Get started](docs/GettingStart.md). There is also an end-to-end tutorial for building vector search online service using Python Wrapper in [Python Tutorial](docs/Tutorial.ipynb).
94
+ The detailed parameters tunning can be found in [Parameters](docs/Parameters.md).
95
+
96
+ ## **References**
97
+ Please cite SPTAG in your publications if it helps your research:
98
+ ```
99
+ @inproceedings{xu2023spfresh,
100
+ title={SPFresh: Incremental In-Place Update for Billion-Scale Vector Search},
101
+ author={Xu, Yuming and Liang, Hengyu and Li, Jin and Xu, Shuotao and Chen, Qi and Zhang, Qianxi and Li, Cheng and Yang, Ziyue and Yang, Fan and Yang, Yuqing and others},
102
+ booktitle={Proceedings of the 29th Symposium on Operating Systems Principles},
103
+ pages={545--561},
104
+ year={2023}
105
+ }
106
+
107
+ @inproceedings{zhang2023vbase,
108
+ title={$\{$VBASE$\}$: Unifying Online Vector Similarity Search and Relational Queries via Relaxed Monotonicity},
109
+ author={Zhang, Qianxi and Xu, Shuotao and Chen, Qi and Sui, Guoxin and Xie, Jiadong and Cai, Zhizhen and Chen, Yaoqi and He, Yinxuan and Yang, Yuqing and Yang, Fan and others},
110
+ booktitle={17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23)},
111
+ year={2023}
112
+ }
113
+
114
+ @inproceedings{ChenW21,
115
+ author = {Qi Chen and
116
+ Bing Zhao and
117
+ Haidong Wang and
118
+ Mingqin Li and
119
+ Chuanjie Liu and
120
+ Zengzhong Li and
121
+ Mao Yang and
122
+ Jingdong Wang},
123
+ title = {SPANN: Highly-efficient Billion-scale Approximate Nearest Neighbor Search},
124
+ booktitle = {35th Conference on Neural Information Processing Systems (NeurIPS 2021)},
125
+ year = {2021}
126
+ }
127
+
128
+ @manual{ChenW18,
129
+ author = {Qi Chen and
130
+ Haidong Wang and
131
+ Mingqin Li and
132
+ Gang Ren and
133
+ Scarlett Li and
134
+ Jeffery Zhu and
135
+ Jason Li and
136
+ Chuanjie Liu and
137
+ Lintao Zhang and
138
+ Jingdong Wang},
139
+ title = {SPTAG: A library for fast approximate nearest neighbor search},
140
+ url = {https://github.com/Microsoft/SPTAG},
141
+ year = {2018}
142
+ }
143
+
144
+ @inproceedings{WangL12,
145
+ author = {Jingdong Wang and
146
+ Shipeng Li},
147
+ title = {Query-driven iterated neighborhood graph search for large scale indexing},
148
+ booktitle = {ACM Multimedia 2012},
149
+ pages = {179--188},
150
+ year = {2012}
151
+ }
152
+
153
+ @inproceedings{WangWZTGL12,
154
+ author = {Jing Wang and
155
+ Jingdong Wang and
156
+ Gang Zeng and
157
+ Zhuowen Tu and
158
+ Rui Gan and
159
+ Shipeng Li},
160
+ title = {Scalable k-NN graph construction for visual descriptors},
161
+ booktitle = {CVPR 2012},
162
+ pages = {1106--1113},
163
+ year = {2012}
164
+ }
165
+
166
+ @article{WangWJLZZH14,
167
+ author = {Jingdong Wang and
168
+ Naiyan Wang and
169
+ You Jia and
170
+ Jian Li and
171
+ Gang Zeng and
172
+ Hongbin Zha and
173
+ Xian{-}Sheng Hua},
174
+ title = {Trinary-Projection Trees for Approximate Nearest Neighbor Search},
175
+ journal = {{IEEE} Trans. Pattern Anal. Mach. Intell.},
176
+ volume = {36},
177
+ number = {2},
178
+ pages = {388--403},
179
+ year = {2014
180
+ }
181
+ ```
182
+
183
+ ## **Contribute**
184
+
185
+ This project welcomes contributions and suggestions from all the users.
186
+
187
+ We use [GitHub issues](https://github.com/Microsoft/SPTAG/issues) for tracking suggestions and bugs.
188
+
189
+ ## **License**
190
+ The entire codebase is under [MIT license](https://github.com/Microsoft/SPTAG/blob/master/LICENSE)
SPANN/SECURITY.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
2
+
3
+ ## Security
4
+
5
+ Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6
+
7
+ If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8
+
9
+ ## Reporting Security Issues
10
+
11
+ **Please do not report security vulnerabilities through public GitHub issues.**
12
+
13
+ Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14
+
15
+ If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16
+
17
+ You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18
+
19
+ Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20
+
21
+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22
+ * Full paths of source file(s) related to the manifestation of the issue
23
+ * The location of the affected source code (tag/branch/commit or direct URL)
24
+ * Any special configuration required to reproduce the issue
25
+ * Step-by-step instructions to reproduce the issue
26
+ * Proof-of-concept or exploit code (if possible)
27
+ * Impact of the issue, including how an attacker might exploit the issue
28
+
29
+ This information will help us triage your report more quickly.
30
+
31
+ If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32
+
33
+ ## Preferred Languages
34
+
35
+ We prefer all communications to be in English.
36
+
37
+ ## Policy
38
+
39
+ Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40
+
41
+ <!-- END MICROSOFT SECURITY.MD BLOCK -->
SPANN/SPTAG.WinRT.nuspec ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <package >
3
+ <metadata>
4
+ <id>SPTAG.WinRT</id>
5
+ <version>1.2.13-mainOPQ-CoreLib-SPANN-withsource-a6b7604</version>
6
+ <title>SPTAG.WinRT</title>
7
+ <authors>cheqi,haidwa,mingqli</authors>
8
+ <owners>cheqi,haidwa,mingqli,zhah</owners>
9
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
10
+ <licenseUrl>https://github.com/microsoft/SPTAG</licenseUrl>
11
+ <projectUrl>https://github.com/microsoft/SPTAG</projectUrl>
12
+ <description>SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by Microsoft Research (MSR) and Microsoft Bing.</description>
13
+ <releaseNotes>publish with commit microsoft/add python version in wheel package/a6b7604</releaseNotes>
14
+ <copyright>Copyright © Microsoft</copyright>
15
+ <dependencies>
16
+ <group targetFramework="uap10.0">
17
+ <dependency id="Zstandard.dyn.x64" version="1.4.0" />
18
+ </group>
19
+ <group targetFramework="native">
20
+ <dependency id="Zstandard.dyn.x64" version="1.4.0" />
21
+ </group>
22
+ </dependencies>
23
+ </metadata>
24
+ <files>
25
+ <file src="Wrappers\WinRT\SPTAG.WinRT.targets" target="build\native" />
26
+ <file src="x64\Release\SPTAG.WinRT\SPTAG.winmd" target="lib\uap10.0" />
27
+ <file src="x64\Release\SPTAG.WinRT\SPTAG.dll" target="runtimes\win10-x64\native" />
28
+ <file src="readme.md" />
29
+ <file src="LICENSE" />
30
+ </files>
31
+ </package>
SPANN/SPTAG.nuspec ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
3
+ <metadata>
4
+ <id>SPTAG.Library</id>
5
+ <version>1.2.13-mainOPQ-CoreLib-SPANN-withsource-a6b7604</version>
6
+ <title>SPTAG.Library</title>
7
+ <authors>cheqi,haidwa,mingqli</authors>
8
+ <owners>cheqi,haidwa,mingqli,zhah</owners>
9
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
10
+ <licenseUrl>https://github.com/microsoft/SPTAG</licenseUrl>
11
+ <projectUrl>https://github.com/microsoft/SPTAG</projectUrl>
12
+ <description>SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by Microsoft Research (MSR) and Microsoft Bing.</description>
13
+ <releaseNotes>publish with commit microsoft/add python version in wheel package/a6b7604</releaseNotes>
14
+ <copyright>Copyright © Microsoft</copyright>
15
+ </metadata>
16
+ <files>
17
+ <file src="AnnService\inc\Core\BKT\Index.h" target="build\native\inc\Core\BKT\Index.h" />
18
+ <file src="AnnService\inc\Core\BKT\ParameterDefinitionList.h" target="build\native\inc\Core\BKT\ParameterDefinitionList.h" />
19
+ <file src="AnnService\inc\Core\Common\cuda\Distance.hxx" target="build\native\inc\Core\Common\cuda\Distance.hxx" />
20
+ <file src="AnnService\inc\Core\Common\cuda\Kmeans.hxx" target="build\native\inc\Core\Common\cuda\Kmeans.hxx" />
21
+ <file src="AnnService\inc\Core\Common\cuda\KNN.hxx" target="build\native\inc\Core\Common\cuda\KNN.hxx" />
22
+ <file src="AnnService\inc\Core\Common\cuda\params.h" target="build\native\inc\Core\Common\cuda\params.h" />
23
+ <file src="AnnService\inc\Core\Common\cuda\Refine.hxx" target="build\native\inc\Core\Common\cuda\Refine.hxx" />
24
+ <file src="AnnService\inc\Core\Common\cuda\TailNeighbors.hxx" target="build\native\inc\Core\Common\cuda\TailNeighbors.hxx" />
25
+ <file src="AnnService\inc\Core\Common\cuda\ThreadHeap.hxx" target="build\native\inc\Core\Common\cuda\ThreadHeap.hxx" />
26
+ <file src="AnnService\inc\Core\Common\cuda\TPtree.hxx" target="build\native\inc\Core\Common\cuda\TPtree.hxx" />
27
+ <file src="AnnService\inc\Core\Common\BKTree.h" target="build\native\inc\Core\Common\BKTree.h" />
28
+ <file src="AnnService\inc\Core\Common\CommonUtils.h" target="build\native\inc\Core\Common\CommonUtils.h" />
29
+ <file src="AnnService\inc\Core\Common\Dataset.h" target="build\native\inc\Core\Common\Dataset.h" />
30
+ <file src="AnnService\inc\Core\Common\DistanceUtils.h" target="build\native\inc\Core\Common\DistanceUtils.h" />
31
+ <file src="AnnService\inc\Core\Common\SIMDUtils.h" target="build\native\inc\Core\Common\SIMDUtils.h" />
32
+ <file src="AnnService\inc\Core\Common\FineGrainedLock.h" target="build\native\inc\Core\Common\FineGrainedLock.h" />
33
+ <file src="AnnService\inc\Core\Common\Heap.h" target="build\native\inc\Core\Common\Heap.h" />
34
+ <file src="AnnService\inc\Core\Common\InstructionUtils.h" target="build\native\inc\Core\Common\InstructionUtils.h" />
35
+ <file src="AnnService\inc\Core\Common\IQuantizer.h" target="build\native\inc\Core\Common\IQuantizer.h" />
36
+ <file src="AnnService\inc\Core\Common\KDTree.h" target="build\native\inc\Core\Common\KDTree.h" />
37
+ <file src="AnnService\inc\Core\Common\KNearestNeighborhoodGraph.h" target="build\native\inc\Core\Common\KNearestNeighborhoodGraph.h" />
38
+ <file src="AnnService\inc\Core\Common\Labelset.h" target="build\native\inc\Core\Common\Labelset.h" />
39
+ <file src="AnnService\inc\Core\Common\NeighborhoodGraph.h" target="build\native\inc\Core\Common\NeighborhoodGraph.h" />
40
+ <file src="AnnService\inc\Core\Common\OPQQuantizer.h" target="build\native\inc\Core\Common\OPQQuantizer.h" />
41
+ <file src="AnnService\inc\Core\Common\PQQuantizer.h" target="build\native\inc\Core\Common\PQQuantizer.h" />
42
+ <file src="AnnService\inc\Core\Common\QueryResultSet.h" target="build\native\inc\Core\Common\QueryResultSet.h" />
43
+ <file src="AnnService\inc\Core\Common\RelativeNeighborhoodGraph.h" target="build\native\inc\Core\Common\RelativeNeighborhoodGraph.h" />
44
+ <file src="AnnService\inc\Core\Common\TruthSet.h" target="build\native\inc\Core\Common\TruthSet.h" />
45
+ <file src="AnnService\inc\Core\Common\WorkSpace.h" target="build\native\inc\Core\Common\WorkSpace.h" />
46
+ <file src="AnnService\inc\Core\Common\WorkSpacePool.h" target="build\native\inc\Core\Common\WorkSpacePool.h" />
47
+ <file src="AnnService\inc\Core\KDT\Index.h" target="build\native\inc\Core\KDT\Index.h" />
48
+ <file src="AnnService\inc\Core\KDT\ParameterDefinitionList.h" target="build\native\inc\Core\KDT\ParameterDefinitionList.h" />
49
+ <file src="AnnService\inc\Core\SPANN\ExtraFullGraphSearcher.h" target="build\native\inc\Core\SPANN\ExtraFullGraphSearcher.h" />
50
+ <file src="AnnService\inc\Core\SPANN\IExtraSearcher.h" target="build\native\inc\Core\SPANN\IExtraSearcher.h" />
51
+ <file src="AnnService\inc\Core\SPANN\Index.h" target="build\native\inc\Core\SPANN\Index.h" />
52
+ <file src="AnnService\inc\Core\SPANN\Compressor.h" target="build\native\inc\Core\SPANN\Compressor.h" />
53
+ <file src="AnnService\inc\Core\SPANN\Options.h" target="build\native\inc\Core\SPANN\Options.h" />
54
+ <file src="AnnService\inc\Core\SPANN\ParameterDefinitionList.h" target="build\native\inc\Core\SPANN\ParameterDefinitionList.h" />
55
+ <file src="AnnService\inc\Core\Common.h" target="build\native\inc\Core\Common.h" />
56
+ <file src="AnnService\inc\Core\CommonDataStructure.h" target="build\native\inc\Core\CommonDataStructure.h" />
57
+ <file src="AnnService\inc\Core\DefinitionList.h" target="build\native\inc\Core\DefinitionList.h" />
58
+ <file src="AnnService\inc\Core\MetadataSet.h" target="build\native\inc\Core\MetadataSet.h" />
59
+ <file src="AnnService\inc\Core\SearchQuery.h" target="build\native\inc\Core\SearchQuery.h" />
60
+ <file src="AnnService\inc\Core\SearchResult.h" target="build\native\inc\Core\SearchResult.h" />
61
+ <file src="AnnService\inc\Core\VectorIndex.h" target="build\native\inc\Core\VectorIndex.h" />
62
+ <file src="AnnService\inc\Core\VectorSet.h" target="build\native\inc\Core\VectorSet.h" />
63
+ <file src="AnnService\inc\Helper\VectorSetReaders\DefaultReader.h" target="build\native\inc\Helper\VectorSetReaders\DefaultReader.h" />
64
+ <file src="AnnService\inc\Helper\VectorSetReaders\MemoryReader.h" target="build\native\inc\Helper\VectorSetReaders\MemoryReader.h" />
65
+ <file src="AnnService\inc\Helper\VectorSetReaders\TxtReader.h" target="build\native\inc\Helper\VectorSetReaders\TxtReader.h" />
66
+ <file src="AnnService\inc\Helper\VectorSetReaders\XvecReader.h" target="build\native\inc\Helper\VectorSetReaders\XvecReader.h" />
67
+ <file src="AnnService\inc\Helper\ArgumentsParser.h" target="build\native\inc\Helper\ArgumentsParser.h" />
68
+ <file src="AnnService\inc\Helper\AsyncFileReader.h" target="build\native\inc\Helper\AsyncFileReader.h" />
69
+ <file src="AnnService\inc\Helper\Base64Encode.h" target="build\native\inc\Helper\Base64Encode.h" />
70
+ <file src="AnnService\inc\Helper\CommonHelper.h" target="build\native\inc\Helper\CommonHelper.h" />
71
+ <file src="AnnService\inc\Helper\Concurrent.h" target="build\native\inc\Helper\Concurrent.h" />
72
+ <file src="AnnService\inc\Helper\ConcurrentSet.h" target="build\native\inc\Helper\ConcurrentSet.h" />
73
+ <file src="AnnService\inc\Helper\DiskIO.h" target="build\native\inc\Helper\DiskIO.h" />
74
+ <file src="AnnService\inc\Helper\DynamicNeighbors.h" target="build\native\inc\Helper\DynamicNeighbors.h" />
75
+ <file src="AnnService\inc\Helper\LockFree.h" target="build\native\inc\Helper\LockFree.h" />
76
+ <file src="AnnService\inc\Helper\Logging.h" target="build\native\inc\Helper\Logging.h" />
77
+ <file src="AnnService\inc\Helper\SimpleIniReader.h" target="build\native\inc\Helper\SimpleIniReader.h" />
78
+ <file src="AnnService\inc\Helper\StringConvert.h" target="build\native\inc\Helper\StringConvert.h" />
79
+ <file src="AnnService\inc\Helper\ThreadPool.h" target="build\native\inc\Helper\ThreadPool.h" />
80
+ <file src="AnnService\inc\Helper\VectorSetReader.h" target="build\native\inc\Helper\VectorSetReader.h" />
81
+ <file src="AnnService\src\Core\BKT\BKTIndex.cpp" target="build\native\src\Core\BKT\BKTIndex.cpp" />
82
+ <file src="AnnService\src\Core\Common\CommonUtils.cpp" target="build\native\src\Core\Common\CommonUtils.cpp" />
83
+ <file src="AnnService\src\Core\Common\DistanceUtils.cpp" target="build\native\src\Core\Common\DistanceUtils.cpp" />
84
+ <file src="AnnService\src\Core\Common\InstructionUtils.cpp" target="build\native\src\Core\Common\InstructionUtils.cpp" />
85
+ <file src="AnnService\src\Core\Common\IQuantizer.cpp" target="build\native\src\Core\Common\IQuantizer.cpp" />
86
+ <file src="AnnService\src\Core\Common\NeighborhoodGraph.cpp" target="build\native\src\Core\Common\NeighborhoodGraph.cpp" />
87
+ <file src="AnnService\src\Core\Common\SIMDUtils.cpp" target="build\native\src\Core\Common\SIMDUtils.cpp" />
88
+ <file src="AnnService\src\Core\Common\TruthSet.cpp" target="build\native\src\Core\Common\TruthSet.cpp" />
89
+ <file src="AnnService\src\Core\KDT\KDTIndex.cpp" target="build\native\src\Core\KDT\KDTIndex.cpp" />
90
+ <file src="AnnService\src\Core\SPANN\SPANNIndex.cpp" target="build\native\src\Core\SPANN\SPANNIndex.cpp" />
91
+ <file src="AnnService\src\Core\MetadataSet.cpp" target="build\native\src\Core\MetadataSet.cpp" />
92
+ <file src="AnnService\src\Core\VectorIndex.cpp" target="build\native\src\Core\VectorIndex.cpp" />
93
+ <file src="AnnService\src\Core\VectorSet.cpp" target="build\native\src\Core\VectorSet.cpp" />
94
+ <file src="AnnService\src\Helper\VectorSetReader.cpp" target="build\native\src\Helper\VectorSetReader.cpp" />
95
+ <file src="AnnService\src\Helper\SimpleIniReader.cpp" target="build\native\src\Helper\SimpleIniReader.cpp" />
96
+ <file src="AnnService\src\Helper\DynamicNeighbors.cpp" target="build\native\src\Helper\DynamicNeighbors.cpp" />
97
+ <file src="AnnService\src\Helper\Concurrent.cpp" target="build\native\src\Helper\Concurrent.cpp" />
98
+ <file src="AnnService\src\Helper\CommonHelper.cpp" target="build\native\src\Helper\CommonHelper.cpp" />
99
+ <file src="AnnService\src\Helper\Base64Encode.cpp" target="build\native\src\Helper\Base64Encode.cpp" />
100
+ <file src="AnnService\src\Helper\AsyncFileReader.cpp" target="build\native\src\Helper\AsyncFileReader.cpp" />
101
+ <file src="AnnService\src\Helper\ArgumentsParser.cpp" target="build\native\src\Helper\ArgumentsParser.cpp" />
102
+ <file src="AnnService\src\Helper\VectorSetReaders\DefaultReader.cpp" target="build\native\src\Helper\VectorSetReaders\DefaultReader.cpp" />
103
+ <file src="AnnService\src\Helper\VectorSetReaders\TxtReader.cpp" target="build\native\src\Helper\VectorSetReaders\TxtReader.cpp" />
104
+ <file src="AnnService\src\Helper\VectorSetReaders\XvecReader.cpp" target="build\native\src\Helper\VectorSetReaders\XvecReader.cpp" />
105
+ <file src="ThirdParty\zstd\lib\zdict.h" target="build\native\zdict.h" />
106
+ <file src="ThirdParty\zstd\lib\zstd.h" target="build\native\zstd.h" />
107
+ <file src="ThirdParty\zstd\lib\zstd_errors.h" target="build\native\zstd_errors.h" />
108
+ <file src="x64\Debug\CoreLibrary.lib" target="lib\native\debug\x64\CoreLibrary.lib" />
109
+ <file src="x64\Debug\CoreLibrary.pdb" target="lib\native\debug\x64\CoreLibrary.pdb" />
110
+ <file src="x64\Debug\libzstd.dll" target="lib\native\debug\x64\libzstd.dll" />
111
+ <file src="x64\Release\CoreLibrary.lib" target="lib\native\retail\x64\CoreLibrary.lib" />
112
+ <file src="x64\Release\CoreLibrary.pdb" target="lib\native\retail\x64\CoreLibrary.pdb" />
113
+ <file src="x64\Release\libzstd.dll" target="lib\native\retail\x64\libzstd.dll" />
114
+ <file src="packages\Zstandard.dyn.x64.1.4.0\build\native\x64\libzstd.lib" target="lib\native\debug\x64\libzstd.lib" />
115
+ <file src="packages\Zstandard.dyn.x64.1.4.0\build\native\x64\libzstd.lib" target="lib\native\retail\x64\libzstd.lib" />
116
+ </files>
117
+ </package>
SPANN/SPTAG.sdf ADDED
Binary file (65.5 kB). View file
 
SPANN/SPTAG.sln ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Microsoft Visual Studio Solution File, Format Version 12.00
2
+ # Visual Studio Version 17
3
+ VisualStudioVersion = 17.4.33403.182
4
+ MinimumVisualStudioVersion = 10.0.40219.1
5
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CoreLibrary", "AnnService\CoreLibrary.vcxproj", "{C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}"
6
+ EndProject
7
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Server", "AnnService\Server.vcxproj", "{E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}"
8
+ ProjectSection(ProjectDependencies) = postProject
9
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
10
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
11
+ EndProjectSection
12
+ EndProject
13
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PythonCore", "Wrappers\PythonCore.vcxproj", "{AF31947C-0495-42FE-A1AD-8F0DA2A679C7}"
14
+ ProjectSection(ProjectDependencies) = postProject
15
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
16
+ EndProjectSection
17
+ EndProject
18
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SocketLib", "AnnService\SocketLib.vcxproj", "{F9A72303-6381-4C80-86FF-606A2F6F7B96}"
19
+ ProjectSection(ProjectDependencies) = postProject
20
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
21
+ EndProjectSection
22
+ EndProject
23
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Client", "AnnService\Client.vcxproj", "{A89D70C3-C53B-42DE-A5CE-9A472540F5CB}"
24
+ ProjectSection(ProjectDependencies) = postProject
25
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
26
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
27
+ EndProjectSection
28
+ EndProject
29
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Aggregator", "AnnService\Aggregator.vcxproj", "{D7F09A63-BDCA-4F6C-A864-8551D1FE447A}"
30
+ ProjectSection(ProjectDependencies) = postProject
31
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
32
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
33
+ EndProjectSection
34
+ EndProject
35
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PythonClient", "Wrappers\PythonClient.vcxproj", "{9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}"
36
+ ProjectSection(ProjectDependencies) = postProject
37
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
38
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
39
+ EndProjectSection
40
+ EndProject
41
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IndexBuilder", "AnnService\IndexBuilder.vcxproj", "{F492F794-E78B-4B1F-A556-5E045B9163D5}"
42
+ ProjectSection(ProjectDependencies) = postProject
43
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
44
+ EndProjectSection
45
+ EndProject
46
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IndexSearcher", "AnnService\IndexSearcher.vcxproj", "{97615D3B-9FA0-469E-B229-95A91A5087E0}"
47
+ ProjectSection(ProjectDependencies) = postProject
48
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
49
+ EndProjectSection
50
+ EndProject
51
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test", "Test\Test.vcxproj", "{29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}"
52
+ ProjectSection(ProjectDependencies) = postProject
53
+ {217B42B7-8F2B-4323-804C-08992CA2F65E} = {217B42B7-8F2B-4323-804C-08992CA2F65E}
54
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
55
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
56
+ EndProjectSection
57
+ EndProject
58
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "JavaCore", "Wrappers\JavaCore.vcxproj", "{93FEB26B-965E-4157-8BE5-052F5CA112BB}"
59
+ ProjectSection(ProjectDependencies) = postProject
60
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
61
+ EndProjectSection
62
+ EndProject
63
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "JavaClient", "Wrappers\JavaClient.vcxproj", "{8866BF98-AA2E-450F-9F33-083E007CCA74}"
64
+ ProjectSection(ProjectDependencies) = postProject
65
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
66
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
67
+ EndProjectSection
68
+ EndProject
69
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CsharpCore", "Wrappers\CsharpCore.vcxproj", "{1896C009-AD46-4A70-B83C-4652A7F37503}"
70
+ ProjectSection(ProjectDependencies) = postProject
71
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
72
+ EndProjectSection
73
+ EndProject
74
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CsharpClient", "Wrappers\CsharpClient.vcxproj", "{363BA3BB-75C4-4CC7-AECB-28C7534B3710}"
75
+ ProjectSection(ProjectDependencies) = postProject
76
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
77
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96} = {F9A72303-6381-4C80-86FF-606A2F6F7B96}
78
+ EndProjectSection
79
+ EndProject
80
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CLRCore", "Wrappers\CLRCore.vcxproj", "{38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}"
81
+ ProjectSection(ProjectDependencies) = postProject
82
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
83
+ EndProjectSection
84
+ EndProject
85
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GPUCoreLibrary", "AnnService\GPUCoreLibrary.vcxproj", "{84A84DBE-D46B-4EC9-8948-FF150DE5D386}"
86
+ EndProject
87
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GPUIndexBuilder", "AnnService\GPUIndexBuilder.vcxproj", "{85106062-3D9F-4B52-AFF3-97D0F9575888}"
88
+ ProjectSection(ProjectDependencies) = postProject
89
+ {84A84DBE-D46B-4EC9-8948-FF150DE5D386} = {84A84DBE-D46B-4EC9-8948-FF150DE5D386}
90
+ EndProjectSection
91
+ EndProject
92
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SSDServing", "AnnService\SSDServing.vcxproj", "{217B42B7-8F2B-4323-804C-08992CA2F65E}"
93
+ ProjectSection(ProjectDependencies) = postProject
94
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
95
+ EndProjectSection
96
+ EndProject
97
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BalancedDataPartition", "AnnService\BalancedDataPartition.vcxproj", "{EB9D699A-16CB-4D51-AB39-0B170BE72FC8}"
98
+ EndProject
99
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GPUSSDServing", "AnnService\GPUSSDServing.vcxproj", "{0CA39557-067E-4EBD-8264-9D09B00275A2}"
100
+ EndProject
101
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Quantizer", "AnnService\Quantizer.vcxproj", "{94D8008A-3AD8-4CA6-BA02-FE1458804E1D}"
102
+ ProjectSection(ProjectDependencies) = postProject
103
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
104
+ EndProjectSection
105
+ EndProject
106
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SPTAG", "Wrappers\WinRT\SPTAG.WinRT.vcxproj", "{8DC74C33-6E15-43ED-9300-2A140589E3DA}"
107
+ ProjectSection(ProjectDependencies) = postProject
108
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9} = {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}
109
+ EndProjectSection
110
+ EndProject
111
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WinRTTest", "Test\WinRTTest\WinRTTest.vcxproj", "{C9DF3099-A142-4AA7-B936-1541816A1F21}"
112
+ EndProject
113
+ Global
114
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
115
+ Debug|x64 = Debug|x64
116
+ Debug|x86 = Debug|x86
117
+ Release|x64 = Release|x64
118
+ Release|x86 = Release|x86
119
+ EndGlobalSection
120
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
121
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Debug|x64.ActiveCfg = Debug|x64
122
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Debug|x64.Build.0 = Debug|x64
123
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Debug|x86.ActiveCfg = Debug|x64
124
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Debug|x86.Build.0 = Debug|x64
125
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Release|x64.ActiveCfg = Release|x64
126
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Release|x64.Build.0 = Release|x64
127
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Release|x86.ActiveCfg = Debug|x64
128
+ {C2BC5FDE-C853-4F3D-B7E4-2C9B5524DDF9}.Release|x86.Build.0 = Debug|x64
129
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Debug|x64.ActiveCfg = Debug|x64
130
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Debug|x64.Build.0 = Debug|x64
131
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Debug|x86.ActiveCfg = Debug|x64
132
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Debug|x86.Build.0 = Debug|x64
133
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Release|x64.ActiveCfg = Release|x64
134
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Release|x64.Build.0 = Release|x64
135
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Release|x86.ActiveCfg = Debug|x64
136
+ {E28B1222-8BEA-4A92-8FE0-088EBDAA7FE0}.Release|x86.Build.0 = Debug|x64
137
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Debug|x64.ActiveCfg = Debug|x64
138
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Debug|x64.Build.0 = Debug|x64
139
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Debug|x86.ActiveCfg = Debug|x64
140
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Debug|x86.Build.0 = Debug|x64
141
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Release|x64.ActiveCfg = Release|x64
142
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Release|x64.Build.0 = Release|x64
143
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Release|x86.ActiveCfg = Debug|x64
144
+ {AF31947C-0495-42FE-A1AD-8F0DA2A679C7}.Release|x86.Build.0 = Debug|x64
145
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Debug|x64.ActiveCfg = Debug|x64
146
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Debug|x64.Build.0 = Debug|x64
147
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Debug|x86.ActiveCfg = Debug|x64
148
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Debug|x86.Build.0 = Debug|x64
149
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Release|x64.ActiveCfg = Release|x64
150
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Release|x64.Build.0 = Release|x64
151
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Release|x86.ActiveCfg = Debug|x64
152
+ {F9A72303-6381-4C80-86FF-606A2F6F7B96}.Release|x86.Build.0 = Debug|x64
153
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Debug|x64.ActiveCfg = Debug|x64
154
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Debug|x64.Build.0 = Debug|x64
155
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Debug|x86.ActiveCfg = Debug|x64
156
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Debug|x86.Build.0 = Debug|x64
157
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Release|x64.ActiveCfg = Release|x64
158
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Release|x64.Build.0 = Release|x64
159
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Release|x86.ActiveCfg = Debug|x64
160
+ {A89D70C3-C53B-42DE-A5CE-9A472540F5CB}.Release|x86.Build.0 = Debug|x64
161
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Debug|x64.ActiveCfg = Debug|x64
162
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Debug|x64.Build.0 = Debug|x64
163
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Debug|x86.ActiveCfg = Debug|x64
164
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Debug|x86.Build.0 = Debug|x64
165
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Release|x64.ActiveCfg = Release|x64
166
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Release|x64.Build.0 = Release|x64
167
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Release|x86.ActiveCfg = Debug|x64
168
+ {D7F09A63-BDCA-4F6C-A864-8551D1FE447A}.Release|x86.Build.0 = Debug|x64
169
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Debug|x64.ActiveCfg = Debug|x64
170
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Debug|x64.Build.0 = Debug|x64
171
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Debug|x86.ActiveCfg = Debug|Win32
172
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Debug|x86.Build.0 = Debug|Win32
173
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Release|x64.ActiveCfg = Release|x64
174
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Release|x64.Build.0 = Release|x64
175
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Release|x86.ActiveCfg = Release|Win32
176
+ {9B014CF6-E3FB-4BD4-B3B1-D26297BB31AA}.Release|x86.Build.0 = Release|Win32
177
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Debug|x64.ActiveCfg = Debug|x64
178
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Debug|x64.Build.0 = Debug|x64
179
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Debug|x86.ActiveCfg = Debug|Win32
180
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Debug|x86.Build.0 = Debug|Win32
181
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Release|x64.ActiveCfg = Release|x64
182
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Release|x64.Build.0 = Release|x64
183
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Release|x86.ActiveCfg = Release|Win32
184
+ {F492F794-E78B-4B1F-A556-5E045B9163D5}.Release|x86.Build.0 = Release|Win32
185
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Debug|x64.ActiveCfg = Debug|x64
186
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Debug|x64.Build.0 = Debug|x64
187
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Debug|x86.ActiveCfg = Debug|Win32
188
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Debug|x86.Build.0 = Debug|Win32
189
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Release|x64.ActiveCfg = Release|x64
190
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Release|x64.Build.0 = Release|x64
191
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Release|x86.ActiveCfg = Release|Win32
192
+ {97615D3B-9FA0-469E-B229-95A91A5087E0}.Release|x86.Build.0 = Release|Win32
193
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Debug|x64.ActiveCfg = Debug|x64
194
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Debug|x64.Build.0 = Debug|x64
195
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Debug|x86.ActiveCfg = Debug|Win32
196
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Debug|x86.Build.0 = Debug|Win32
197
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Release|x64.ActiveCfg = Release|x64
198
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Release|x64.Build.0 = Release|x64
199
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Release|x86.ActiveCfg = Release|Win32
200
+ {29A25655-CCF2-47F8-8BC8-DFE1B5CF993C}.Release|x86.Build.0 = Release|Win32
201
+ {93FEB26B-965E-4157-8BE5-052F5CA112BB}.Debug|x64.ActiveCfg = Debug|x64
202
+ {93FEB26B-965E-4157-8BE5-052F5CA112BB}.Debug|x86.ActiveCfg = Debug|Win32
203
+ {93FEB26B-965E-4157-8BE5-052F5CA112BB}.Release|x64.ActiveCfg = Release|x64
204
+ {93FEB26B-965E-4157-8BE5-052F5CA112BB}.Release|x86.ActiveCfg = Release|Win32
205
+ {8866BF98-AA2E-450F-9F33-083E007CCA74}.Debug|x64.ActiveCfg = Debug|x64
206
+ {8866BF98-AA2E-450F-9F33-083E007CCA74}.Debug|x86.ActiveCfg = Debug|Win32
207
+ {8866BF98-AA2E-450F-9F33-083E007CCA74}.Release|x64.ActiveCfg = Release|x64
208
+ {8866BF98-AA2E-450F-9F33-083E007CCA74}.Release|x86.ActiveCfg = Release|Win32
209
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Debug|x64.ActiveCfg = Debug|x64
210
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Debug|x64.Build.0 = Debug|x64
211
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Debug|x86.ActiveCfg = Debug|Win32
212
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Debug|x86.Build.0 = Debug|Win32
213
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Release|x64.ActiveCfg = Release|x64
214
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Release|x64.Build.0 = Release|x64
215
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Release|x86.ActiveCfg = Release|Win32
216
+ {1896C009-AD46-4A70-B83C-4652A7F37503}.Release|x86.Build.0 = Release|Win32
217
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Debug|x64.ActiveCfg = Debug|x64
218
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Debug|x64.Build.0 = Debug|x64
219
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Debug|x86.ActiveCfg = Debug|Win32
220
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Debug|x86.Build.0 = Debug|Win32
221
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Release|x64.ActiveCfg = Release|x64
222
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Release|x64.Build.0 = Release|x64
223
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Release|x86.ActiveCfg = Release|Win32
224
+ {363BA3BB-75C4-4CC7-AECB-28C7534B3710}.Release|x86.Build.0 = Release|Win32
225
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Debug|x64.ActiveCfg = Debug|x64
226
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Debug|x64.Build.0 = Debug|x64
227
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Debug|x86.ActiveCfg = Debug|Win32
228
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Debug|x86.Build.0 = Debug|Win32
229
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Release|x64.ActiveCfg = Release|x64
230
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Release|x64.Build.0 = Release|x64
231
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Release|x86.ActiveCfg = Release|Win32
232
+ {38ACBA6C-2E50-44D4-9A6D-DC735B56E38F}.Release|x86.Build.0 = Release|Win32
233
+ {84A84DBE-D46B-4EC9-8948-FF150DE5D386}.Debug|x64.ActiveCfg = Debug|x64
234
+ {84A84DBE-D46B-4EC9-8948-FF150DE5D386}.Debug|x86.ActiveCfg = Debug|x64
235
+ {84A84DBE-D46B-4EC9-8948-FF150DE5D386}.Release|x64.ActiveCfg = Release|x64
236
+ {84A84DBE-D46B-4EC9-8948-FF150DE5D386}.Release|x86.ActiveCfg = Release|x64
237
+ {85106062-3D9F-4B52-AFF3-97D0F9575888}.Debug|x64.ActiveCfg = Debug|x64
238
+ {85106062-3D9F-4B52-AFF3-97D0F9575888}.Debug|x86.ActiveCfg = Debug|x64
239
+ {85106062-3D9F-4B52-AFF3-97D0F9575888}.Release|x64.ActiveCfg = Release|x64
240
+ {85106062-3D9F-4B52-AFF3-97D0F9575888}.Release|x86.ActiveCfg = Release|x64
241
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Debug|x64.ActiveCfg = Debug|x64
242
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Debug|x64.Build.0 = Debug|x64
243
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Debug|x86.ActiveCfg = Debug|Win32
244
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Debug|x86.Build.0 = Debug|Win32
245
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Release|x64.ActiveCfg = Release|x64
246
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Release|x64.Build.0 = Release|x64
247
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Release|x86.ActiveCfg = Release|Win32
248
+ {217B42B7-8F2B-4323-804C-08992CA2F65E}.Release|x86.Build.0 = Release|Win32
249
+ {EB9D699A-16CB-4D51-AB39-0B170BE72FC8}.Debug|x64.ActiveCfg = Debug|x64
250
+ {EB9D699A-16CB-4D51-AB39-0B170BE72FC8}.Debug|x86.ActiveCfg = Debug|Win32
251
+ {EB9D699A-16CB-4D51-AB39-0B170BE72FC8}.Debug|x86.Build.0 = Debug|Win32
252
+ {EB9D699A-16CB-4D51-AB39-0B170BE72FC8}.Release|x64.ActiveCfg = Release|x64
253
+ {EB9D699A-16CB-4D51-AB39-0B170BE72FC8}.Release|x86.ActiveCfg = Release|Win32
254
+ {EB9D699A-16CB-4D51-AB39-0B170BE72FC8}.Release|x86.Build.0 = Release|Win32
255
+ {0CA39557-067E-4EBD-8264-9D09B00275A2}.Debug|x64.ActiveCfg = Debug|x64
256
+ {0CA39557-067E-4EBD-8264-9D09B00275A2}.Debug|x86.ActiveCfg = Debug|x64
257
+ {0CA39557-067E-4EBD-8264-9D09B00275A2}.Release|x64.ActiveCfg = Release|x64
258
+ {0CA39557-067E-4EBD-8264-9D09B00275A2}.Release|x86.ActiveCfg = Release|x64
259
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Debug|x64.ActiveCfg = Debug|x64
260
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Debug|x64.Build.0 = Debug|x64
261
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Debug|x86.ActiveCfg = Debug|Win32
262
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Debug|x86.Build.0 = Debug|Win32
263
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Release|x64.ActiveCfg = Release|x64
264
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Release|x64.Build.0 = Release|x64
265
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Release|x86.ActiveCfg = Release|Win32
266
+ {94D8008A-3AD8-4CA6-BA02-FE1458804E1D}.Release|x86.Build.0 = Release|Win32
267
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Debug|x64.ActiveCfg = Debug|x64
268
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Debug|x64.Build.0 = Debug|x64
269
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Debug|x86.ActiveCfg = Debug|Win32
270
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Debug|x86.Build.0 = Debug|Win32
271
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Release|x64.ActiveCfg = Release|x64
272
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Release|x64.Build.0 = Release|x64
273
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Release|x86.ActiveCfg = Release|Win32
274
+ {8DC74C33-6E15-43ED-9300-2A140589E3DA}.Release|x86.Build.0 = Release|Win32
275
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Debug|x64.ActiveCfg = Debug|x64
276
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Debug|x64.Build.0 = Debug|x64
277
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Debug|x86.ActiveCfg = Debug|Win32
278
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Debug|x86.Build.0 = Debug|Win32
279
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Release|x64.ActiveCfg = Release|x64
280
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Release|x64.Build.0 = Release|x64
281
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Release|x86.ActiveCfg = Release|Win32
282
+ {C9DF3099-A142-4AA7-B936-1541816A1F21}.Release|x86.Build.0 = Release|Win32
283
+ EndGlobalSection
284
+ GlobalSection(SolutionProperties) = preSolution
285
+ HideSolutionNode = FALSE
286
+ EndGlobalSection
287
+ GlobalSection(ExtensibilityGlobals) = postSolution
288
+ SolutionGuid = {38BDFF12-6FEC-4B67-A7BD-436D9E2544FD}
289
+ EndGlobalSection
290
+ EndGlobal
SPANN/setup.py ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # Licensed under the MIT license.
3
+
4
+ """
5
+ Script for installation and distribution.
6
+ You can use environment variable `SPTAG_RELEASE` to set release version.
7
+ If release version is not set, default to a development build whose version string will be `0.0.0.dev`.
8
+ ## Prepare Environment ##
9
+ Install dependencies:
10
+ $ pip install -U -r setup.txt
11
+ ## Development ##
12
+ Build and install for development:
13
+ $ python setup.py develop
14
+ Uninstall:
15
+ $ pip uninstall sptag
16
+ Remove generated files: (use "--all" to remove toolchain and built wheel)
17
+ $ python setup.py clean [--all]
18
+ ## Release ##
19
+ Build wheel package:
20
+ $ SPTAG_RELEASE=1.0 python setup.py bdist_wheel -p win_amd64
21
+ Where "1.0" is version string and "win_amd64" is platform.
22
+ The platform may also be "manylinux1_x86_64".
23
+ """
24
+
25
+ from distutils.cmd import Command
26
+ from distutils.command.build import build
27
+ from distutils.command.clean import clean
28
+ import glob
29
+ import os
30
+ import shutil
31
+ import sys
32
+
33
+ import setuptools
34
+ from setuptools.command.develop import develop
35
+
36
+ release = os.environ.get('SPTAG_RELEASE')
37
+ nuget_release = os.environ.get('NUGET_RELEASE')
38
+ python_version = "%d.%d" % (sys.version_info.major, sys.version_info.minor)
39
+ print ("Python version:%s" % python_version)
40
+
41
+ if 'bdist_wheel' in sys.argv:
42
+ if not any(arg.startswith('--python-tag') for arg in sys.argv):
43
+ sys.argv.extend(['--python-tag', 'py%d%d'%(sys.version_info.major, sys.version_info.minor)])
44
+ print (sys.argv)
45
+
46
+ def _setup():
47
+ setuptools.setup(
48
+ name = 'sptag',
49
+ version = release or '0.0.0.dev',
50
+ description = 'SPTAG: A library for fast approximate nearest neighbor search',
51
+ long_description = open('README.md', encoding='utf-8').read(),
52
+ long_description_content_type = 'text/markdown',
53
+ url = 'https://github.com/Microsoft/SPTAG',
54
+ author = 'Microsoft SPTAG Team',
55
+ author_email = '[email protected]',
56
+ license = 'MIT',
57
+ include_package_data=True,
58
+ classifiers = [
59
+ 'License :: OSI Approved :: MIT License',
60
+ 'Operating System :: Microsoft :: Windows :: Windows 10',
61
+ 'Operating System :: POSIX :: Linux',
62
+ 'Programming Language :: Python :: 3',
63
+ 'Intended Audience :: Science/Research',
64
+ ],
65
+
66
+ packages = _find_python_packages(),
67
+ python_requires = '>=3.6',
68
+ install_requires = ['numpy'],
69
+
70
+ cmdclass = {
71
+ 'build': Build,
72
+ 'clean': Clean,
73
+ 'develop': Develop,
74
+ }
75
+ )
76
+
77
+ def _find_python_packages():
78
+ if os.path.exists('sptag'): shutil.rmtree('sptag')
79
+
80
+ if os.path.exists('Release'):
81
+ shutil.copytree('Release', 'sptag')
82
+ elif os.path.exists(os.path.join('x64', 'Release')):
83
+ shutil.copytree(os.path.join('x64', 'Release'), 'sptag')
84
+
85
+ if not os.path.exists('lib'): os.mkdir('lib')
86
+ if not os.path.exists('lib\\net472'): os.mkdir('lib\\net472')
87
+ for file in glob.glob(r'x64\\Release\\Microsoft.ANN.SPTAGManaged.*'):
88
+ print (file)
89
+ shutil.copy(file, "lib\\net472\\")
90
+ sfiles = ''
91
+ for framework in ['net5.0', 'net472']:
92
+ if os.path.exists("lib\\%s\\Microsoft.ANN.SPTAGManaged.dll" % framework):
93
+ sfiles += '<file src="lib\\%s\\Microsoft.ANN.SPTAGManaged.dll" target="lib\\%s\\Microsoft.ANN.SPTAGManaged.dll" />' % (framework, framework)
94
+ sfiles += '<file src="lib\\%s\\Microsoft.ANN.SPTAGManaged.pdb" target="lib\\%s\\Microsoft.ANN.SPTAGManaged.pdb" />' % (framework, framework)
95
+ if os.path.exists('x64\\Release\\libzstd.dll'):
96
+ sfiles += '<file src="x64\\Release\\libzstd.dll" target="runtimes\\win-x64\\native\\libzstd.dll" />'
97
+ if os.path.exists('x64\\Release\\Ijwhost.dll'):
98
+ sfiles += '<file src="x64\\Release\\Ijwhost.dll" target="runtimes\\win-x64\\native\\Ijwhost.dll" />'
99
+ sfiles += '<file src="SPTAG.targets" target="build\\MSSPTAG.Managed.Library.targets" />'
100
+ f = open('sptag.nuspec', 'w')
101
+ spec = '''<?xml version="1.0" encoding="utf-8"?>
102
+ <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
103
+ <metadata>
104
+ <id>MSSPTAG.Managed.Library</id>
105
+ <version>%s</version>
106
+ <title>MSSPTAG.Managed.Library</title>
107
+ <authors>cheqi,haidwa,mingqli</authors>
108
+ <owners>cheqi,haidwa,mingqli</owners>
109
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
110
+ <licenseUrl>https://github.com/microsoft/SPTAG</licenseUrl>
111
+ <projectUrl>https://github.com/microsoft/SPTAG</projectUrl>
112
+ <description>SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by Microsoft Research (MSR) and Microsoft Bing.</description>
113
+ <copyright>Copyright @ Microsoft</copyright>
114
+ </metadata>
115
+ <files>
116
+ %s
117
+ </files>
118
+ </package>
119
+ ''' % (nuget_release, sfiles)
120
+ f.write(spec)
121
+ f.close()
122
+
123
+ fwinrt = open('sptag.winrt.nuspec', 'w')
124
+ spec = '''<?xml version="1.0" encoding="utf-8"?>
125
+ <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
126
+ <metadata>
127
+ <id>MSSPTAG.WinRT</id>
128
+ <version>%s</version>
129
+ <title>MSSPTAG.WinRT</title>
130
+ <authors>cheqi,haidwa,mingqli</authors>
131
+ <owners>cheqi,haidwa,mingqli</owners>
132
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
133
+ <licenseUrl>https://github.com/microsoft/SPTAG</licenseUrl>
134
+ <projectUrl>https://github.com/microsoft/SPTAG</projectUrl>
135
+ <description>SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by Microsoft Research (MSR) and Microsoft Bing.</description>
136
+ <copyright>Copyright @ Microsoft</copyright>
137
+ <dependencies>
138
+ <group targetFramework="uap10.0">
139
+ <dependency id="Zstandard.dyn.x64" version="1.4.0" />
140
+ </group>
141
+ <group targetFramework="native">
142
+ <dependency id="Zstandard.dyn.x64" version="1.4.0" />
143
+ </group>
144
+ </dependencies>
145
+ </metadata>
146
+ <files>
147
+ <file src="Wrappers\\WinRT\\SPTAG.WinRT.targets" target="build\\native" />
148
+ <file src="x64\Release\\SPTAG.WinRT\\SPTAG.winmd" target="lib\\uap10.0" />
149
+ <file src="x64\Release\\SPTAG.WinRT\\SPTAG.dll" target="runtimes\\win10-x64\\native" />
150
+ <file src="readme.md" />
151
+ <file src="LICENSE" />
152
+ </files>
153
+ </package>
154
+ ''' % (nuget_release)
155
+ fwinrt.write(spec)
156
+ fwinrt.close()
157
+
158
+ f = open(os.path.join('sptag', '__init__.py'), 'w')
159
+ f.close()
160
+ return ['sptag']
161
+
162
+ class Build(build):
163
+ def run(self):
164
+ if not release:
165
+ sys.exit('Please set environment variable "SPTAG_RELEASE=<release_version>"')
166
+
167
+ open('sptag/version.py', 'w').write(f"__version__ = '{release}'")
168
+ super().run()
169
+
170
+ class Develop(develop):
171
+ def run(self):
172
+ open('sptag/version.py', 'w').write("__version__ = '0.0.0.dev'")
173
+ super().run()
174
+
175
+ class Clean(clean):
176
+ def finalize_options(self):
177
+ self._all = self.all
178
+ self.all = True # always use `clean --all`
179
+ super().finalize_options()
180
+
181
+ def run(self):
182
+ super().run()
183
+ shutil.rmtree('sptag.egg-info', ignore_errors=True)
184
+ if self._all:
185
+ shutil.rmtree('dist', ignore_errors=True)
186
+
187
+ if __name__ == '__main__':
188
+ _setup()
rag-evaluation-harness/tests/testdata/blimp_determiner_noun_agreement_with_adjective_1-v0-loglikelihood ADDED
@@ -0,0 +1 @@
 
 
1
+ 007c47e5fbf88119c5180feef75e1345d448e56adcd4c7ab2d52fb8d67350d34
rag-evaluation-harness/tests/testdata/blimp_matrix_question_npi_licensor_present-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"blimp_matrix_question_npi_licensor_present": {"acc": 0.485, "acc_stderr": 0.0158121796418149}}, "versions": {"blimp_matrix_question_npi_licensor_present": 0}}
rag-evaluation-harness/tests/testdata/blimp_transitive-v0-loglikelihood ADDED
@@ -0,0 +1 @@
 
 
1
+ d0d47fe40a7ee558ba782edbc4f49f7d9123c8472a36decc97f8ab142b45b9d8
rag-evaluation-harness/tests/testdata/crows_pairs_french_race_color-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"crows_pairs_french_race_color": {"likelihood_difference": 0.33233909422443764, "likelihood_difference_stderr": 0.010623405969915857, "pct_stereotype": 0.4782608695652174, "pct_stereotype_stderr": 0.023315932363473738}}, "versions": {"crows_pairs_french_race_color": 0}}
rag-evaluation-harness/tests/testdata/crows_pairs_french_socioeconomic-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"crows_pairs_french_socioeconomic": {"likelihood_difference": 0.3394681494647815, "likelihood_difference_stderr": 0.01702488895584347, "pct_stereotype": 0.4642857142857143, "pct_stereotype_stderr": 0.035714285714285705}}, "versions": {"crows_pairs_french_socioeconomic": 0}}
rag-evaluation-harness/tests/testdata/cycle_letters-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"cycle_letters": {"acc": 0.0, "acc_stderr": 0.0}}, "versions": {"cycle_letters": 0}}
rag-evaluation-harness/tests/testdata/ethics_virtue-v0-loglikelihood ADDED
@@ -0,0 +1 @@
 
 
1
+ 8021db8de46850090ddae6e6ec2d382029c3027b7c69884607503f916d09b709
rag-evaluation-harness/tests/testdata/hendrycksTest-college_biology-v0-loglikelihood ADDED
@@ -0,0 +1 @@
 
 
1
+ c29e4e67ff91af29b9434884874414d1b1b32ccc32903c6b1639469b19907419
rag-evaluation-harness/tests/testdata/hendrycksTest-professional_law-v0-loglikelihood ADDED
@@ -0,0 +1 @@
 
 
1
+ c38c9d5d84eeb7a5f3c4a34d6e70d7e15847b3c38f26e4b119c982bb935e118f
rag-evaluation-harness/tests/testdata/lambada_mt_it-v0-loglikelihood ADDED
@@ -0,0 +1 @@
 
 
1
+ fd87c6c5cf4e0499c5f9f80e5bd7ee6a4f3d2991902a0cc3ec9e6eaf22d6760a
rag-evaluation-harness/tests/testdata/lambada_openai_mt_it-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"lambada_openai_mt_it": {"acc": 0.0, "acc_stderr": 0.0, "ppl": 1.6479047769869253, "ppl_stderr": 0.006497321146240192}}, "versions": {"lambada_openai_mt_it": 0}}
rag-evaluation-harness/tests/testdata/multirc-v1-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"multirc": {"acc": 0.046169989506820566, "acc_stderr": 0.006801377886208738}}, "versions": {"multirc": 1}}
rag-evaluation-harness/tests/testdata/mutual_plus-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"mutual_plus": {"mrr": 0.5275583145221953, "mrr_stderr": 0.009940894824430708, "r@1": 0.2595936794582393, "r@1_stderr": 0.014737047402750955, "r@2": 0.45372460496614, "r@2_stderr": 0.01673517854461967}}, "versions": {"mutual_plus": 0}}
rag-evaluation-harness/tests/testdata/mutual_plus-v1-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"mutual_plus": {"mrr": 0.5275583145221953, "mrr_stderr": 0.009940894824430708, "r@1": 0.26297968397291194, "r@1_stderr": 0.01479889176605113, "r@2": 0.5, "r@2_stderr": 0.01680731613632036}}, "versions": {"mutual_plus": 1}}
rag-evaluation-harness/tests/testdata/pile_books3-v0-loglikelihood_rolling ADDED
@@ -0,0 +1 @@
 
 
1
+ 0f8f36f705b999b6d55fa72ff89a82793dd1cb568ab1f8727a6a2086a12b9410
rag-evaluation-harness/tests/testdata/pile_books3-v1-loglikelihood_rolling ADDED
@@ -0,0 +1 @@
 
 
1
+ 0f8f36f705b999b6d55fa72ff89a82793dd1cb568ab1f8727a6a2086a12b9410
rag-evaluation-harness/tests/testdata/pile_freelaw-v1-loglikelihood_rolling ADDED
@@ -0,0 +1 @@
 
 
1
+ d77f3f68aadd6cbf1290c2f6737b2ed5d5c2a60e4c81a65c280f207783caabe1
rag-evaluation-harness/tests/testdata/pile_hackernews-v0-loglikelihood_rolling ADDED
@@ -0,0 +1 @@
 
 
1
+ ec1082ee5a5326e0d57aa4e73b634937140c1de9af95f154e8ab57b05d9b422b
rag-evaluation-harness/tests/testdata/pile_nih-exporter-v1-loglikelihood_rolling ADDED
@@ -0,0 +1 @@
 
 
1
+ 520ea6e04e8a39dc0b5f63a837429a78a40e63d39d109096101feb8c5b2cf8d8
rag-evaluation-harness/tests/testdata/pile_philpapers-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"pile_philpapers": {"bits_per_byte": 6.241575895982095e-06, "byte_perplexity": 1.0000062415953748, "word_perplexity": 1.0000409888564146}}, "versions": {"pile_philpapers": 0}}
rag-evaluation-harness/tests/testdata/pile_pile-cc-v1-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"pile_pile-cc": {"bits_per_byte": 0.0001620742639125056, "byte_perplexity": 1.0001123476295946, "word_perplexity": 1.0006738958554477}}, "versions": {"pile_pile-cc": 1}}
rag-evaluation-harness/tests/testdata/pile_ubuntu-irc-v1-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"pile_ubuntu-irc": {"bits_per_byte": 2.3513498942121155e-06, "byte_perplexity": 1.0000016298328778, "word_perplexity": 1.0000108866656874}}, "versions": {"pile_ubuntu-irc": 1}}
rag-evaluation-harness/tests/testdata/random_insertion-v0-greedy_until ADDED
@@ -0,0 +1 @@
 
 
1
+ 6c48baa6924f3635120f33062251c4b571b3d4e9fe46b14d91f54ddd1c857997
rag-evaluation-harness/tests/testdata/truthfulqa_mc-v0-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"truthfulqa_mc": {"mc1": 0.2141982864137087, "mc1_stderr": 0.01436214815569045, "mc2": 0.465436996173817, "mc2_stderr": 0.0048422530880316405}}, "versions": {"truthfulqa_mc": 0}}
rag-evaluation-harness/tests/testdata/wmt20-en-ja-v1-res.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"results": {"wmt20-en-ja": {"bleu": 0.0, "bleu_stderr": 0.0, "chrf": 4.1305928226819116e-05, "chrf_stderr": 2.0455354158878388e-05, "ter": 1.0, "ter_stderr": 0.0}}, "versions": {"wmt20-en-ja": 1}}
rag-evaluation-harness/tests/testdata/wmt20-iu-en-v0-greedy_until ADDED
@@ -0,0 +1 @@
 
 
1
+ 97bf664a8efa54b5366b8341f77b418106dd0cb26169d5b2d0144e4d3d2bc5c9
rag-evaluation-harness/tests/testdata/wmt20-ja-en-v0-greedy_until ADDED
@@ -0,0 +1 @@
 
 
1
+ 1fd846f3c0104e794eb380dae7f648592092ab8bf59234c26d0a671bbbc28df1
rag-evaluation-harness/tests/testdata/wmt20-pl-en-v0-greedy_until ADDED
@@ -0,0 +1 @@
 
 
1
+ 89274499d84176b1ffe4eaec06f2c89ca807342384dc946c2e348d00116aaade