Skip to content

Commit 1cc3668

Browse files
committed
remove pod/collection support
1 parent 00d1151 commit 1cc3668

File tree

5 files changed

+45
-1530
lines changed

5 files changed

+45
-1530
lines changed

src/lib.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
//!
4949
//! ```no_run
5050
//! use pinecone_sdk::pinecone;
51-
//! use pinecone_sdk::models::{Cloud, DeletionProtection, IndexModel, Metric, WaitPolicy};
51+
//! use pinecone_sdk::models::{Cloud, DeletionProtection, IndexModel, Metric, VectorType, WaitPolicy};
5252
//! use pinecone_sdk::utils::errors::PineconeError;
53-
//! # async fn create_index_and_collection() -> Result<(), PineconeError> {
53+
//! # async fn create_index() -> Result<(), PineconeError> {
5454
//! let client: pinecone::PineconeClient =
5555
//! pinecone::default_client().expect("Failed to create PineconeClient");
5656
//!
@@ -63,17 +63,15 @@
6363
//! "us-east-1",
6464
//! DeletionProtection::Disabled,
6565
//! WaitPolicy::NoWait,
66+
//! VectorType::Dense,
67+
//! None,
6668
//! )
6769
//! .await?;
6870
//!
69-
//! let collection = client.create_collection("my-collection-name", "my-previous-index-name").await?;
70-
//!
7171
//! let index_description = client.describe_index("index-name").await?;
72-
//! let collection_description = client.describe_collection("my-collection-name").await?;
7372
//! let indexes = client.list_indexes().await?;
7473
//!
7574
//! println!("Index description: {:?}", index_description);
76-
//! println!("Collection description: {:?}", collection_description);
7775
//! println!("Index list: {:?}", indexes);
7876
//!
7977
//! # Ok(())

0 commit comments

Comments
 (0)