Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the datatype for parameters in rerank() (#163)
## Problem Update the datatype of `parameters` in `rerank()` from `Map<String, Object>` to `Map<String, String>` to better match the OAS. ## Solution Updated the datatype for the rerank() so the base overloaded method is now: ```java public RerankResult rerank(String model, String query, List<Map<String, String>> documents, List<String> rankFields, int topN, boolean returnDocuments, Map<String, String> parameters) ``` As a part of this change, I have also updated the integration test and README. ## Type of Change - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan Updated the integration test for rerank and the rest of them should run as it is.
- Loading branch information