Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 3 additions & 0 deletions endee.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type IndexInfo struct {
CreatedAt int64 `json:"created_at"`
Precision string `json:"precision,omitempty"`
M int `json:"M,omitempty"`
EfCon int `json:"ef_con,omitempty"`
SparseDim int `json:"sparse_dim,omitempty"`
}

Expand Down Expand Up @@ -441,6 +442,7 @@ type GetIndexResponse struct {
Dimension int `json:"dimension"`
Precision string `json:"precision"`
M int `json:"M"`
EfCon int `json:"ef_con"`
CreatedAt int64 `json:"created_at"`
Name string `json:"name"`
SparseDim int `json:"sparse_dim"`
Expand Down Expand Up @@ -482,6 +484,7 @@ func (nd *Endee) GetIndexWithContext(ctx context.Context, name string) (*Index,
SparseDim: data.SparseDim,
Precision: data.Precision,
M: data.M,
EfCon: data.EfCon,
}

// Create and return Index object
Expand Down
1 change: 1 addition & 0 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type IndexParams struct {
SparseDim int `json:"sparse_dim"`
Precision string `json:"precision"`
M int `json:"M"`
EfCon int `json:"ef_con"`
}

// VectorItem represents a vector with metadata for upserting
Expand Down