Skip to content

[Feature Request] Expose the index LSN (x-pinecone-max-indexed-lsn) for robust freshness verification #470

Open

Description

@Amayas29

What motivated you to submit this feature request?
We need a reliable way to verify whether recent write operations are visible to queries. The use of vector count comparison fails when insert/delete operations offset each other (e.g., inserting 5 and deleting 5 documents leaves the count unchanged). An LSN in index statistics would provide more robust verification of freshness.

Describe the solution you'd like
Expose the index lsn (x-pinecone-max-indexed-lsn) in describe_index_stats()

Describe alternatives you've considered
We currently use vector count comparison to detect ingestion freshness

write operations (upsert/delete) code:

# Store the count before write operation
initial_count = (
  index.describe_index_stats()
  .get("namespaces", {})
  .get(namespace, {})
  .get("vector_count", None)
)

index.upsert(...)  

Search code:

count = (
  index.describe_index_stats()
  .get("namespaces", {})
  .get(namespace, {})
  .get("vector_count", None)
)

if count == initial_count:
  LOGGER.warning(
      "Recently ingested documents may not yet be visible to queries "
      "due to Pinecone's indexing delay."
  )
  # Potentially followed by a sleep to await visibility.

Activity

  1. added
    enhancement
    on Mar 26, 2025
  2. added
    status:needs-triage
    on Mar 26, 2025
  3. self-assigned this
    on Apr 3, 2025
  4. anawishnoff commented on Apr 3, 2025

    @anawishnoff

    Hey @Amayas29 thank you for opening. We know that eventual consistency can pose this problem for users and are investigating internally to figure out the best way to add more flexibility and visibility into this workflow. While I don't have an update to share yet, I'll circle back if we decide to go with the route of exposing the LSN.

  5. added
    status:backlog
    and removed
    status:needs-triage
    on Apr 3, 2025
  6. added
    wontfix
    on Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementstatus:backlogwontfix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions