Skip to content

Granite should only get docs from the last user message. #953

Closed as not planned

Description

@nrfulton

We should add an assertion that docs only exist in the final message and that the final message has role user (or docs is empty) just before

docs = messages_to_docs(ctx_as_message_list)

Per @frreiss , who can let us know if I got this wrong...

Activity

  1. added
    bug
    on Apr 28, 2026
  2. nrfulton commented on Apr 28, 2026

    @nrfulton
    MemberAuthor

    Sorry, @frreiss , meant to mention you not assign you :)

  3. nrfulton commented on Apr 28, 2026

    @nrfulton
    MemberAuthor

    Do not close this issue until after #952 is closed and incorporate the same check into that solution.

  4. changed the title [-]Granite should get only docs from the last user message.[/-] [+]Granite should only get docs from the last user message.[/+] on Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions