-
Notifications
You must be signed in to change notification settings - Fork 1
Update documentation #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pinecone_sdk/src/pinecone/mod.rs
Outdated
/// ``` | ||
pub fn new( | ||
api_key: Option<String>, | ||
control_plane_host: Option<String>, | ||
additional_headers: Option<HashMap<String, String>>, | ||
source_tag: Option<String>, | ||
) -> Result<Self, PineconeError> { | ||
// get api key | ||
// clean api key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this cleaning?
pinecone_sdk/src/pinecone/mod.rs
Outdated
/// | ||
/// // Create a Pinecone client with the API key and controller host. | ||
/// let pinecone = PineconeClient::new(Some("INSERT_API_KEY".to_string()), Some("INSERT_CONTROLLER_HOST".to_string()), None, None); | ||
/// # Ok(()) | ||
/// # } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this hidden code for this section since there's no async
pinecone_sdk/src/pinecone/data.rs
Outdated
@@ -138,8 +142,10 @@ impl Index { | |||
/// # async fn main() -> Result<(), PineconeError>{ | |||
/// let pinecone = PineconeClient::new(None, None, None, None).unwrap(); | |||
/// | |||
/// // Connect to the index "index-host" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we word this better? "index-host" is the host url of the index rather than the name
Problem
Parts of the docstrings are either outdated or not consistent.
Solution
I updated documentation in parts where it was either outdated or inconsistent. I also added comments to code snippets.
Type of Change
Test Plan
Test cases should pass since no code was changed. Code snippets in docstrings should still compile.