File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ def search(
135135 self ,
136136 collection_id : str ,
137137 text : str ,
138- max_distance : Optional [float ] = None ,
139138 top_k : Optional [int ] = None ,
139+ offset : Optional [int ] = None ,
140140 ):
141141 """
142142 Searches within a collection based on the provided parameters.
@@ -153,8 +153,8 @@ def search(
153153 endpoint = f"{ self .search_endpoint } /{ collection_id } /search"
154154 req_body = {
155155 "text" : text ,
156- "max_distance" : max_distance ,
157156 "top_k" : top_k ,
157+ "offset" : offset ,
158158 }
159159 resp = self .session .post (endpoint , headers = self .headers , json = req_body )
160160 body = resp .json ()
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44
55[tool .poetry ]
66name = " needle-python"
7- version = " 0.4 .0"
7+ version = " 0.5 .0"
88description = " Needle client library for Python"
99authors = [
1010 " Onur Eken <m.onureken@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments