Skip to content

How to support complex queries like doc count #2607

@syonip

Description

@syonip

There's a certain class of questions that seems to fail/generate nonsense. Examples from user chat:

  • How many documents are in the database?
  • How many documents have been signed after March 2025?
  • Give me a list of all contracts between company X and company Y

These seem to be more in the area of generating a proper search query. I don't even know if this falls under RAG. But the user requires supporting this.

Any idea or resource would be appreciated.
Thanks.

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