graphrag
graphrag copied to clipboard
Update VectorStoreSearchResult score value range
Description
When using the LanceDBVectorStore, the score of the searched doc may be negative after 1-abs (float(doc["_distance"]) calculation
Related Issues
[Reference any related issues or tasks that this pull request addresses.]
Proposed Changes
[List the specific changes made in this pull request.]
Checklist
- [x] I have tested these changes locally.
- [x] I have reviewed the code changes.
- [ ] I have updated the documentation (if necessary).
- [ ] I have added appropriate unit tests (if applicable).
Additional Notes
@microsoft-github-policy-service agree