Skip to content

Commit

Permalink
Adding fields in the ResidualCodec type. Using @proto during dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
codetalker7 committed Jun 14, 2024
1 parent e035aad commit beb65be
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/indexing/codecs/residual.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
struct ResidualCodec
using ..ColBERT: ColBERTConfig
using ProtoStructs

@proto mutable struct ResidualCodec
config::ColBERTConfig
centroids::Matrix{Float64}
avg_residual:: Float64
bucket_cutoffs::Vector{Float64}
bucket_weights::Vector{Float64}
end

0 comments on commit beb65be

Please sign in to comment.