8000 [Bug]: HTTP API Converse with agent: references is empty · Issue #8369 · infiniflow/ragflow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content< 8000 /a>
[Bug]: HTTP API Converse with agent: references is empty #8369
Closed
@chengtm

Description

@chengtm

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

6ca1aef

RAGFlow image version

infiniflow/ragflow:v0.19.0-slim

Other environment information

Actual behavior

When calling the API /api/v1/agents/{agentId}/completions, the reference field in the response is empty, even though:

The Agent workflow is correctly configured:

The Start Component sets a knowledge base (kb) parameter.

The Knowledge Retrieval Component uses this kb variable.

When running the same Agent via the RAGFlow UI, the response includes valid references (as expected).

Expected behavior

The API response should return non-empty reference values, consistent with the UI behavior.

Steps to reproduce

1. In the agent workflow, set the kb parameter in the start component, and use the knowledge base variable in the retrieval component.
![Image](https://github.com/user-attachments/assets/91e69c13-7445-4559-84ef-79e116c86a5b)

2. Run the Agent in the RAGFlow UI → Observe that reference is populated.

3. Calling the interface /api/v1/agents/{agentId}/completions, the returned reference is empty.
![Image](https://github.com/user-attachments/assets/9d558f41-b3a8-4c18-9386-cba67de0192d)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working, pull request that fix bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0