[{"data":1,"prerenderedAt":154},["ShallowReactive",2],{"project-35803649":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":31,"aspects":33,"strip":35,"post_text":37,"what":38,"said":77,"maker_in_thread":105,"shape":108,"grid":111,"attempts":116,"same_week":117,"maker_shows":146,"maker_hidden":147,"reader_version":148,"card":149},"35803649","USearch","Smaller and Faster Single-File Vector Search Engine","title","Show HN: USearch – Smaller and Faster Single-File Vector Search Engine","https:\u002F\u002Fgithub.com\u002Funum-cloud\u002Fusearch","github.com","ashvardanian",1683128036,2023,21,2,1635,3109,53,"shown","data","vector search engine","library",[24,25,26,27],"vector search","hnsw","approximate nearest neighbor","similarity search","quiet",null,{"positive":31,"neutral":32,"mixed":32,"critical":32},1,0,{"idea":34},{"positive":31,"critical":32},[36,32],5,"Last week was insane for vector search. Weaviate raised $50M, and Pinecone raised $100M... That's a lot and makes you believe that vector search is hard. But it's not.\n\nI have spent the last couple of days implementing a single-file vector search engine from scratch, which is at least the tenth in the twenty years of my career. But this time, it's different. Instead of inventing a brand new algorithm and doing some crazy optimizations on the GPU, I:\n\n1. took the standard HNSW algorithm, \n2. fitted into 1000 lines of C++11 for portability, \n3. added quantization and hardware-accelerated metrics",{"problem":39,"audience":29,"pricing":29,"motivation":45,"time_to_build":49,"stack":53,"openness":74,"stage":75,"team_size":76},{"value":40,"source":41,"evidence":42},"Fast vector similarity search in a small, portable single-file engine.","maker",[43],{"id":44},"post",{"value":46,"source":41,"evidence":47},"Show that vector search is not as hard as funded competitors suggest, and build a fast alternative.",[48],{"id":44},{"value":50,"source":41,"evidence":51},"A couple of days for the initial implementation.",[52],{"id":44},[54,58,62,66,70],{"value":55,"source":41,"evidence":56},"C++11",[57],{"id":44},{"value":59,"source":41,"evidence":60},"Python bindings",[61],{"id":44},{"value":63,"source":41,"evidence":64},"JavaScript bindings",[65],{"id":44},{"value":67,"source":41,"evidence":68},"Rust bindings",[69],{"id":44},{"value":71,"source":41,"evidence":72},"Java bindings",[73],{"id":44},"open_source","launched","team",{"praise":78,"objections":87,"requests":88,"questions":89,"alternatives":94},[79],{"value":80,"source":81,"evidence":82},"Small, readable codebase that is tempting to learn from or hack on.","commenter",[83],{"id":84,"by":85,"text":86},"35805538","avinassh","Wow, this is amazing and 1K lines is very tempting for me to look deeper and hack. If I were to write my own implementation, where should I start?",[],[],[90],{"value":91,"source":81,"evidence":92},"Where to start when implementing a vector search engine from scratch.",[93],{"id":84,"by":85,"text":86},[95,101],{"value":96,"source":41,"evidence":97},"FAISS",[98],{"id":99,"by":11,"text":100},"35809734","I always prefer to start with theory or a paper, but it seems to be an outdated approach. You can try checking out FAISS, which has good performance, but overly complex to…",{"value":102,"source":41,"evidence":103},"HNSWlib",[104],{"id":99,"by":11,"text":100},{"comments":31,"answered":31,"key":106},[107],{"id":99,"text":100},{"commenters":15,"max_depth":15,"maker_replies":31,"first_comment_mins":109,"lifespan_hours":110},144,9,[112,114],[84,32,36,113,85,32],"project\u002Fpositive\u002Fidea",[99,32,32,115,11,31],"maker\u002Fneutral\u002Fdocs",[],[118,123,128,132,137,142],{"id":119,"name":120,"points":121,"category":122},"35781959","webfft",244,"creative",{"id":124,"name":125,"points":126,"category":127},"35762175","Frogmouth",240,"dev_tools",{"id":129,"name":130,"points":131,"category":20},"35764355","EVA",237,{"id":133,"name":134,"points":135,"category":136},"35745719","Polish Pixels",216,"games",{"id":138,"name":139,"points":140,"category":141},"35786242","Currl",123,"consumer_social",{"id":143,"name":144,"points":145,"category":127},"35764635","PySaaS",121,7,false,"v2",{"id":150,"name":5,"line":6,"ai":147,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":151,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":152,"url":9,"mix":153,"praise":80,"objection":-1,"sub":21},35803649,[24,25,26,27],"50",[31,32,32,32],1794036634945]