[{"data":1,"prerenderedAt":112},["ShallowReactive",2],{"project-42625126":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":15,"aspects":31,"strip":32,"post_text":33,"what":34,"said":64,"maker_in_thread":70,"shape":72,"grid":73,"attempts":74,"same_week":75,"maker_shows":104,"maker_hidden":105,"reader_version":106,"card":107},"42625126","Tinyhnsw","The Littlest Vector Database","title","Show HN: Tinyhnsw – The Littlest Vector Database","https:\u002F\u002Fgithub.com\u002Fjbarrow\u002Ftinyhnsw","github.com","jbarrow",1736271894,2025,17,0,2171,3837,57,"shown","languages","vector search library","library",[24,25,26,27],"hnsw","approximate nearest neighbor","vector search","python","quiet",null,{"positive":15,"neutral":15,"mixed":15,"critical":15},{},[],"In an effort to understand it, I put together a simple, pure python implementation of HNSW, an approximate nearest neighbor library. Learned a lot, and I think for anyone interested in vector search it's an exercise that's absolutely worth doing.\n\nThe code is optimized (imo) for readability, and working (albeit, quite slowly) on putting together a tutorial that walks through the motivation and implementation of HNSW.\n\nThere's also working code examples for using the library for text and image search with sentence transformers and CLIP!",{"problem":35,"audience":41,"pricing":29,"motivation":45,"time_to_build":29,"stack":49,"openness":62,"stage":63,"team_size":63},{"value":36,"source":37,"evidence":38},"Understanding and implementing approximate nearest neighbor search with HNSW","maker",[39],{"id":40},"post",{"value":42,"source":37,"evidence":43},"people interested in vector search",[44],{"id":40},{"value":46,"source":37,"evidence":47},"To understand how HNSW works by implementing it",[48],{"id":40},[50,54,58],{"value":51,"source":37,"evidence":52},"Python",[53],{"id":40},{"value":55,"source":37,"evidence":56},"sentence transformers",[57],{"id":40},{"value":59,"source":37,"evidence":60},"CLIP",[61],{"id":40},"open_source","unknown",{"praise":65,"objections":66,"requests":67,"questions":68,"alternatives":69},[],[],[],[],[],{"comments":15,"answered":15,"key":71},[],{"commenters":15,"max_depth":15,"maker_replies":15,"first_comment_mins":29,"lifespan_hours":29},[],[],[76,81,86,91,96,100],{"id":77,"name":78,"points":79,"category":80},"42634787","Atlas of Space",770,"learning_science",{"id":82,"name":83,"points":84,"category":85},"42624116","Tramway SDK",660,"games",{"id":87,"name":88,"points":89,"category":90},"42585009","Pimosa",526,"creative",{"id":92,"name":93,"points":94,"category":95},"42635942","Stagehand",326,"dev_tools",{"id":97,"name":98,"points":99,"category":95},"42600586","CSS Flexbox Playground",315,{"id":101,"name":102,"points":103,"category":95},"42623593","HipScript",309,2,false,"v2",{"id":108,"name":5,"line":6,"ai":105,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":109,"maker":11,"domain":10,"tier":19,"attempts":15,"strip":110,"url":9,"mix":111,"praise":-1,"objection":-1,"sub":21},42625126,[24,25,26,27],"",[15,15,15,15],1794036667587]