zilliztech / feder Goto Github PK
View Code? Open in Web Editor NEWVisualize hnsw, faiss and other anns index
Visualize hnsw, faiss and other anns index
When I run faiss_feder.searchByVec(vectors, images)
after set faiss_feder.setSearchParams({"k": 5, "nprobe": 6})
, it shows 8 results.
Is there a way to visualize a pinecone vector database with feder
I'm curious about whether it's possible to display images using a JavaScript-based URL approach in federpy when an access token is available (like GithubAPI). Does it require solely utilizing a self-hosted web server without utilizing a token?
Hi feder team,
This is a fantastic project! Do you consider adding a license to the feder repo? We want to further contribute to this project.
Is there any updates on new version for feder? You have mentioned about that on my last issue which was about supporting text documents.
Hello Feder team!
I'm trying to run your test example, but without using a remote index source location like `https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index%60. I downloaded the index and put it in my directory.
With the remote index, all the visualizations were loaded, but with the local index, the visualizations didn't load and became stuck in an infinite loop.
Can you explain why this is happening, please?
Here is the code with both sources:
from federpy.federpy import FederPy
if __name__ == '__main__':
hnswSource = 'hnswlib'
hnswIndexFile = 'https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
# hnswIndexFile = 'hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
# Lite version, only input indexFile, no viewParams, no images.
federPy_hnsw_lite = FederPy(hnswIndexFile, hnswSource)
# federPy_hnsw_lite.overview()
federPy_hnsw_lite.searchRandTestVec()
Hello feder team !
I'm trying to use the project, but I don't know how to generate the .index file, can you help me on this, please ?
When I define FederPy with the same index file and search different data, it shows different base cluster boards.
I want to display the same cluster board with an index file so that I can search faiss_feder.searchById(40)
and faiss_feder.searchById(50)
on the same board.
In colab, visualizing both hnsw and faiss using my own index with overview or searchRandTestVec shows the cell has finished running but the blue spinning circle goes on forever on a white output.
The same notebook can show the examples from https://colab.research.google.com/drive/12L_oJPR-yFDlORpPondsqGNTPVsSsUwi#scrollTo=N3qqBAYxYcbt though.
Is the problem with the index used?
I tried reducing the dimensionality to 5, even lower than the 10 in the example but it still loads forever.
How to investigate how the indexes at
hnswSource = 'hnswlib'
hnswIndexFile = 'https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
ivfflatSource = 'faiss'
ivfflatIndexFile = 'https://assets.zilliz.com/faiss_ivf_flat_voc_17k_ab112eec72.index'
were built?
I tried to find the data using
import requests
hnswIndexFile = 'https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
localFilename = 'hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
response = requests.get(hnswIndexFile)
with open(localFilename, 'wb') as f:
f.write(response.content)
p = hnswlib.Index(space='l2',dim=10)
p.load_index(localFilename)
p.get_items()
but got empty list.
I was expecting get_items() to show the data added to the index
Hi @shanghaikid
Thank your project
I have an IVFPQ index. Don't know if you have support visualization for this index?
I installed this package using npm but when I try to use it like this:
const { Feder } = require( '@zilliz/feder');
I get:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /node_modules/@zilliz/feder/package.json
at new NodeError (node:internal/errors:405:5)
at exportsNotFound (node:internal/modules/esm/resolve:259:10)
at packageExportsResolve (node:internal/modules/esm/resolve:533:13)
at resolveExports (node:internal/modules/cjs/loader:571:36)
at Module._findPath (node:internal/modules/cjs/loader:645:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1058:27)
at Module._load (node:internal/modules/cjs/loader:925:27)
at Module.require (node:internal/modules/cjs/loader:1139:19)
at require (node:internal/modules/helpers:121:18)
at Object.<anonymous> (/index.js:1:19) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
I want to visualize my text documents and so i did. However i didn't find any way to get docids in a specific cluster. For example, when I search over a random vector with feder, library gives me a bunch of clusters. Is it possible to obtain which vectors are stored in a specified cluster?
Actually what i exactly wanted and asked is that, in your example you are able to see images with fine search (distance) (first attached file). I want to show small texts instead of images (second attached file).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.