Skip to content

response = chain.invoke({"question": query}) should be query.content #72

Description

@Jessen-Li

In llm_engineering/application/rag/query_expanison.py:

response = chain.invoke({"question": query})

It will use str(query), which includes not only content, but also id, author_id, author_full_name, metadata, which are irrelevant to the question. So it's better to change it to

response = chain.invoke({"question": query.content})

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