Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sections code for vector search #166

Merged
merged 29 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
45ea279
initial sections code for dense vector index - wip
Thejas-bhat Jul 31, 2023
b5ceeeb
updated the persist path and some thoughts regarding merge
Thejas-bhat Aug 1, 2023
b430151
introducing an API that returns a list of docs having similar vectors…
Thejas-bhat Aug 3, 2023
26fb723
bug fix of mask bits; using IEEE 745 representation for scores
Thejas-bhat Aug 3, 2023
17d5c16
bug fix - fixing vecPostings APIs and return logic
Thejas-bhat Aug 3, 2023
55bb170
bug fixes with respect to vector segment creation
Thejas-bhat Aug 4, 2023
7cc1629
updated the unit test; verification of contents stored in section
Thejas-bhat Aug 4, 2023
bdb02a5
buf fixes with respect to search path
Thejas-bhat Aug 7, 2023
5c6dc93
small cleanup, update of unit test
Thejas-bhat Aug 9, 2023
95e5f42
unit test for operating on a persisted vector segment
Thejas-bhat Aug 9, 2023
04e67fe
implementing the Count() API for the postings list, updated todos
Thejas-bhat Aug 9, 2023
f620ee7
added build tags
Thejas-bhat Aug 9, 2023
e29fd9c
absorbing DenseVectorField interface changes
Thejas-bhat Aug 9, 2023
40d7cd5
change of builds tags; implementing the Size and Count APIs
Thejas-bhat Aug 28, 2023
50fdea5
using vector hash as the vector's ID
Thejas-bhat Sep 6, 2023
e3a45a3
merging of vector sections together - works for flat indexes more tes…
Thejas-bhat Sep 6, 2023
9551f50
updated the hash func, adding checks with respect to merge abort
Thejas-bhat Sep 6, 2023
14ded4b
merge conflicts resolution
Thejas-bhat Sep 20, 2023
917078e
updating merge path with the ivf index creations (#173)
abhinavdangeti Nov 1, 2023
0a295c4
Refactor sectionInvertedIndex -> sectionInvertedTextIndex
abhinavdangeti Nov 1, 2023
dfdb470
Refactor sectionVectorIndex -> sectionFaissVectorIndex
abhinavdangeti Nov 1, 2023
698e97e
Move to [email protected] and [email protected]
abhinavdangeti Nov 1, 2023
edee0fe
Rename file section_vector_index.go -> section_faiss_vector_index.go
abhinavdangeti Nov 1, 2023
26b97e1
Refactor vectorIndexSection -> faissVectorIndexSection
abhinavdangeti Nov 1, 2023
f518a0b
Add copyright snippet to section_faiss_vector_index.go
abhinavdangeti Nov 1, 2023
eababfe
Declare zap/v16 and re-position vectors only content
abhinavdangeti Nov 1, 2023
6b00f6d
Rename vector_search.go -> faiss_vector_posting.go
abhinavdangeti Nov 1, 2023
d9cfbfd
some more code comments
Thejas-bhat Nov 2, 2023
f9dd481
bug fix: use the appropriate fieldID while consulting the info in seg…
Thejas-bhat Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- master
- v15.x
- v14.x
- v13.x
- v12.x
Expand All @@ -12,7 +13,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x]
go-version: [1.19.x, 1.20.x, 1.21.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/RoaringBitmap/roaring"
"github.com/blevesearch/vellum"
zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/docvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sort"
"strconv"

zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/golang/snappy"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/explore.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/RoaringBitmap/roaring"
"github.com/blevesearch/vellum"
zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/binary"
"fmt"

zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"os"

zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package main

import (
"github.com/blevesearch/zapx/v15/cmd/zap/cmd"
"github.com/blevesearch/zapx/v16/cmd/zap/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion docvalues.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (s *SegmentBase) VisitDocValues(localDocNum uint64, fields []string,
continue
}
fieldID := fieldIDPlus1 - 1
if dvIter, exists := s.fieldDvReaders[sectionInvertedIndex][fieldID]; exists &&
if dvIter, exists := s.fieldDvReaders[sectionInvertedTextIndex][fieldID]; exists &&
dvIter != nil {
dvs.dvrs[fieldID] = dvIter.cloneInto(dvs.dvrs[fieldID])
}
Expand Down
Loading
Loading