[0.12, -0.34, 0.56, ...]
, while “What’s the temperature outside?” would produce a different but nearby vector, reflecting their similar meanings.
Semantic Router supports various encoder types:
OpenAIEncoder
or HuggingFaceEncoder
): Generate vectors where every dimension has a value, capturing complex semantic relationshipsAurelioSparseEncoder
or BM25Encoder
): Generate vectors where most dimensions are zero, excelling at keyword matching and term frequencyCLIPEncoder
or VitEncoder
, images can be placed in the same semantic space as text, enabling cross-modal comparisons and routing