Skip to content

Handle empty retrieval tables during article generation #547

Description

@pxm-0

Context

Article generation crashes when research produces no snippets because cosine similarity receives an empty 1D array.

Acceptance criteria

  • Article generation does not call cosine similarity with an empty snippet matrix.
  • Empty retrieval returns no information and preserves normal behavior for populated tables.
  • A focused runnable regression check covers the empty-table path.

Out of scope

  • Replacing the DuckDuckGo package.
  • Changing Wikipedia parsing behavior.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions