posit-dev / posit-dev/raghilda

Support retrieving with just attributes filter without a query

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
36
Forks
0
Avg merge
17m
Merged PRs (30d)
3

Description

Currently, store.retrieve() requires a query string for semantic search. There are cases where you want to retrieve documents based solely on attribute filters without providing a search query.

For example, retrieving all documents from the last 7 days — without needing to specify a semantic search term.

The retrieve method should support being called with only an attributes_filter and no query (or an empty/None query), returning matching documents without ranking by embedding similarity.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the store.retrieve() entry point and trace how query and attributes_filter are handled. Run the existing retrieval tests, then add coverage for an attributes_filter with no query or an empty/None query. Done means matching documents are returned without embedding-similarity ranking.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.