Skip to content

Add vector search #36

Closed as duplicate of#26
Closed as duplicate of#26
@OriPekelman

Description

@OriPekelman

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions