Skip to content

HuggingFace inference operator: QA/ranking payloads drop their context/labels/sentences on fallback providers #7195

Closed

Description

@PG1204

What happened?

For question-answering, table-question-answering, zero-shot-classification, sentence-similarity, and text-ranking, the per-task codegen builds a structured payload (context passage, table dict, candidate labels, sentence list). But when _post_with_fallback routes to a third-party provider via _call_provider, the OpenAI-compatible and unknown-provider branches send only prompt_value as a chat message and the structured fields are silently dropped. The user gets a hallucinated chat answer instead of extractive QA / similarity scores, with no indication anything was lost. Only hf-inference (which accepts the raw pipeline dict) works correctly.

File: .../huggingFace/codegen/HuggingFaceCodegenBase.scala (_call_provider).

How to reproduce?

Run question-answering with a model served by an OpenAI-compatible provider (not hf-inference). The context column is ignored and the result is a generic chat answer rather than an extractive one.

Version/Branch

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

No response

What browsers are you seeing the problem on?

No response

Relevant log output

Activity

  1. added theissue type on Aug 1, 2026
  2. PG1204 commented on Aug 1, 2026

    @PG1204
    ContributorAuthor

    /take

  3. added a commit that references this issue on Aug 24, 2026
    2113455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions