Skip to content

Add RealToBinary golang binding#68

Merged
CascadingRadium merged 1 commit into
masterfrom
bqAPI
Jun 2, 2026
Merged

Add RealToBinary golang binding#68
CascadingRadium merged 1 commit into
masterfrom
bqAPI

Conversation

@CascadingRadium

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Go binding for the Faiss C API faiss_real_to_binary, enabling conversion of a batch of real-valued vectors (n*d float32 table) into packed binary vectors (LSB bit packing), which is useful for interacting with Faiss binary/vector-quantization workflows.

Changes:

  • Add the missing Faiss C header include needed for the faiss_real_to_binary symbol.
  • Introduce RealToBinary(x []float32, d int) []uint8 helper to binarize vectors into n*(d/8) bytes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread faiss.go
@CascadingRadium CascadingRadium merged commit 1e28b0c into master Jun 2, 2026
1 check passed
@CascadingRadium CascadingRadium deleted the bqAPI branch June 2, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants