@@ -157,22 +157,6 @@ def embed_batch(self, texts: List[str], is_query: bool = False) -> List[EmbedRes
157157 """
158158 return [self .embed (text , is_query = is_query ) for text in texts ]
159159
160- def embed_query (self , text : str ) -> EmbedResult :
161- """Embed query text with explicit retrieval-side semantics."""
162- return self .embed (text , is_query = True )
163-
164- def embed_document (self , text : str ) -> EmbedResult :
165- """Embed document text with explicit indexing-side semantics."""
166- return self .embed (text , is_query = False )
167-
168- def embed_batch_query (self , texts : List [str ]) -> List [EmbedResult ]:
169- """Batch embed query texts."""
170- return self .embed_batch (texts , is_query = True )
171-
172- def embed_batch_document (self , texts : List [str ]) -> List [EmbedResult ]:
173- """Batch embed document texts."""
174- return self .embed_batch (texts , is_query = False )
175-
176160 async def embed_async (self , text : str , is_query : bool = False ) -> EmbedResult :
177161 """Async embed single text.
178162
@@ -191,18 +175,6 @@ async def embed_batch_async(
191175 results .append (await self .embed_async (text , is_query = is_query ))
192176 return results
193177
194- async def embed_query_async (self , text : str ) -> EmbedResult :
195- return await self .embed_async (text , is_query = True )
196-
197- async def embed_document_async (self , text : str ) -> EmbedResult :
198- return await self .embed_async (text , is_query = False )
199-
200- async def embed_batch_query_async (self , texts : List [str ]) -> List [EmbedResult ]:
201- return await self .embed_batch_async (texts , is_query = True )
202-
203- async def embed_batch_document_async (self , texts : List [str ]) -> List [EmbedResult ]:
204- return await self .embed_batch_async (texts , is_query = False )
205-
206178 def close (self ):
207179 """Release resources, subclasses can override as needed"""
208180 pass
0 commit comments