group-wbl/.venv/lib/python3.13/site-packages/chromadb/execution/executor/abstract.py

20 lines
470 B
Python
Raw Permalink Normal View History

2026-01-09 09:48:03 +08:00
from abc import abstractmethod
from chromadb.api.types import GetResult, QueryResult
from chromadb.config import Component
from chromadb.execution.expression.plan import CountPlan, GetPlan, KNNPlan
class Executor(Component):
@abstractmethod
def count(self, plan: CountPlan) -> int:
pass
@abstractmethod
def get(self, plan: GetPlan) -> GetResult:
pass
@abstractmethod
def knn(self, plan: KNNPlan) -> QueryResult:
pass