EmbeddingConfig
Defined in the embedding module.Rust AI Agent SDK Configuration for embedding generation.
Fields
| Name | Type | Description |
|---|---|---|
dimensions | Option<usize> | Number of dimensions for the embedding (model-dependent) |
format | "float" or "base64" | - |
encoding_format | String | Encoding format: “float” or “base64” |
timeout | u64 | Timeout in seconds |
api_base | Option<String> | Custom API base URL |
api_key | Option<String> | API key for authentication |
Methods
new
dimensions
| Name | Type |
|---|---|
dimensions | usize |
encoding_format
| Name | Type |
|---|---|
format | impl Into<String> |
timeout
| Name | Type |
|---|---|
timeout | u64 |
api_base
| Name | Type |
|---|---|
url | impl Into<String> |
api_key
| Name | Type |
|---|---|
key | impl Into<String> |
Source
View on GitHub
praisonai/src/embedding/mod.rs at line 27
