Skip to content

How to construct the query in a real-world scenario. #10

@geraldzm

Description

@geraldzm

Hi, thanks for your work.

I'm building a template repository using Next.js with the AI SDK to explore StructRAG in a more real-world scenario.

I have one question:

How is the query supposed to be constructed?

In this repo, we build the query passed to the router, structurizer, and utilizer like this:

            query = data['prompt_template'].format(instruction=data['instruction'], question=data['question'], docs="......")

I understand this is based on Loong's benchmark setup, but in a real-world app, is it reasonable to just use query = question?

Note: I didn’t find anything about this in the paper. If I missed it, I’d appreciate it if you could point me to the relevant section.

Any insights would be appreciated.

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