Skip to content

Commit

Permalink
Use float32 for embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Dec 15, 2023
1 parent ebfd86c commit 1ebc3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature_extraction.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type FeatureExtractionRequest struct {
}

// Response structure for the feature extraction endpoint
type FeatureExtractionResponse [][][][]float64
type FeatureExtractionResponse [][][][]float32

// Response structure for the feature extraction endpoint
type FeatureExtractionWithAutomaticReductionResponse [][]float64
type FeatureExtractionWithAutomaticReductionResponse [][]float32

// FeatureExtraction performs feature extraction using the specified model.
// It sends a POST request to the Hugging Face inference endpoint with the provided input data.
Expand Down

0 comments on commit 1ebc3e4

Please sign in to comment.