Comments (4)
@masasso Thank you for reporting the issue.
I tried the above steps but didn't reproduce. From the runtime error logs, it seems that the compiled binary was not found.
Please try these options
- Create a blank nodejs project, install
faiss-node
, and run the given code see if it works. This is to confirm whether the problem is related to VS Code Extension. - Provide detailed
npm install faiss-node --verbose
logs to troubleshoot whether the installation of prebuild packages failed. - Please provide the smallest reproducible VS Code project for investigation.
- Try to compile the binary locally.
from faiss-node.
@masasso I got similar problems with OSX setup. I tried clean install and tested the example. I got an error indicating there is something "missing".... Library not loaded: '/usr/local/opt/libomp/lib/libomp.dylib'
After "brew install libomp"... example works as expected. Note I've OSX not pure linux,... I hope this helps.
from faiss-node.
@masasso I got similar problems with OSX setup. I tried clean install and tested the example. I got an error indicating there is something "missing".... Library not loaded: '/usr/local/opt/libomp/lib/libomp.dylib'
After "brew install libomp"... example works as expected. Note I've OSX not pure linux,... I hope this helps.
@tro9999 libomp
is a dependency under OSX, I have bundled it in #5 and a new version will be released.
from faiss-node.
I just ran into this issue too because bindings
seemed to be looking for the .node
file starting from the wrong directory as shown in the first comment. After digging through a bunch of other issues on google this one from node-bindings
lead to a working solution TooTallNate/node-bindings#43
Just add faiss-node
as an external in the webpack config.
externals: {
// modules added here also need to be added in the .vscodeignore file
"faiss-node": "commonjs faiss-node",
},
then the sample code above and my own code using Faiss worked fine in a VSCode extension.
from faiss-node.
Related Issues (20)
- dlopen Symbol not found error on macOS 10.15.7 and Netlify HOT 1
- Docker Installation Failed HOT 2
- CI: Add import test for docker
- Support for arm64 HOT 7
- Replace prebuild with github cli for upload assets
- CUDA/GPU Support? HOT 1
- Unavailable non-musl ARM64 build HOT 1
- Using Faiss-node in aws having problem working fine locally HOT 16
- Possible to reduce node package size? HOT 6
- Add the option to get the cosine similarity value (score) for each returned label in the search function
- Install failed HOT 2
- Support remove_ids
- [AWS]Any chance of an arm64 build of the Node.js layer HOT 4
- Ability to encode/decode buffers when FS not available? HOT 4
- Error: faiss-node package.json is not node-pre-gyp ready HOT 1
- No way to get the original vector value from the index
- Docker Build Fails on ARM v7 HOT 3
- Add support for threshold based cosine similarity search
- Does not work without internet connection HOT 1
- Vector store initial
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faiss-node.