ranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">from</span> <span class="nn">voyager</span> <span class="kn">import</span> <span class="n">Index</span><span class="p">,</span> <span class="n">Space</span>

<span class="c1"># Create an empty Index object that can store vectors:</span>
<span class="n">index</span> <span class="o">=</span> <span class="n">Index</span><span class