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

Add vector search #36

Closed
OriPekelman opened this issue Mar 17, 2025 · 4 comments
Closed

Add vector search #36

OriPekelman opened this issue Mar 17, 2025 · 4 comments

Comments

@OriPekelman
Copy link

OriPekelman commented Mar 17, 2025

It would be nice to find a cool API that would allow to use some vector search capabilities with shocking simplicity.

There clearly is going to be here a system boundaries/responsibilities issue as to the relationship with grabbing embeddings...

But from an API perspective something like:

relevant_senior_jobs=Job.similar_to(user).where(level: 'senior')

relevant_senior_jobs=Job.similar_to_description(user.bio).where(level: 'senior')

relevant_jobs=Job.similar_to_description(embeddings: [1,2,3], distance: :cosine)

I'd suggest pg_vector as baseline with an alternate implementation with meilisearch (to keep us honest on generality - they have very different APIs).

@adenta
Copy link

adenta commented Mar 17, 2025

I think this is a duplicate of #26

@OriPekelman
Copy link
Author

I am not sure it is.. a full RAG would be something opinionated with a bunch of ideas on how you ingest etc. This would possibly be a simple primitive a RAG could use. But .. separation of responsibilities here is actually murky and very much depends on where the maintainer would like to take this.

But do close the issue if I am noisy :)

@vicentereig
Copy link

@OriPekelman Have you seen https://github.com/ankane/neighbor? It integrates pgvector nicely with Active Record. You can use it with your preferred LLM to index your documents and queries. Even pair it with an in-memory ONNX model: https://github.com/ankane/informers.

@crmne
Copy link
Owner

crmne commented Mar 17, 2025

I'm afraid we're not going to support vector search #26 (comment)

@crmne crmne closed this as completed Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants