import React from 'react' import { useFeatureExtraction } from '../../contexts/FeatureExtractionContext' const FeatureExtractionConfig = () => { const { config, setConfig } = useFeatureExtraction() return (
How to aggregate token embeddings into sentence embeddings
L2 normalize embeddings for better similarity calculations
Mean Pooling: Average all token embeddings
CLS Token: Use the [CLS] token embedding (if available)
Max Pooling: Take element-wise maximum across tokens