Shakshi3104 commited on
Commit
02c2acd
1 Parent(s): b58c0e3

[add] Add docstring

Browse files
Files changed (1) hide show
  1. model/search/vector.py +15 -0
model/search/vector.py CHANGED
@@ -96,6 +96,21 @@ class RuriVoyagerSearchClient(BaseSearchClient):
96
  @classmethod
97
  @stop_watch
98
  def from_dataframe(cls, _data: pd.DataFrame, _target: str):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  logger.info("🚦 [RuriVoyagerSearchClient] Initialize from DataFrame")
100
 
101
  search_field = _data[_target]
 
96
  @classmethod
97
  @stop_watch
98
  def from_dataframe(cls, _data: pd.DataFrame, _target: str):
99
+ """
100
+ 検索ドキュメントのpd.DataFrameから初期化する
101
+
102
+ Parameters
103
+ ----------
104
+ _data:
105
+ pd.DataFrame, 検索対象のDataFrame
106
+
107
+ _target:
108
+ str, 検索対象のカラム名
109
+
110
+ Returns
111
+ -------
112
+
113
+ """
114
  logger.info("🚦 [RuriVoyagerSearchClient] Initialize from DataFrame")
115
 
116
  search_field = _data[_target]