jiggy-ai / hnsqlite Goto Github PK
View Code? Open in Web Editor NEWhnsqlite integrates hnswlib and sqlite for simple text embedding search
License: Apache License 2.0
hnsqlite integrates hnswlib and sqlite for simple text embedding search
License: Apache License 2.0
hnsqlite/hnsqlite/collection.py
Line 476 in a03f886
depends on nmslib/hnswlib#444
inital tests show that that a random forest regression is effective at predicting near-optimal values of M, ef_construction, ef parameters given sufficient dataset.
I wasn't able to find a way to choose the folder where the index is stored, as it is possible with the sqlite.
Could you expose that parameter? If needed, I can try to do it an open a PR.
Great project.
Running your minimal example, I get this error:
collection.py:305
AttributeError: 'ScalarResult' object has no attribute 'yield_per'
How does this package compare to: https://github.com/asg017/sqlite-vss ?
Sometimes when i try to delete a file using metadata, it gives the error label not found.whats does mean by this error? why it does occur? and how can i resolve it?
RuntimeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 collection_test.delete(filter=filter_dict)
/usr/local/lib/python3.10/dist-packages/hnsqlite/collection.py in delete(self, doc_ids, filter, delete_all)
613 if filter_item(filter, embedding.metadata_as_dict()):
614 count += 1
--> 615 self.hnsw_ix.mark_deleted(embedding.id)
616 session.delete(embedding)
617 session.commit()
RuntimeError: Label not found
Thanks for the repo.
I want to know if you have any plans to support haystack
https://docs.haystack.deepset.ai/docs/document_store#choosing-the-right-document-store
Thanks again!
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.