Skip to main content

qdrant_edge/edge/requests/
retrieve.rs

1use crate::segment::types::{ExtendedPointId, WithPayloadInterface, WithVector};
2
3/// Retrieve points by their ids. The response preserves the requested id order and skips
4/// ids that do not exist in the shard.
5#[derive(Clone, Debug, PartialEq)]
6pub struct RetrieveRequest {
7    /// Ids of the points to retrieve.
8    pub point_ids: Vec<ExtendedPointId>,
9    /// Select which payload to return with the response. Default is true.
10    pub with_payload: Option<WithPayloadInterface>,
11    /// Options for specifying which vectors to include into the response. Default is false.
12    pub with_vector: Option<WithVector>,
13}
14
15impl RetrieveRequest {
16    pub fn new(point_ids: Vec<ExtendedPointId>) -> Self {
17        Self {
18            point_ids,
19            with_payload: None,
20            with_vector: None,
21        }
22    }
23}