embed_query
Function
Calls the TEI service to convert the text provided by the user into vectors.
Prototype
def embed_query(text)
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
text |
String |
Required |
Text to be vectorized. The length range is [1, 128 × 1024 × 1024]. |
Return Value
Data Type |
Description |
|---|---|
List[float] |
Vector array after the conversion of text. If the output of the embedding model is a 1024-dimensional vector, the final output result is an array of size (1, 1024). |
Parent topic: TEIEmbedding