@@ -215,7 +215,7 @@ async def search_contributors_by_keywords(self, keywords: List[str], limit: int
215215
216216 # TODO: Add hybrid search for contributors. Default in built hybrid search doesn't support custom vectors.
217217
218- async def get_contributor_profile (self , github_username : str ) -> Optional [Dict [ str , Any ] ]:
218+ async def get_contributor_profile (self , github_username : str ) -> Optional [WeaviateUserProfile ]:
219219 """Get a specific contributor's profile by GitHub username."""
220220 try :
221221 async with get_weaviate_client () as client :
@@ -285,7 +285,7 @@ async def store_user_profile(profile: WeaviateUserProfile, embedding_vector: Lis
285285 operations = WeaviateUserOperations ()
286286 return await operations .upsert_user_profile (profile , embedding_vector )
287287
288- async def search_similar_contributors (query_embedding : List [float ], limit : int = 10 , min_distance : float = 0.5 ) -> List [Dict [str , Any ]]:
288+ async def search_similar_contributors (query_embedding : List [float ], limit : int = 10 , min_distance : float = 0.7 ) -> List [Dict [str , Any ]]:
289289 """
290290 Convenience function to search for similar contributors using vector similarity.
291291 """
@@ -299,7 +299,7 @@ async def search_contributors_by_keywords(keywords: List[str], limit: int = 10)
299299 operations = WeaviateUserOperations ()
300300 return await operations .search_contributors_by_keywords (keywords , limit )
301301
302- async def get_contributor_profile (github_username : str ) -> Optional [Dict [ str , Any ] ]:
302+ async def get_contributor_profile (github_username : str ) -> Optional [WeaviateUserProfile ]:
303303 """Convenience function to get a contributor's profile by GitHub username."""
304304 operations = WeaviateUserOperations ()
305305 return await operations .get_contributor_profile (github_username )
0 commit comments