-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample Code returns empty #46
Comments
I also challenge with the same problem, the following example is better |
It is required at least |
No activity, closing. Please reopen if the issue persists. |
The issue persists. The logs say, there is an uninitialized JS-object:
|
Please reopen. |
@NikolaiPohodenko could you please provide more details to reproduce the issue?
|
If you change the config, when the container is running, you need to restart the container. |
In another script I make KNN requests:
|
@NikolaiPohodenko I was able to run your script successfully with successful kNN search returns. But in your case from the logs I can see that the
So, it is required to identify the specific reason why it's crashing. What we know about your test environment which is different from AquilaDB automated test environment (Ubuntu AMD64):
could you please follow some steps share more info?
|
I confirm that in my case the problem was with the container access to the mounted host directory and, therefore, is of different nature than the issue description. If I keep the data within the container, the example works ok. |
@NikolaiPohodenko, thanks for the update. So, write permission prevented the document DB from accessing the mount directory which in turn blocked the change event generated by the document DB event listener and blocked updates to the vector DB as well. That's why you were getting empty results. It will be great if you could figure out and share tips for Windows users who might face the same issue while mounting host directories. And, I'm going to keep this issue open for while.. |
Hello everyone! I'm facing the same issue as described here. I have windows 10 os with docker and the image of AquilaDB installed. If don't mount the directory, the example works great. But if I try to mount it, the example stops working. I've tried differents paths but no one seems to works. I've also checked the options in docker to share my drives and I've tried to start docker with superuser permissions but still nothing. Anyone can help me with this? @NikolaiPohodenko How did you solve it?? Thanks in advance. |
@Mikel-a-esparza , I didn't make Aquila to store vectors on win-10 host file system. I didn't delve into the problem, since I'm planning to migrate away from Aql, my reasons:
|
Hi @NikolaiPohodenko , we're going through whiteboard discussions and code refactoring of ADB including changes to parts of existing architecture. It will take some time until next release. Unfortunately, features https://github.com/a-mma/AquilaDB/issues/25 and https://github.com/a-mma/AquilaDB/issues/61 will only be available with that release. We're sorry for the inconvenience. You can take a look at Elastic search which has implemented vector search within it. https://www.elastic.co/blog/text-similarity-search-with-vectors-in-elasticsearch It's straight forward and with Elastic search, you can implement all the use cases you see in our documentation. We're very thankful for your support in testing out ADB and reporting multiple issues. |
Hi @NikolaiPohodenko. First of all thank you so much for taking your time in answering. I will do my testing keeping the data inside the container an if it's performance is good I will evaluate to migrate the solution into a Ubuntu system. Btw which other DB are you taking into consideration for this type of projects? I'm building an engine for Face similarity search so a fast knn search and a optional pre filtering would be great. Thanks again. |
@Mikel-a-esparza in the end FAISS is the king, but there is also PostgreSQL+Cube. |
Code is rewritten. Bug is irrelevant and covered. closed. |
from aquiladb import AquilaClient as acl
db = acl('localhost', 50051)
sample = db.convertDocument([0.1,0.2,0.3,0.4], {"hello": "world"})
db.addDocuments([sample])
vector = db.convertMatrix([0.1,0.2,0.3,0.4])
k = 10
result = db.getNearest(vector, k)
This is sample data set which is here https://github.com/a-mma/AquilaDB/wiki/Get-started-with-AquilaDB , and in my try, it returns empty list with something like :
status: true
documents: "[]"
Any idea ?
The text was updated successfully, but these errors were encountered: