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

feat: Built-in hybrid search #310

Open
Tracked by #308
gaocegege opened this issue Jan 26, 2024 · 0 comments
Open
Tracked by #308

feat: Built-in hybrid search #310

gaocegege opened this issue Jan 26, 2024 · 0 comments

Comments

@gaocegege
Copy link
Member

gaocegege commented Jan 26, 2024

We need to design how to support hybrid search, including but not limited to:

  • Rerank
  • Full-text support
  • A function to get the ranking score of results
-- create table

CREATE TABLE items (
  id bigserial PRIMARY KEY,
  content TEXT NOT NULL
);

INSERT INTO items (embedding)
VALUES ('pgvecto.rs is a ...');

-- Some logics to configure the hybrid search (a.k.a hs), then:

SELECT * FROM items ORDER BY content hs-op 'what is pgvecto.rs' LIMIT 5;
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

1 participant