unum-cloud / usearch

Fast Open-Source Search & Clustering engine Ɨ for Vectors & šŸ”œ Strings Ɨ in C++, C, Python, JavaScript, Rust, Java, Objective-C, Swift, C#, GoLang, and Wolfram šŸ”
https://unum-cloud.github.io/usearch/
Apache License 2.0
2.15k stars 130 forks source link

Feature: Add TSV #344

Closed sdan closed 4 months ago

sdan commented 8 months ago

Describe what you are looking for

add tsv export to visualize embeddings

Can you contribute to the implementation?

Is your feature request specific to a certain interface?

It applies to everything

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

ashvardanian commented 4 months ago

Hi @sdan! Somehow missed this šŸ¤¦ā€ā™‚ļø You should be able to achieve this quite easily by obtaining the index.vectors computed property, which returns a NumPy array. For visualizations Iā€™d like to add a WebGL renderer later. TSV aside, Iā€™d recommend using simple binary files for dropping/loading embeddings - that would be a lot faster šŸ¤—