embed_query
Function
Vectorizes a single text.
Prototype
def embed_query(text)
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
text |
String |
Required |
The value range of the text length is [1, 256]. |
Return Value
Data Type |
Description |
|---|---|
List[float] |
Vector after the conversion of text. If the output of the embedding model is a 512-dimensional vector, the final output result is a floating-point number list with a size of 512. |
Parent topic: ImageEmbedding