Skip to content

fix(ai): show the newest index time in rag status #6774

Closed

Description

@dan-petty

Problem

Checked at main 054ece5 on 2026-11-22.

  • A full devops ai rag index --include-kb ended at 14:31 UTC with exit 0 ("Indexed 5476 files (50479 chunks)"). devops ai rag status then showed "Last Indexed" 2026-11-22 04:26:15 for devops_code and 04:43:12 for devops_docs, the times of an earlier run that stopped.
  • src/devops_cli/commands/rag.py:457-461 reads indexed_at from one point: qdrant.scroll_points(coll_name, limit=1), the first point of the scroll, not the newest. An index run writes only changed chunks, so that point can be from any older run.

Proposed remedy

  • Show the time of the newest point: a Qdrant scroll ordered by indexed_at descending with limit 1 (an order_by on a datetime payload index), or the time that the run records in its metadata.

Acceptance criteria

  • A test with a fake Qdrant that holds an old first point and a newer later point shows the newer time in the status table.

Person steps

None.

Dependencies

None.

Alternatives check of 2026-11-22: in-use.
The repository already uses this tool.
Tool: qdrant/qdrant (https://github.com/qdrant/qdrant), Apache-2.0, last activity 2026-11-20, maintained.
Reason: Searches found that the store's scroll accepts an order_by on an indexed datetime payload field with a limit, which returns the newest point; the status command, the payload index and the run metadata remain project code.

Covers:

  • Ordering points by an indexed datetime payload field, descending
  • A limited scroll that returns only the newest point
  • An official Python client for the existing collections
  • Payload filtering and keyword/datetime index types

Lacks:

  • No RAG status table or "Last Indexed" rendering
  • No record of a run's own start and end time
  • Needs a datetime payload index built before ordering
  • No command that falls back to run metadata

Activity

  1. added
    type/bug
    scope/ai
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 22, 2026
  2. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 22, 2026
  4. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • Qdrant retrieve newest point by timestamp order_by, results: 5
    • Qdrant scroll order_by datetime payload index descending, results: 5
    • qdrant python client scroll order_by, results: 5
    • qdrant order_by scroll points payload datetime index documentation, results: 5
    • "order_by" qdrant points scroll datetime payload index, results: 5
    • Qdrant scroll API order_by datetime, results: 5
    • vector database newest record timestamp query Qdrant documentation, results: 5
    • qdrant, results: 5
    • Qdrant documentation scroll order by payload field index, results: 5
    • qdrant.tech documentation, results: 5

    Sources:

  5. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 22, 2026
  6. added
    status/in-review
    and removed
    status/in-progress
    on Nov 22, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 22, 2026
  8. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-22 23:15 UTC

  9. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    Live check after the merge of #6801 (v0.195.4), 2026-11-22: one devops ai rag index run created the datetime index of indexed_at on both collections and embedded only the 366 changed files. devops ai rag status now shows Last Indexed 2026-11-22 23:38:15 for devops_code and 23:42:17 for devops_docs, the times of that run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/aisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions