use qdrant_client::qdrant::{ vector_example::Example, ContextExamplePairBuilder, DiscoverBatchPointsBuilder, DiscoverPointsBuilder, }; use qdrant_client::Qdrant; let client = Qdrant::from_url("http://localhost:6334").build()?; let discover_points = DiscoverBatchPointsBuilder::new( "{collection_name}", vec![ DiscoverPointsBuilder::new( "{collection_name}", vec![ ContextExamplePairBuilder::default() .positive(Example::Id(100.into())) .negative(Example::Id(718.into())) .build(), ContextExamplePairBuilder::default() .positive(Example::Id(200.into())) .negative(Example::Id(300.into())) .build(), ], 10, ) .build(), DiscoverPointsBuilder::new( "{collection_name}", vec![ ContextExamplePairBuilder::default() .positive(Example::Id(342.into())) .negative(Example::Id(213.into())) .build(), ContextExamplePairBuilder::default() .positive(Example::Id(100.into())) .negative(Example::Id(200.into())) .build(), ], 10, ) .build(), ], ); client.discover_batch(&discover_points.build()).await?;