forked from innovacion/searchbox
Add Backend enum
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user