Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save rpappalax/b100eadb68e42ccf85df27b82ddc2966 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