Created
January 30, 2026 15:30
-
-
Save rpappalax/b100eadb68e42ccf85df27b82ddc2966 to your computer and use it in GitHub Desktop.
app/retrieval/retriever.py (interface)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| from abc import ABC, abstractmethod | |
| from typing import List | |
| from app.retrieval.types import Note | |
| class Retriever(ABC): | |
| @abstractmethod | |
| def retrieve(self, snippet: str, *, top_k: int) -> List[Note]: | |
| raise NotImplementedError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment