coronasafe / ayushma

Empowering Nurses with Multilingual ICU Protocols. Leveraging the rapid advancements in AI technology, created multilingual interfaces that assist nurses in rapidly upgrading their knowledge about ICU protocols.
https://ayushma-api.ohc.network
MIT License
7 stars 8 forks source link

Bump pinecone-client from 2.2.4 to 3.1.0 #479

Closed dependabot[bot] closed 1 month ago

dependabot[bot] commented 2 months ago

Bumps pinecone-client from 2.2.4 to 3.1.0.

Release notes

Sourced from pinecone-client's releases.

v3.1.0 Release

Listing vector ids by prefix in a namespace (for serverless indexes)

We've implemented SDK support for a new data plane endpoint used to list ids by prefix in a given namespace. If the prefix empty string is passed, this can be used to list all ids in a namespace.

The index client now has list and list_paginated. With clever assignment of vector ids, this can be used to help model hierarchical relationships between different vectors such as when you have embeddings for multiple chunks or fragments related to the same document.

The list method returns a generator that handles pagination on your behalf.

from pinecone import Pinecone

pc = Pinecone(api_key='xxx') index = pc.Index(host='hosturl')

To iterate over all result pages using a generator function

for ids in index.list(prefix='pref', limit=3, namespace=namespace): print(ids) # ['pref1', 'pref2', 'pref3']

# Now you can pass this id array to other methods, such as fetch or delete.
vectors = index.fetch(ids=ids, namespace=namespace)

There is also an option to fetch each page of results yourself with list_paginated.

from pinecone import Pinecone

pc = Pinecone(api_key='xxx') index = pc.Index(host='hosturl')

namespace = 'foo-namespace'

For manual control over pagination

results = index.list_paginated( prefix='pref', limit=3, namespace='foo', pagination_token='eyJza2lwX3Bhc3QiOiI5IiwicHJlZml4IjpudWxsfQ==' ) print(results.namespace) # 'foo' print([v.id for v in results.vectors]) # ['pref1', 'pref2', 'pref3'] print(results.pagination.next) # 'eyJza2lwX3Bhc3QiOiI5IiwicHJlZml4IjpudWxsfQ==' print(results.usage) # { 'read_units': 1 }

Python 3.11 and 3.12 support

We made an adjustment to our declared python version support (from python >=3.8,<3.13 to ^3.8) to make it easier for tools with more expansive statements on what python versions they support to include the pinecone sdk as a dependency. Alongside this change, we expanded our test matrix to include more robust testing with python versions 3.11 and 3.12. Python 3.13 is still in alpha and is not yet part of our test matrix.

... (truncated)

Commits
  • 8f2c370 [skip ci] Bump version to v3.1.0
  • 2ca1eb9 List vector ids by prefix (#307)
  • 1235fbd Fix minor README docs issues in client reference (#316)
  • e257894 Sync models from pinecone-protos (#315)
  • 0d3cc45 Adjust supported python versions to ^3.8 (#312)
  • 17b33e7 Update pytest-timeout to support python >= 3.12 (#314)
  • 26b7c10 [skip ci] Bump version to v3.0.3
  • 14f6384 upsert_from_dataframe: Hide all progressbars if !show_progress (#310)
  • 886f932 Update generated openapi code (#309)
  • 2c887bb Update github actions dependencies to fix warnings (#308)
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 month ago

Superseded by #490.