embed_query
Function
Uses a model 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 text length range is [1, 128 × 1024 × 1024]. |
Return Value
Data Type |
Description |
|---|---|
Dict[int, float] |
Sparse vector after conversion of text. |
Parent topic: SparseEmbedding