Skip to content

Commit

Permalink
check for error in vector hnsw code (#9235)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 authored Dec 6, 2024
1 parent 889008f commit 094530e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tok/hnsw/persistent_hnsw.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ func (ph *persistentHNSW[T]) PickStartNode(

entry := BytesToUint64(data.([]byte))
err = ph.getVecFromUid(entry, c, startVec)
if err != nil {
fmt.Println(err)
if err != nil && !strings.Contains(err.Error(), "Nil vector returned") {
return 0, err
}

if len(*startVec) == 0 {
Expand Down

0 comments on commit 094530e

Please sign in to comment.