File tree Expand file tree Collapse file tree
sdk/python/feast/infra/online_stores Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,11 +340,7 @@ def online_search(
340340
341341 return result
342342
343- def create_index (
344- self ,
345- config : RepoConfig ,
346- table : str
347- ):
343+ def create_index (self , config : RepoConfig , table : str ):
348344 document_store_config = config .document_store_config
349345 with self ._get_conn (config ) as conn , conn .cursor () as cur :
350346 cur .execute (
Original file line number Diff line number Diff line change 55import numpy as np
66
77from feast .feature_view import FeatureView
8+ from feast .infra .online_stores .online_store import OnlineStore
89from feast .protos .feast .types .Value_pb2 import Value as ValueProto
910from feast .repo_config import FeastConfigBaseModel , RepoConfig
10- from feast .infra .online_stores .online_store import OnlineStore
1111
1212
1313class DocumentStoreIndexConfig (FeastConfigBaseModel ):
@@ -16,14 +16,13 @@ class DocumentStoreIndexConfig(FeastConfigBaseModel):
1616
1717
1818class DocumentStore (OnlineStore ):
19-
2019 @abstractmethod
2120 def online_search (
22- self ,
23- config : RepoConfig ,
24- table : FeatureView ,
25- requested_feature : str ,
26- embeddings : np .ndarray ,
27- top_k : int ,
21+ self ,
22+ config : RepoConfig ,
23+ table : FeatureView ,
24+ requested_feature : str ,
25+ embeddings : np .ndarray ,
26+ top_k : int ,
2827 ) -> List [Tuple [Optional [datetime ], Optional [Dict [str , ValueProto ]]]]:
29- raise NotImplementedError ("You have to implement this!" )
28+ raise NotImplementedError ("You have to implement this!" )
You can’t perform that action at this time.
0 commit comments