Comments (3)
Hi @dylanrb123
Just as a doubt, does that imply doing a search algorithm on the HNSW algorithm to find the elements that already exist?
from voyager.
Hi @karchx, I updated the description of the issue to make it more clear. I'm not sure I fully understand your question but let me know if anything is still unclear.
from voyager.
@dylanrb123
you mean like checking If we already have this name in it and if use index of that name ?
eg.
public void addItem(String name, float[] vector) {
int updateIndex = names.indexOf(name);
if (updateIndex==-1) {
int nextIndex = names.size();
index.addItem(vector, nextIndex);
names.add(name);
} else {
index.addItem(vector, updateIndex);
}
}
from voyager.
Related Issues (20)
- Add StringIndex to Javadocs HOT 1
- Add StringIndex support in Python HOT 1
- Implement Order Preserving Transformation for InnerProduct Indices
- Incorrect python typehint for `add_items` HOT 4
- Missing ann-benchmarks documentation? HOT 4
- Metadata Filter Capability HOT 1
- Could not find JNI library file
- Computation on GPU? HOT 1
- Fewer than expected results were retrieved during querying the index HOT 3
- Stream-based I/O examples/documentation HOT 2
- Corrupted or unsupported index after saving. HOT 3
- Cosine distance values outside of <-1;1> range. HOT 3
- Issue with index.add_items() when building large indexes? HOT 1
- Addition of license to PyPI Meta section HOT 1
- Expose python type hints to IDEs via .pyi files
- cpp wrappers are using default namespace HOT 2
- Fewer than expected results were retrieved when querying for len(index) items HOT 2
- Index 'ef' is lost in index loading HOT 2
- Flaky test on CI/CD
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 voyager.