MCPcopy Create free account
hub / github.com/53AI/53AIHub / shouldSkipEntityVectorMatch

Function shouldSkipEntityVectorMatch

api/service/rag/search.go:1506–1516  ·  view source on GitHub ↗
(likeHitCount, keywordCount int)

Source from the content-addressed store, hash-verified

1504}
1505
1506func shouldSkipEntityVectorMatch(likeHitCount, keywordCount int) (bool, int) {
1507 if likeHitCount <= 0 || keywordCount <= 0 {
1508 return false, 0
1509 }
1510
1511 threshold := keywordCount * 4
1512 if threshold < 4 {
1513 threshold = 4
1514 }
1515 return likeHitCount >= threshold, threshold
1516}
1517
1518func sameInt64Set(a, b []int64) bool {
1519 if len(a) != len(b) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected