Skip to content

Deprecate & remove the vestigial PineconeVectorStore(environment=...) param #149

Description

@johnnichev

PineconeVectorStore(environment=...) is vestigial — deprecate & remove

PineconeVectorStore.__init__ (rag/stores/pinecone.py:59) accepts an environment param and documents it (:70) as "defaults to PINECONE_ENVIRONMENT env var," but the body (73-93) never reads it (nor any env var). Pinecone v3+ dropped the environment concept.

It's purely vestigial, but it's a public constructor parameter, so removing it is a breaking signature change — post-1.0 that needs a deprecation cycle.

Proposed path

  1. Now: fix the misleading docstring (say it's accepted-but-ignored / deprecated).
  2. Next minor: emit a DeprecationWarning when environment is passed.
  3. A later minor (≥2 out): remove the param.

Acceptance

  • Step 1 docstring fix can ship immediately (good first issue). Steps 2–3 follow the 1.0 deprecation policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupCode cleanup, refactoring, dead-code removalquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions