use qdrant_client::{ Payload, Qdrant, qdrant::{Document, PointStruct, UpsertPointsBuilder}, }; use std::collections::HashMap; pub async fn main() -> anyhow::Result<()> { let client = Qdrant::from_url("").build()?; // @hide let mut options = HashMap::new(); options.insert("openai-api-key".to_string(), "".into()); client .upsert_points(UpsertPointsBuilder::new("{collection_name}", vec![ PointStruct::new(1, Document { text: "Recipe for baking chocolate chip cookies".into(), model: "openai/text-embedding-3-large".into(), options, }, Payload::default()) ]).wait(true)) .await?; Ok(()) }