Created
January 30, 2026 15:31
-
-
Save rpappalax/866c524e305c70e096b0d6f8a9c1e38c 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