Skip to content

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

Merged
merged 8 commits into from
Jul 22, 2024
Merged

Update documentation #36

merged 8 commits into from
Jul 22, 2024

Conversation

ericapywang
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

Test cases should pass since no code was changed. Code snippets in docstrings should still compile.

@ericapywang ericapywang requested a review from emily-emily July 22, 2024 19:07
@ericapywang ericapywang marked this pull request as ready for review July 22, 2024 19:07
/// ```
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this cleaning?

///
/// // 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(())
/// # }
Copy link
Contributor

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

@@ -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"
Copy link
Contributor

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

@ericapywang ericapywang requested a review from emily-emily July 22, 2024 19:59
@ericapywang ericapywang merged commit 2ae129e into main Jul 22, 2024
1 check passed
@ericapywang ericapywang deleted the erica/update-docs branch July 22, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants