Lawbot Query Metadata

Lawbot Query Metadata

What we capture about each user query today · Prod Lawbot · 19 Sep – 19 Oct 2026 · 7,707 queries

Short answer

Yes
Query difficulty: every query is labelled EASY, MEDIUM or COMPLEX.
Yes
With doc / without doc: we know whether the user uploaded a PDF to the conversation.
Yes
Query intent: new question vs follow-up, case-law focus, whether a document search was needed, whether the answer needs a table.
Partly
Small / large query: no length field, because query text is stored encrypted. Difficulty works as the size label instead: a COMPLEX query uses about 2.5× the tokens and cost of an EASY one (see below).

What we track per query

MetadataValuesSource (TaxmannDW)
DifficultyEASY · MEDIUM · COMPLEXqueries_from_lawbot.query_classification → Difficulty_level
Query typeNew query · Follow-up · Tariff research · Tariff search · ITA comparative · Chit-chatqueries_from_lawbot.query_classification → flag
Uploaded a document (PDF)Yes · Nothreads_from_lawbot.is_pdf_thread
Document search neededRetrieve · No retrievequeries_from_lawbot.query_classification → retrieval_needed
Case-law focusedYes · Noqueries_from_lawbot.query_classification → focus_caselaws
Answer needs a tableYes · Noqueries_from_lawbot.query_classification → table_flag
TopicShort auto-generated labelqueries_from_lawbot.query_classification → chat_topic
Law area (user choice)Auto · Income Tax · GSTqueries_from_lawbot.applied_filters → law
Answer length (user choice)Long · Shortqueries_from_lawbot.applied_filters → format_type
Sources searched (user choice)Act / Rules, Case laws, Books, Articles, …queries_from_lawbot.applied_filters → datasets
Tokens and costPer-query input / output tokens by modelqueries_from_lawbot.tokens
OutcomeSuccess · Failed · Edited · Regeneratedqueries_from_lawbot.is_success, is_edited, is_regenerated

Last 30 days

Difficulty of 6,923 labelled

Medium
49% · 3,415
Complex
36% · 2,518
Easy
14% · 990

Query type of 6,927 labelled

New query
64% · 4,446
Follow-up
29% · 2,032
Tariff research / search
3% · 228
Chit-chat
2% · 151
ITA comparative
1% · 70

Document uploaded of 7,707

Without doc
91% · 7,004
With PDF
9% · 703

Other flags share answering “yes”

Document search
94% · 6,546
Needs a table
18% · 1,254
Case-law focused
16% · 1,081

User choices of 7,707

Law: Auto
47% · 3,603
Law: Income Tax
42% · 3,256
Law: GST
11% · 848
Long answer
92% · 7,099
Short answer
8% · 608

Size by category · average per query

CategoryQueriesLLM callsInput tokensOutput tokensLLM cost
Easy98521490K19K$0.26
Medium3,389391.09M44K$0.56
Complex2,502421.21M53K$0.65
Without doc6,258391.10M46K$0.57
With PDF62322566K23K$0.33

Labelled queries with token data. Tokens and cost are summed over every LLM call a query makes, from queries_from_lawbot.tokens → llm_stats[].input_tokken, output_tokken, stage_cost (USD). Most input tokens are retrieved legal content, not the user's typed text.

Gaps