Add Backend enum

This commit is contained in:
2025-09-26 15:13:22 +00:00
parent 0656ed93f1
commit a91188e83f
4 changed files with 13 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ class BaseEngine(ABC, Generic[ResponseType, ConditionType]):
async def semantic_search(
self,
vector: list[float],
embedding: list[float],
collection: str,
limit: int = 10,
conditions: list[Condition] | None = None,
@@ -38,6 +38,6 @@ class BaseEngine(ABC, Generic[ResponseType, ConditionType]):
) -> list[SearchRow]:
transformed_conditions = self.transform_conditions(conditions)
response = await self.run_similarity_query(
vector, collection, limit, transformed_conditions, threshold
embedding, collection, limit, transformed_conditions, threshold
)
return self.transform_response(response)