11 lines
243 B
Python
11 lines
243 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from typing import List, Dict
|
|
|
|
|
|
class IKnowledgeBase(ABC):
|
|
|
|
@abstractmethod
|
|
def query_knowledge_base(self, query: str, category: str, top_k: int = 5) -> List[Dict[str, str]]:
|
|
pass
|