@@ -46,7 +46,7 @@ func (s *Indexer) findRandInstall(ctx context.Context) (*github.Installation, er
46
46
return toIndex , nil
47
47
}
48
48
49
- const embeddingDimensions = 1536
49
+ const embeddingDimensions = 256
50
50
51
51
func f32to64 (f []float32 ) []float64 {
52
52
out := make ([]float64 , len (f ))
@@ -95,9 +95,9 @@ func (s *Indexer) issuesTable() *bigquery.Table {
95
95
return s .BigQuery .Dataset ("ghindex" ).Table ("issues" )
96
96
}
97
97
98
- // getCachedIssues helps avoid duplicate inserts by letting the caller skip over
98
+ // getUpdatedAts helps avoid duplicate inserts by letting the caller skip over
99
99
// issues that have already been indexed.
100
- func (s * Indexer ) getCachedIssues (ctx context.Context , installID int64 ) (map [int64 ]time.Time , error ) {
100
+ func (s * Indexer ) getUpdatedAts (ctx context.Context , installID int64 ) (map [int64 ]time.Time , error ) {
101
101
queryStr := `
102
102
WITH RankedIssues AS (
103
103
SELECT
@@ -186,7 +186,7 @@ func (s *Indexer) indexInstall(ctx context.Context, install *github.Installation
186
186
table := s .issuesTable ()
187
187
inserter := table .Inserter ()
188
188
189
- cachedIssues , err := s .getCachedIssues (ctx , install .GetID ())
189
+ cachedIssues , err := s .getUpdatedAts (ctx , install .GetID ())
190
190
if err != nil {
191
191
return fmt .Errorf ("get cached issues: %w" , err )
192
192
}
0 commit comments