Skip to content

Instantly share code, notes, and snippets.

@rpappalax
Created January 30, 2026 15:31
Show Gist options
  • Select an option

  • Save rpappalax/866c524e305c70e096b0d6f8a9c1e38c to your computer and use it in GitHub Desktop.

Select an option

Save rpappalax/866c524e305c70e096b0d6f8a9c1e38c to your computer and use it in GitHub Desktop.
app/retrieval/retriever.py (interface)
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