Skip to content

Conversation

jhamon
Copy link
Collaborator

@jhamon jhamon commented Feb 4, 2025

Problem

Need to overhaul README, other markdown docs, and docstrings to reflect recent changes and additions to the SDK.

Solution

Kermit typing meme

jhamon added 23 commits February 4, 2025 04:17
## Problem

If you only care about doing async index oeprations, it's cumbersome to
have to manage nested async contexts by going through the
`PineconeAsyncio` class.

## Solution

This is a very simple change that enables people to create an async
index client.

## Usage

You can now do index operations via asyncio like this:

```python
import asyncio
from pinecone import Pinecone

async def main():
    async with Pinecone().IndexAsyncio(host='myhost') as idx:
        await idx.uspert(...) # do async things

asyncio.run(main())
```

## Type of Change

- [x] New feature (non-breaking change which adds functionality)
## Problem

Need to wire up several properties that pass configurations in to the
underlying aiohttp library.

## Solution

Wire up several properties for `PineconeAsyncio` that are already
supported in `Pinecone`:
- `additional_headers` to pass extra headers on each request. Useful for
internal testing.
- `ssl_verify` to turn off ssl verification. Sometimes useful for
testing.
- `proxy_url` to send traffic through a proxy
- `ssl_ca_certs` to specify a custom cert bundle. Expecting a path to a
PEM file.

Currently `proxy_headers` is not accepted by `PineconeAsyncio` because I
haven't figured out how to use these with aiohttp.

## Type of Change

- [x] New feature (non-breaking change which adds functionality)
## Problem

When migrating the `embed` and `rerank` over from the plugin, I forgot
to include these custom return objects.
 
## Solution

Add custom return types, adjust tests to ensure result is iterable.

## Type of Change

- [x] Bug fix (non-breaking change which fixes an issue)
@jhamon jhamon marked this pull request as ready for review February 7, 2025 14:22
@jhamon jhamon merged commit 84aa1f7 into release-candidate/2025-01 Feb 7, 2025
56 checks passed
@jhamon jhamon deleted the jhamon/v6-readme branch February 7, 2025 14:22
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.

1 participant