-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathembeddings_list.rs
35 lines (31 loc) · 1.05 KB
/
embeddings_list.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Pinecone Control Plane API
*
* Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors.
*
* The version of the OpenAPI document: 2024-07
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
use crate::openapi::models;
use serde::{Deserialize, Serialize};
/// EmbeddingsList : Embeddings generated for the input
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EmbeddingsList {
#[serde(rename = "model", skip_serializing_if = "Option::is_none")]
pub model: Option<String>,
#[serde(rename = "data", skip_serializing_if = "Option::is_none")]
pub data: Option<Vec<models::Embedding>>,
#[serde(rename = "usage", skip_serializing_if = "Option::is_none")]
pub usage: Option<Box<models::EmbeddingsListUsage>>,
}
impl EmbeddingsList {
/// Embeddings generated for the input
pub fn new() -> EmbeddingsList {
EmbeddingsList {
model: None,
data: None,
usage: None,
}
}
}