Skip to main content

HNSW based output embeddings for LLM's

Project description

vector-index-embedding

Faster hnswlib

Our faster implementation can be found here: https://github.com/martinloretzzz/hnswlib

Warning: This implementation might not work on all systems as it was only tested on the one where we'Re running the bnechmarks and the SIMD implementation was only adapted for that architecture.

For benchmarking we use our own fork of hnswlib, that includes 2 improvements for fast inner product distances on high dimensional data:

  • We calculate all the inner products in paralell, that way we reduce memory accesses in half (we load one element of the query and compare it to N other vectors at the same time)
  • We removed a heuristic that restricted multi-threading, as as our data is extremly high dimesional and always benifit from using all cores.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vector_index_embedding-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vector_index_embedding-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file vector_index_embedding-0.1.0.tar.gz.

File metadata

  • Download URL: vector_index_embedding-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for vector_index_embedding-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1792375c27c681da08e2184f27d442579bbb9fcf05666aaab4bb42d1087d4ee6
MD5 92cdc7e096861f7c11f19ebb7c48469a
BLAKE2b-256 3d449b790ab5d874ef2ad4810dd2d702f430002e8ff886c0d8d7eabfc6669027

See more details on using hashes here.

File details

Details for the file vector_index_embedding-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vector_index_embedding-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34fe560d2976af9d757d3414229c8defe99b7a78fdcaa24a3be129b76839faeb
MD5 f4f5f07a8a425c2a7f37df3ee7ba1f38
BLAKE2b-256 cd678bcd547510721b8715dfc43aafeeb8d8a914ed6e8aef694158a2c7f35e2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page