Skip to content

Add offline dataset search to local retriever - #108

Open
vaishali824 wants to merge 1 commit into
INCF:mainfrom
vaishali824:feat/local-retriever-fixtures
Open

vaishali824 wants to merge 1 commit into
INCF:mainfrom
vaishali824:feat/local-retriever-fixtures

Conversation

@vaishali824

Copy link
Copy Markdown

Summary

Fixes #72 by making the local retriever return relevant offline results instead of always returning an empty list.

  • Add 15 public Knowledge Space dataset examples covering fMRI, electrophysiology, and calcium imaging.
  • Rank results by query-term overlap and return the existing RetrievedItem shape, including dataset links and metadata.
  • Select the local retriever directly when the required Vertex AI settings are absent. Defer cloud and model imports so local development does not need those dependencies just to use fixture search.
  • Document the offline development fallback and add focused tests.

Validation

  • python -m unittest discover -s tests -v — 6 tests passed.
  • python -m py_compile backend\local_retriever.py backend\retrieval.py tests\test_local_retriever.py — passed.
  • python -m json.tool backend\fixtures\sample_datasets.json — passed.

Bundle public Knowledge Space examples and rank them with local keyword matching when Vertex AI is not configured. Add tests and document the offline development fallback.

Fixes INCF#72

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

feat: Add contributor-facing LocalRetriever with sample INCF dataset fixtures for offline development

1 participant