Code Monkey home page Code Monkey logo

hnswlib-wasm's Introduction

πŸ‘‹πŸ½ I'm Shravan, these are my side hustles

🦾 AI Agents [2023-current]

  • Working on an AI Agent

πŸ€– Creating AI-Enhanced Libraries [2023-current]

  • πŸ•ΈοΈ WASM Native Libraries: Pioneered a WASM native browser-compatible version of hnswlib that makes it easier for browser-based applications to implement fast and accurate vector indexing.

πŸ‘¨πŸ½β€πŸ’» Contributing to OSS Ethereum Projects [2021-2022]

πŸ“— React-Based Chrome Extensions [2020-2021]

πŸš€ Ongoing & Future Endeavors

  • πŸ€– AI Mania: Building a small AI Assistant aimed at making AI accessible and user-friendly.

πŸ—“οΈ Past Endevors

  • 🌱 Decentralized Patreon: Actively brainstorming and working on creating a decentralized Patreon with Lens.
  • πŸͺ™ Opensource React libraries to interact with ethereum
  • I created Evergreen Notes for Notion.

Interests

  • πŸ’» Focusing on React, typescript, nodejs, serverless, orchestration systems, cloudflare, aws
  • πŸŽ“ Focusing on ai, web3 front ends, encryption
  • πŸŽ™ Currently a staff engineer, was team lead with exprience leading a large software team
  • πŸ•Ί Fun fact: As a hobby, i used to dance and dj around the world for Brazilian Zouk

hnswlib-wasm's People

Contributors

dependabot[bot] avatar shravansunder avatar yoshoku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hnswlib-wasm's Issues

loading multiple indexes

Hi, thanks for compiling hnsw to webassembly! I am using this library for several of my open source packages.

I have found the following issue: When I try to load multiple indexes in parallel and read the saved index from indexeddb or diskemscripten FS using readIndex, Webassembly errors get thrown around. I don't get a specific error message. Just "webassembly.exception"

like this:

image

The error message doesn't have any real information attached to it.

--> my solution right now is to add a pause of 500ms before loading another index. And that seems to mitigate the issue for now.

here is the code if you're interested:

https://github.com/Xyntopia/taskyon/blob/5bf6076ad4b3d456f05185bc5fbeac728c740a99/src/modules/vectorSearch.ts#L49

This works. But I want to throw that in here. Maybe there is an easy solution to this. My workaround is quiet dirty.

import() is disallowed on ServiceWorkerGlobalScope by the HTML specification.

Hello,

I'm trying to use your package to run hnswlib in a Chrome extension's background script. When I call loadHnswlib I get the error:

import() is disallowed on ServiceWorkerGlobalScope by the HTML specification.

Note that I don't get this error when importing transformers.js and it's successfully working in the background script, so it's not generally failing to do imports.

Any idea why your module might be different? I'm stumped why one module would import and work but not another, given this error message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.