Skip to content
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

Vector Suppport for locally running Laguage Models embedding support #2580

Open
Agredo opened this issue Jan 11, 2025 · 1 comment
Open

Vector Suppport for locally running Laguage Models embedding support #2580

Agredo opened this issue Jan 11, 2025 · 1 comment

Comments

@Agredo
Copy link

Agredo commented Jan 11, 2025

I wanted to bring this up again because no discussion has developed since 2023 and we are making huge leaps in directions where locally running language models are becoming more common.

#2364

It is currently very hard to find a locally running database that supports vector storage queries.
Actually, storage is not the problem.

For example, storing an n-dimensional vector in SQLite is not the problem.

In my case, I create an embedding with https://github.com/dotnet/smartcomponents. But the problem is the search. There is no native way to use cosine similarity or nearest neighbor for vectors stored in SQLite without using an extension like sqlite-vec (https://github.com/asg017/sqlite-vec). So it is necessary to query all vecotors and doing the similarity search manually

In .Net there are already some implementations for vector storage in memory like https://github.com/Build5Nines/SharpVector but nothing locally persistent and here a native implementation for LiteDB would be great!

Initially it would be enough for me to just add a ByteArray or a FloatArray and have similarity and NN search function on it.

@JKamsker
Copy link
Collaborator

Features are currently mostly submitted by the community. If you want to open a pr for that, i would be happy to accept it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants