Skip to content

[Bug]: cite not effect in agent generate component #7081

@samuelyyl

Description

@samuelyyl

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

de5727f

RAGFlow image version

build image with main branch lastest commit

Other environment information

not about env

Actual behavior

In the file agent/component/generate.py, the variables content_ltks and vector are never created or included in retrieval_res.

      if self._param.cite and "content_ltks" in retrieval_res.columns and "vector" in retrieval_res.columns:
            res = self.set_cite(retrieval_res, ans)
            return pd.DataFrame([res])

Expected behavior

No response

Steps to reproduce

create any agent using retrieval component and generate component can reproduce .

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