graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

Update VectorStoreSearchResult score value range

Open longyunfeigu opened this issue 1 year ago • 1 comments

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

1723700892966

longyunfeigu avatar Aug 15 '24 06:08 longyunfeigu

@microsoft-github-policy-service agree

longyunfeigu avatar Aug 15 '24 06:08 longyunfeigu