Skip to content

Commit e89cd8f

Browse files
committed
chore: remove todos
1 parent 79ce192 commit e89cd8f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cbrkit/retrieval/synthesis.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from collections.abc import Mapping, Sequence
22
from dataclasses import dataclass
3-
from typing import Any
43

54
from pydantic import BaseModel
65

@@ -11,9 +10,6 @@
1110
SynthesizerFunc,
1211
)
1312

14-
# TODO: return ranking that is transformed to a similarity map
15-
# todo: compute mean average error between similarities from llm and benchmark
16-
1713

1814
class SynthesisResponse[K](BaseModel):
1915
similarities: Mapping[K, float]
@@ -25,7 +21,7 @@ def _from_pydantic[K](obj: SynthesisResponse[K]) -> Mapping[K, float]:
2521

2622
@dataclass(slots=True, frozen=True)
2723
class synthesis[K, V](RetrieverFunc[K, V, float]):
28-
func: SynthesizerFunc[SynthesisResponse[K], K, V, Any]
24+
func: SynthesizerFunc[SynthesisResponse[K], K, V, float]
2925

3026
def __call__(
3127
self,

0 commit comments

Comments
 (0)