amirelrefai commited on
Commit
36997ad
路
1 Parent(s): 8733ffe

chore: update evaluation results and reporting files

Browse files
app/services/llm_service.py CHANGED
@@ -46,7 +46,7 @@ class LLMService:
46
  self.hf_exhausted = False
47
 
48
  # Groq Fallback Client (used when Hugging Face tokens/credits are depleted)
49
- self.groq_api_key = os.getenv("GROQ_API_KEY_2") or os.getenv("GROQ_API_KEY")
50
  self.groq_client: Optional[AsyncOpenAI] = None
51
  self.groq_chat_model = os.getenv("GROQ_CHAT_MODEL", "openai/gpt-oss-120b")
52
  self.groq_retrieval_model = os.getenv("GROQ_RETRIEVAL_MODEL", "openai/gpt-oss-120b")
@@ -1195,9 +1195,9 @@ Return only the final user-facing answer."""
1195
  if any(b in q_lower for b in brief_triggers) and not deep_analysis:
1196
  max_out_tokens = 500
1197
  elif deep_analysis:
1198
- max_out_tokens = 2048
1199
  else:
1200
- max_out_tokens = 1100
1201
 
1202
  messages = [{"role": "system", "content": system_prompt}]
1203
  messages.extend(chat_history)
@@ -1279,7 +1279,7 @@ Return only the final user-facing answer."""
1279
  model=self.groq_chat_model,
1280
  messages=groq_messages,
1281
  temperature=0.2,
1282
- max_tokens=max_out_tokens,
1283
  stream=True,
1284
  )
1285
  first_chunk = None
@@ -1386,7 +1386,7 @@ WEB SEARCH SOURCING & LINK VERIFICATION RULES:
1386
  - NEVER invent, hallucinate, or construct speculative URLs. Every URL MUST match an exact URL from the verified LIVE WEB SEARCH EVIDENCE above.
1387
  2. Embed verified clickable Markdown links directly throughout your answer: [Source Title](URL).
1388
  3. At the end of your response, ALWAYS include a dedicated sources section:
1389
- ### 馃寪 丕賱賲氐丕丿乇 賵丕賱乇賵丕亘胤 匕丕鬲 丕賱氐賱丞:
1390
  - [Source Title 1](URL 1) - 賵氐賮 丿賯賷賯 賵賲禺鬲氐乇 賱賱賲丨鬲賵賶 丕賱賮毓賱賷 丕賱賲賵噩賵丿 丿丕禺賱 丕賱乇丕亘胤
1391
  - [Source Title 2](URL 2) - 賵氐賮 丿賯賷賯 賵賲禺鬲氐乇 賱賱賲丨鬲賵賶 丕賱賮毓賱賷 丕賱賲賵噩賵丿 丿丕禺賱 丕賱乇丕亘胤
1392
  """
 
46
  self.hf_exhausted = False
47
 
48
  # Groq Fallback Client (used when Hugging Face tokens/credits are depleted)
49
+ self.groq_api_key = os.getenv("GROQ_API_KEY_3") or os.getenv("GROQ_API_KEY_2") or os.getenv("GROQ_API_KEY")
50
  self.groq_client: Optional[AsyncOpenAI] = None
51
  self.groq_chat_model = os.getenv("GROQ_CHAT_MODEL", "openai/gpt-oss-120b")
52
  self.groq_retrieval_model = os.getenv("GROQ_RETRIEVAL_MODEL", "openai/gpt-oss-120b")
 
1195
  if any(b in q_lower for b in brief_triggers) and not deep_analysis:
1196
  max_out_tokens = 500
1197
  elif deep_analysis:
1198
+ max_out_tokens = 1500
1199
  else:
1200
+ max_out_tokens = 800
1201
 
1202
  messages = [{"role": "system", "content": system_prompt}]
1203
  messages.extend(chat_history)
 
1279
  model=self.groq_chat_model,
1280
  messages=groq_messages,
1281
  temperature=0.2,
1282
+ max_tokens=min(max_out_tokens, 800),
1283
  stream=True,
1284
  )
1285
  first_chunk = None
 
1386
  - NEVER invent, hallucinate, or construct speculative URLs. Every URL MUST match an exact URL from the verified LIVE WEB SEARCH EVIDENCE above.
1387
  2. Embed verified clickable Markdown links directly throughout your answer: [Source Title](URL).
1388
  3. At the end of your response, ALWAYS include a dedicated sources section:
1389
+ ### 丕賱賲氐丕丿乇 賵丕賱乇賵丕亘胤 匕丕鬲 丕賱氐賱丞:
1390
  - [Source Title 1](URL 1) - 賵氐賮 丿賯賷賯 賵賲禺鬲氐乇 賱賱賲丨鬲賵賶 丕賱賮毓賱賷 丕賱賲賵噩賵丿 丿丕禺賱 丕賱乇丕亘胤
1391
  - [Source Title 2](URL 2) - 賵氐賮 丿賯賷賯 賵賲禺鬲氐乇 賱賱賲丨鬲賵賶 丕賱賮毓賱賷 丕賱賲賵噩賵丿 丿丕禺賱 丕賱乇丕亘胤
1392
  """
eval/results/answers.json CHANGED
@@ -330,5 +330,362 @@
330
  "ttfb_s": 19.839,
331
  "error": null,
332
  "id": "Q19"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  }
334
  ]
 
330
  "ttfb_s": 19.839,
331
  "error": null,
332
  "id": "Q19"
333
+ },
334
+ {
335
+ "answer": "Based on the provided document context, there is **no information** regarding \"closed models like ChatGPT,\" \"fusion-module knowledge injection,\" or specific workarounds for closed-source models.\n\nThe retrieved sections discuss:\n1. **LLM-KG Fusion Reasoning:** Combining LLM and KG encoders with a synergized reasoning module, noting that these modules may introduce extra parameters and computational costs while lacking interpretability (Section: \"7 FUTURE DIRECTIONS AND MILESTONES\", Page: 20).\n2. **LLMs as Agents for KG Reasoning:** A flexible framework that does not require additional training cost and is interpretable (Section: \"7 FUTURE DIRECTIONS AND MILESTONES\", Page: 20).\n3. **KG-enhanced LLM Interpretability:** Using KGs for probing and analyzing LLMs (Section: \"4.4 KG-enhanced LLM Interpretability\", Page: 10).\n\nHowever, the text does not distinguish between open and closed models, nor does it mention ChatGPT or specific limitations of closed models regarding fusion modules.\n\nTherefore, the provided document context does not contain enough information to answer this reliably.",
336
+ "stages": [
337
+ {
338
+ "stage": "retrieved",
339
+ "duration": 13.22,
340
+ "nodes": 4,
341
+ "docs": 1
342
+ }
343
+ ],
344
+ "used_web": false,
345
+ "used_arxiv": false,
346
+ "latency_s": 54.356,
347
+ "ttfb_s": 19.133,
348
+ "error": null,
349
+ "id": "Q20"
350
+ },
351
+ {
352
+ "answer": "Based on the provided document context, the paper proposes unifying Large Language Models (LLMs) and Knowledge Graphs (KGs) primarily through two distinct methodological approaches that address different stages of the model lifecycle: **KG-enhanced Pre-training/Instruction-tuning** and **KG-enhanced Inference (specifically Retrieval-Augmented Generation)**.\n\nHere are the main ways and how they relate to each other:\n\n### 1. KG-Enhanced Pre-training and Instruction-Tuning\n* **Method:** This approach involves fusing knowledge into the LLM during the training phase. The document mentions \"KGs Instruction-tuning\" which leverages knowledge from KGs for downstream tasks.\n* **Mechanism:** It typically involves retraining the model to incorporate graph structures or triples directly into the model's parameters.\n* **Limitation:** The document explicitly states that this method is \"time-consuming and requires lots of resources\" because it necessitates retraining. Furthermore, it does not permit updates to the incorporated knowledge without retraining, meaning the model may not generalize well to unseen or changing knowledge during inference [Page 9].\n\n### 2. KG-Enhanced LLM Inference (Retrieval-Augmented Knowledge Fusion)\n* **Method:** This approach keeps the knowledge space (KG) and text space (LLM) separate and injects knowledge dynamically during the inference stage.\n* **Mechanism:** The primary technique highlighted is **Retrieval-Augmented Generation (RAG)**. As described in Section 4.2.1, RAG combines non-parametric modules (for retrieval) and parametric modules (the LLM).\n * **Retrieval:** Given an input, the system searches for relevant knowledge (e.g., KG triples or documents) from a large corpus using methods like MIPS (Maximum Inner Product Search).\n * **Fusion:** The retrieved knowledge is treated as hidden variables or additional context and fed into the LLM generator (e.g., Seq2Seq LLMs) to guide the output.\n* **Advantage:** This method allows the model to access up-to-date real-world knowledge without retraining. It is particularly effective for Question Answering (QA) tasks where capturing both semantic meaning and current facts is crucial. The document notes that RAG outperforms parametric-only baselines in open-domain QA by generating more specific, diverse, and factual text [Page 9].\n\n### How They Relate to Each Other\nThe two approaches are complementary but address different bottlenecks in the LLM-KG integration pipeline:\n\n1. **Static vs. Dynamic Knowledge:**\n * **Pre-training/Instruction-tuning** embeds knowledge statically into the model's weights. It is effective for stable, foundational knowledge but lacks flexibility for updates.\n * **Inference-time Retrieval (RAG)** provides dynamic access to external knowledge. It solves the \"real-world knowledge is subject to change\" problem by allowing the model to query a separate, updatable knowledge base at inference time [Page 9].\n\n2. **Resource Efficiency vs. Accuracy:**\n * Pre-training is resource-intensive (high compute for retraining) but may offer deeper integration of knowledge into the model's reasoning capabilities.\n * Inference-time fusion is more resource-efficient in terms of training (no retraining needed) and allows for real-time updates, though it relies on the quality of the retrieval mechanism and the LLM's ability to fuse external context with its internal parameters.\n\n3. **Complementary Roles:**\n * The document suggests that while pre-training methods \"could effectively fuse knowledge,\" they fail to handle unseen knowledge during inference. Therefore, inference-time methods like RAG are proposed as a solution to this specific limitation, ensuring the model can generalize to new or changing knowledge without the overhead of retraining [Page 9].\n\nIn summary, the paper presents **pre-training** as a method for deep, static knowledge integration and **inference-time retrieval (RAG)** as a method for dynamic, up-to-date knowledge injection. They relate as two ends of a spectrum: one optimizing for deep internalization of knowledge (at high training cost), and the other optimizing for flexibility and currency of knowledge (at inference time).\n\n*(Section: \"4.2 KG-enhanced LLM Inference\", Page: 9)*\n*(Section: \"2 BACKGROUND\", Page: 2)*",
353
+ "stages": [
354
+ {
355
+ "stage": "retrieved",
356
+ "duration": 16.12,
357
+ "nodes": 4,
358
+ "docs": 1
359
+ }
360
+ ],
361
+ "used_web": false,
362
+ "used_arxiv": false,
363
+ "latency_s": 56.564,
364
+ "ttfb_s": 19.86,
365
+ "error": null,
366
+ "id": "Q21"
367
+ },
368
+ {
369
+ "answer": "Based on the provided document context, the motivation for combining Large Language Models (LLMs) and Knowledge Graphs (KGs) stems from their complementary nature, where each technology addresses the limitations of the other.\n\n**Strengths and Weaknesses of LLMs:**\n* **Strengths:** LLMs excel in generating human-like text and understanding natural language. They possess strong contextual understanding capabilities.\n* **Weaknesses:** Pure LLMs suffer from persistent issues such as hallucination, shallow factual grounding, and limited relational reasoning. Additionally, linearizing entire KGs as input for LLMs is often impossible due to size constraints, and the linearization process may lose underlying structural information from the KGs.\n\n**Strengths and Weaknesses of KGs:**\n* **Strengths:** KGs are structured databases that capture and represent knowledge in a structured manner. They provide explicit, semantic structure and can perform knowledge-driven search.\n* **Weaknesses:** While the text does not explicitly list \"weaknesses\" of KGs in isolation, it implies that KGs alone lack the natural language generation and contextual understanding capabilities that LLMs provide. Furthermore, dynamic KG maintenance and real-time synchronization are identified as critical bottlenecks that require efficient mechanisms to keep the graph current without prohibitive computational overhead.\n\n**Motivation for Combination:**\nThe document argues that these technologies are complementary. By combining them, one can create a powerful system that benefits from the **contextual understanding of LLMs** and the **structured knowledge representation of KGs**. This synergy aims to:\n1. Mitigate hallucination and improve factual consistency by grounding LLMs in explicit KG structures.\n2. Enhance relational reasoning by allowing LLMs to reason over structured graph data.\n3. Overcome individual limitations by leveraging the strengths of both technologies throughout the model lifecycle, from pre-training to inference.\n\n(Section: \"6 SYNERGIZED LLMs + KGs\", Page: 18)\n(Section: \"ACKNOWLEDGMENTS\", Page: 21)\n(Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1)",
370
+ "stages": [
371
+ {
372
+ "stage": "retrieved",
373
+ "duration": 13.99,
374
+ "nodes": 4,
375
+ "docs": 1
376
+ }
377
+ ],
378
+ "used_web": false,
379
+ "used_arxiv": false,
380
+ "latency_s": 57.089,
381
+ "ttfb_s": 17.971,
382
+ "error": null,
383
+ "id": "Q22"
384
+ },
385
+ {
386
+ "answer": "Based on the provided document context, there is **no information** regarding how existing knowledge graphs are grouped or classified into \"specialized\" versus \"general-knowledge\" kinds.\n\nThe retrieved sections (specifically Section 4.1 \"KG-enhanced LLM Pre-training\" and Section 4 \"KG-ENHANCED LLMs\") focus exclusively on **methods for integrating Knowledge Graphs (KGs) into Large Language Models (LLMs)**. The text details specific pre-training objectives and input integration techniques, such as:\n\n* **Text-knowledge alignment loss:** Used by models like ERNIE to predict alignment links between textual tokens and entities in KGs (Section: \"4.1 KG-enhanced LLM Pre-training\", Page: 8).\n* **Entity embedding incorporation:** Used by KALM to enhance input tokens with entity embeddings (Section: \"4.1 KG-enhanced LLM Pre-training\", Page: 8).\n* **Joint training objectives:** Used by KEPLER to combine KG embedding training and masked token pre-training (Section: \"4.1 KG-enhanced LLM Pre-training\", Page: 8).\n* **Direct concatenation:** Used by ERNIE 3.0 to represent KG triples as token sequences and concatenate them with sentences (Section: \"4.1 KG-enhanced LLM Pre-training\", Page: 8).\n\nThe document does not provide a taxonomy, classification scheme, or distinction between different types of knowledge graphs (e.g., specialized vs. general). Therefore, I cannot answer this question using the supplied evidence.",
387
+ "stages": [
388
+ {
389
+ "stage": "retrieved",
390
+ "duration": 14.97,
391
+ "nodes": 4,
392
+ "docs": 1
393
+ }
394
+ ],
395
+ "used_web": false,
396
+ "used_arxiv": false,
397
+ "latency_s": 55.966,
398
+ "ttfb_s": 18.618,
399
+ "error": null,
400
+ "id": "Q23"
401
+ },
402
+ {
403
+ "answer": "Based on the provided document context, the choice between baking Knowledge Graph (KG) knowledge into LLM training (pre-training/instruction-tuning) versus supplying it at inference time (retrieval-augmented) depends primarily on the **stability of the knowledge** and the **resource constraints** of the application.\n\nHere is the breakdown of when to prefer each approach:\n\n### 1. Prefer Baking KG Knowledge into Training (Pre-training/Instruction-Tuning)\nYou should prefer integrating KGs during the training phase when:\n* **The knowledge is static or changes slowly:** If the factual knowledge required by the model does not change frequently, baking it into the model weights is efficient.\n* **Deep relational reasoning is required:** The document notes that joint KG-enhanced pre-training, where graph triples are interleaved with textual corpora, consistently outperforms post-hoc retrieval methods on benchmarks requiring **multi-hop reasoning** (Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1).\n* **Instruction-tuning for specific downstream tasks:** KG instruction-tuning can better leverage KG knowledge for specific downstream tasks, although this requires retraining (Section: \"4.3 Comparison between KG-enhanced LLM Pre-training and Inference\", Page: 9).\n\n### 2. Prefer Supplying KG Knowledge at Inference Time (Retrieval-Augmented Generation)\nYou should prefer injecting knowledge during inference when:\n* **The knowledge is dynamic or subject to change:** The document explicitly states that real-world knowledge is subject to change. Training-based approaches **do not permit updates** to incorporated knowledge without retraining the model, which is time-consuming and resource-intensive (Section: \"4.2 KG-enhanced LLM Inference\", Page: 9).\n* **Access to up-to-date information is critical:** Inference-time methods, such as Retrieval-Augmented Knowledge Fusion (RAG), allow the model to retrieve relevant, current knowledge from a large corpus at the time of query, ensuring the model generalizes well to unseen or newly added knowledge (Section: \"4.2 KG-enhanced LLM Inference\", Page: 9).\n* **Resource efficiency for updates:** While initial setup may require infrastructure, avoiding the high cost of retraining the entire LLM for every knowledge update makes inference-time injection preferable for dynamic environments (Section: \"4.2 KG-enhanced LLM Inference\", Page: 9).\n\n### Summary Comparison\n\n| Feature | Baking into Training (Pre-training) | Supplying at Inference (RAG/Retrieval) |\n| :--- | :--- | :--- |\n| **Knowledge Stability** | Best for static, stable knowledge | Best for dynamic, changing knowledge |\n| **Update Cost** | High (Requires retraining) | Low (Update the external KG/corpus) |\n| **Reasoning Depth** | Superior for multi-hop relational reasoning | Good for factual lookup, may struggle with complex multi-hop without specific graph-aware retrieval |\n| **Resource Intensity** | High during training, low at inference | Moderate at inference (retrieval latency), low training cost |\n| **Key Limitation** | Cannot update knowledge without retraining | May not capture deep structural relationships as effectively as joint pre-training |\n\n**Conclusion:**\nUse **training-time integration** for foundational, stable knowledge where deep relational reasoning is paramount. Use **inference-time integration** for applications requiring up-to-date facts, frequent knowledge updates, or where the cost of retraining is prohibitive. (Section: \"4.2 KG-enhanced LLM Inference\", Page: 9; Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1)",
404
+ "stages": [
405
+ {
406
+ "stage": "retrieved",
407
+ "duration": 13.98,
408
+ "nodes": 4,
409
+ "docs": 1
410
+ }
411
+ ],
412
+ "used_web": false,
413
+ "used_arxiv": false,
414
+ "latency_s": 55.019,
415
+ "ttfb_s": 17.46,
416
+ "error": null,
417
+ "id": "Q24"
418
+ },
419
+ {
420
+ "answer": "Based on the provided document context, the specific tasks for using Large Language Models (LLMs) to improve Knowledge Graphs (KGs) are **not explicitly listed** in the retrieved sections (Introduction and Background).\n\nThe available text focuses on:\n1. **The limitations of LLMs:** Hallucination, lack of interpretability, and poor generalization to specific domains (Page 2).\n2. **The limitations of KGs:** Difficulty in construction, inability to handle incomplete/dynamic data, and failure to model unseen entities (Page 2).\n3. **The general goal:** Unifying LLMs and KGs to leverage their complementary advantages (Page 1).\n\nWhile the Global Knowledge Memory mentions that the roadmap surveys \"hybrid architectures\" and \"joint LLM-KG pre-training,\" the specific *tasks* (e.g., link prediction, entity alignment, knowledge graph completion) are not detailed in the provided excerpt.\n\n**Conclusion:**\nThe provided document context does not contain enough information to list the specific tasks the paper covers for using LLMs to improve KGs. It only establishes the motivation for unification due to the complementary weaknesses of both technologies.",
421
+ "stages": [
422
+ {
423
+ "stage": "retrieved",
424
+ "duration": 13.95,
425
+ "nodes": 4,
426
+ "docs": 1
427
+ }
428
+ ],
429
+ "used_web": false,
430
+ "used_arxiv": false,
431
+ "latency_s": 55.11,
432
+ "ttfb_s": 17.492,
433
+ "error": null,
434
+ "id": "Q25"
435
+ },
436
+ {
437
+ "answer": "Based on the provided document context, specifically Section 5.3 \"LLM-augmented KG Construction,\" building a Knowledge Graph (KG) with Large Language Models (LLMs) involves several distinct approaches and stages, ranging from using LLMs as encoders to prompt-based generation. The document highlights a specific framework called **PaG (Prompt-based LLMs for KG Completion)** and compares it with **PaE (LLMs as Encoders)**.\n\nHere are the key stages and approaches described:\n\n### 1. Prompt-Based KG Completion (PaG)\nThis approach uses LLMs directly to predict missing entities in a KG triple.\n* **Task Definition:** Given a **head entity** and a **relation**, the LLM predicts the **tail entity** from a set of candidates (e.g., 100 candidates).\n* **Prompt Engineering:** For closed-source LLMs (like ChatGPT or GPT-4), this stage involves designing customized prompts. These prompts typically include:\n * Task description.\n * Few-shot examples.\n * Test input (the head entity and relation).\n* **Example:**\n * *Head:* Charlie's Angels\n * *Relation:* genre of\n * *Tail Prediction:* Comedy\n * *Head:* Charlie's Angels\n * *Relation:* prequel of\n * *Tail Prediction:* Charlie's Angels: Full Throttle\n * (Section: \"5.3 LLM-augmented KG Construction\", Page: 14)\n\n![Figure 18: The framework of prompt-based PaG for KG Completion](/static/fig_p14_18_25585a.png)\n\n### 2. LLMs as Encoders (PaE)\nThis approach treats the LLM as a feature extractor or encoder.\n* **Encoding Stage:** The LLM encodes the input (entities/relations) into a representation.\n* **Prediction Head:** An additional prediction head is placed on top of the LLM's encoded representation to make the final prediction.\n* **Fine-tuning:** This framework is easier to fine-tune because only the prediction heads need to be optimized while the LLM parameters can be frozen.\n* **Limitations:**\n * It requires computing a score for every candidate in the KG during inference, which is computationally expensive.\n * It cannot generalize to unseen entities.\n * It requires access to the LLM's internal representations, which are not available for closed-source models like GPT-4.\n * (Section: \"5.3 LLM-augmented KG Construction\", Page: 14)\n\n### 3. Specific Model Architectures (e.g., KG-S2S)\nThe document mentions **KG-S2S** as a comprehensive framework for various KG Completion (KGC) tasks (Static, Temporal, Few-shot).\n* **Architecture:** It employs a straightforward **T5 small** architecture, randomly initialized rather than using pre-trained weights.\n* **Data Reformulation:** It reformulates standard KG triples $(h, r, t)$ into quadruples $(h, r, t, m)$, where $m$ is an additional \"condition\" element (e.g., time for temporal KGC). This allows unification across different KGC tasks.\n* **Techniques Used:**\n * Entity description.\n * Soft prompt.\n * Seq2Seq Dropout.\n * **Constrained Decoding:** To ensure the generated entities are valid (i.e., exist in the KG).\n * (Section: \"5.3 LLM-augmented KG Construction\", Page: 14)\n\n### Summary of Comparison: PaE vs. PaG\n| Feature | PaE (LLMs as Encoders) | PaG (Prompt-based) |\n| :--- | :--- | :--- |\n| **Mechanism** | LLM encodes input; separate head predicts. | LLM directly generates/predicts tail entity via prompt. |\n| **Fine-tuning** | Easier (freeze LLM, train head). | Relies on prompt engineering (for closed-source) or fine-tuning. |\n| **Inference Cost** | High (scores all candidates). | Lower (generates directly). |\n| **Unseen Entities** | Cannot generalize. | Can potentially handle (depending on prompt/model). |\n| **Closed-Source LLMs** | Not compatible (needs internal reps). | Compatible (uses API/prompting). |\n| (Section: \"5.3 LLM-augmented KG Construction\", Page: 14) | | |\n\nThe document emphasizes that **PaG** is particularly suitable for closed-source LLMs and avoids the computational bottleneck of scoring all candidates, while **PaE** is more efficient for open-source models where fine-tuning is feasible.",
438
+ "stages": [
439
+ {
440
+ "stage": "retrieved",
441
+ "duration": 1.39,
442
+ "nodes": 4,
443
+ "docs": 1
444
+ }
445
+ ],
446
+ "used_web": false,
447
+ "used_arxiv": false,
448
+ "latency_s": 49.728,
449
+ "ttfb_s": 16.37,
450
+ "error": null,
451
+ "id": "Q26"
452
+ },
453
+ {
454
+ "answer": "Based on the provided document context, specifically Section 6.2 \"Synergized Reasoning,\" the text introduces the concept of synergized reasoning to better utilize knowledge from text corpora and knowledge graphs (KGs). However, **the provided excerpt cuts off immediately after the introductory sentence of Section 6.2** (\"To better utilize the knowledge from text corpu...\").\n\nTherefore, the specific details comparing the **two main styles** of synergized reasoning (e.g., their specific strengths, weaknesses, or architectural differences) are **not present** in the retrieved context. The document context provided only covers:\n1. **Synergized Knowledge Representation** (Section 6.1, Page 19), which discusses models like ERNIE, BERT-MK, CokeBERT, JAKET, KEPLER, JointGT, DRAGON, and HKLM.\n2. **LLM-augmented KG Completion** (Section 5.2, Page 12), which discusses methods like kNN-KGE.\n\nWhile the Global Knowledge Memory mentions that \"Joint KG-enhanced pre-training... consistently outperforms post-hoc retrieval methods on benchmarks that require multi-hop reasoning,\" this is a general finding and does not detail the specific \"two main styles\" of synergized *reasoning* as requested, nor does it provide the comparative strengths and weaknesses of those specific styles as defined in the missing part of Section 6.2.\n\n**Conclusion:**\nThe provided document context does not contain enough information to answer this reliably, as the specific content describing the two main styles of synergized reasoning and their comparative strengths/weaknesses is truncated.",
455
+ "stages": [
456
+ {
457
+ "stage": "retrieved",
458
+ "duration": 1.16,
459
+ "nodes": 4,
460
+ "docs": 1
461
+ }
462
+ ],
463
+ "used_web": false,
464
+ "used_arxiv": false,
465
+ "latency_s": 39.546,
466
+ "ttfb_s": 6.961,
467
+ "error": null,
468
+ "id": "Q27"
469
+ },
470
+ {
471
+ "answer": "Based on the provided document context, the paper outlines several open challenges and expected milestones for the future of unifying Large Language Models (LLMs) and Knowledge Graphs (KGs).\n\n**Open Challenges**\n\nThe document identifies the following key challenges that need to be addressed:\n\n1. **Dynamic KG Updates and Synchronization:** Real-time applications require efficient mechanisms to keep knowledge graphs current. The document highlights that dynamic KG maintenance is a critical bottleneck, necessitating novel indexing, incremental update, and caching strategies to enable low-latency interaction without prohibitive computational overhead (Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1).\n2. **Direct Structural Understanding:** Current methods often rely on linearizing KGs into text, which can lose underlying information and is not scalable for large graphs. The paper calls for developing LLMs that can directly understand KG structure and reason over it, rather than relying solely on linearized inputs (Section: \"8 CONCLUSION\", Page: 21).\n3. **Evaluation Standards:** There is a need for evaluation frameworks that jointly assess language fluency, factual accuracy, and graph-based reasoning. Existing metrics must combine linguistic quality with graph-based correctness to fully capture the benefits of unification (Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1).\n4. **Scalability:** The roadmap emphasizes scalability as a major research challenge, particularly in handling the integration of large-scale KGs with LLMs (Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1).\n\n**Expected Milestones**\n\nThe paper proposes a three-stage roadmap for the unification of KGs and LLMs, as illustrated in Figure 26:\n\n![Figure 26. The milestones of unifying KGs and LLMs.](https://i.imgur.com/placeholder_fig26.png)\n*(Note: The image URL is a placeholder as the specific URL was not provided in the text snippet, but the figure is referenced in the document context.)*\n\n1. **Stage 1: KG-enhanced LLMs:** This stage focuses on integrating KGs into the LLM lifecycle, specifically through KG-enhanced pre-training, instruction-tuning, inference, and improving interpretability (Section: \"Unifying Large Language Models and Knowledge Graphs: A Roadmap\", Page: 1).\n2. **Stage 2: L",
472
+ "stages": [
473
+ {
474
+ "stage": "retrieved",
475
+ "duration": 2.88,
476
+ "nodes": 6,
477
+ "docs": 1
478
+ }
479
+ ],
480
+ "used_web": false,
481
+ "used_arxiv": false,
482
+ "latency_s": 49.826,
483
+ "ttfb_s": 14.192,
484
+ "error": null,
485
+ "id": "Q28"
486
+ },
487
+ {
488
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the document discusses various models that use text and knowledge graphs (such as DRAGON, which uses \"text segments and relevant KG subgraphs\" [Page 19]), it does not specify the size of any specific Wikipedia-derived corpus or the number of unsupervised graph-text training examples contained within it.",
489
+ "stages": [
490
+ {
491
+ "stage": "retrieved",
492
+ "duration": 14.02,
493
+ "nodes": 4,
494
+ "docs": 1
495
+ }
496
+ ],
497
+ "used_web": false,
498
+ "used_arxiv": false,
499
+ "latency_s": 57.494,
500
+ "ttfb_s": 18.851,
501
+ "error": null,
502
+ "id": "Q29"
503
+ },
504
+ {
505
+ "answer": "Based on the provided document context, the paper does not describe a single \"unified synergized framework\" with a specific, fixed number of layers that applies to all models. Instead, it categorizes integration techniques and presents specific architectural examples, such as the **ERNIE** model, which uses a dual-encoder architecture.\n\nIn the specific example of the **Text-Knowledge Fusion Module** (illustrated in Fig. 23 for the ERNIE model), the architecture consists of two main encoder components with variable layer counts:\n\n1. **T-encoder (Text Encoder):** This component encodes the input text. The diagram indicates it has **N Layers**.\n2. **K-encoder (Knowledge Encoder):** This component processes the Knowledge Graph. The diagram indicates it has **M Layers**.\n\nThese two encoders are then fused to jointly represent knowledge from both sources. The document does not specify exact numerical values for N and M for a single universal framework, as these are parameters of specific model implementations like ERNE rather than a rigid, fixed-layer count for the entire roadmap's proposed unification strategy.\n\n(Section: \"6 SYNERGIZED LLMs + KGs\", Page: 19)",
506
+ "stages": [
507
+ {
508
+ "stage": "retrieved",
509
+ "duration": 10.23,
510
+ "nodes": 6,
511
+ "docs": 1
512
+ }
513
+ ],
514
+ "used_web": false,
515
+ "used_arxiv": false,
516
+ "latency_s": 54.862,
517
+ "ttfb_s": 18.598,
518
+ "error": null,
519
+ "id": "Q30"
520
+ },
521
+ {
522
+ "answer": "The provided document context does not contain enough information to answer this reliably. The retrieved sections (specifically the \"ACKNOWLEDGMENTS\" section on Page 21) are truncated and do not display the specific grant numbers or funding details from the Chinese National Natural Science Foundation.",
523
+ "stages": [
524
+ {
525
+ "stage": "retrieved",
526
+ "duration": 4.83,
527
+ "nodes": 4,
528
+ "docs": 1
529
+ }
530
+ ],
531
+ "used_web": false,
532
+ "used_arxiv": false,
533
+ "latency_s": 55.174,
534
+ "ttfb_s": 16.443,
535
+ "error": null,
536
+ "id": "Q31"
537
+ },
538
+ {
539
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the document discusses \"LLM-augmented KGs\" and mentions \"completion\" as a sub-topic (Section: 'Unifying Large Language Models and Knowledge Graphs: A Roadmap', Page: 1), it does not specify:\n1. The specific size of the T5 architecture used in any scalable KG completion model.\n2. Whether such a model is initialized from pretrained weights.\n\nThe retrieved text provides a high-level roadmap and categorization of integration techniques but lacks the specific technical implementation details regarding model architecture sizes and initialization strategies for specific completion models.",
540
+ "stages": [
541
+ {
542
+ "stage": "retrieved",
543
+ "duration": 2.97,
544
+ "nodes": 5,
545
+ "docs": 1
546
+ }
547
+ ],
548
+ "used_web": false,
549
+ "used_arxiv": false,
550
+ "latency_s": 52.377,
551
+ "ttfb_s": 17.05,
552
+ "error": null,
553
+ "id": "Q32"
554
+ },
555
+ {
556
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the text mentions **KG-BERT** in the context of \"Separated Encoding\" and notes that StAR was designed to avoid the \"combinatorial explosion of textual encoding approaches, e.g., KG-BERT\" (Section: \"5.2 LLM-augmented KG Completion\", Page: 13), it does not provide any specific F1 scores, accuracy metrics, or numerical benchmark results for KG-BERT on link-prediction tasks.",
557
+ "stages": [
558
+ {
559
+ "stage": "retrieved",
560
+ "duration": 13.65,
561
+ "nodes": 4,
562
+ "docs": 1
563
+ }
564
+ ],
565
+ "used_web": false,
566
+ "used_arxiv": false,
567
+ "latency_s": 56.005,
568
+ "ttfb_s": 18.49,
569
+ "error": null,
570
+ "id": "Q33"
571
+ },
572
+ {
573
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the document mentions **ERNIE** in Figure 2 as a representative encoder-only LLM (Page 3) and discusses **KG-enhanced LLM pre-training** in Section 4.1 (Page 7), it does not provide specific details about the computational cost, such as the number of GPU hours required to pretrain any specific knowledge-enhanced ERNE model. The text focuses on the categorization of methods (integrating KGs into training objective, inputs, or instruction tuning) rather than specific experimental resource metrics for ERNIE.",
574
+ "stages": [
575
+ {
576
+ "stage": "retrieved",
577
+ "duration": 13.91,
578
+ "nodes": 4,
579
+ "docs": 1
580
+ }
581
+ ],
582
+ "used_web": false,
583
+ "used_arxiv": false,
584
+ "latency_s": 58.686,
585
+ "ttfb_s": 18.794,
586
+ "error": null,
587
+ "id": "Q34"
588
+ },
589
+ {
590
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the document discusses the unification of Large Language Models (LLMs) and Knowledge Graphs (KGs), covering topics such as KG-enhanced LLMs, LLM-augmented KGs, and specific tasks like question answering and graph-to-text generation (Section: \"5.5 LLM-augmented KG Question Answering\", Page: 17; Section: \"1 INTRODUCTION\", Page: 1), the retrieved excerpts do not mention **privacy risks**, **personal data protection**, or specific **mitigation strategies** for privacy concerns.\n\nThe available text focuses on technical architectures, performance improvements in factual consistency and relational reasoning, and challenges related to dynamic KG maintenance and computational overhead, but does not address the privacy implications of feeding personal data from KGs to LLMs.",
591
+ "stages": [
592
+ {
593
+ "stage": "retrieved",
594
+ "duration": 13.98,
595
+ "nodes": 4,
596
+ "docs": 1
597
+ }
598
+ ],
599
+ "used_web": false,
600
+ "used_arxiv": false,
601
+ "latency_s": 54.522,
602
+ "ttfb_s": 18.258,
603
+ "error": null,
604
+ "id": "Q35"
605
+ },
606
+ {
607
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the document discusses Retrieval-Augmented Generation (RAG) and mentions that dynamic KG maintenance and low-latency interaction are critical bottlenecks (Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1; Section: \"4.2 KG-enhanced LLM Inference\", Page: 9), it does not mention a specific system named \"EMAT\" nor does it provide specific latency measurements in milliseconds for EMAT or the original RAG system.",
608
+ "stages": [
609
+ {
610
+ "stage": "retrieved",
611
+ "duration": 1.44,
612
+ "nodes": 4,
613
+ "docs": 1
614
+ }
615
+ ],
616
+ "used_web": false,
617
+ "used_arxiv": false,
618
+ "latency_s": 23.935,
619
+ "ttfb_s": 15.027,
620
+ "error": null,
621
+ "id": "Q36"
622
+ },
623
+ {
624
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nWhile the document discusses the general benefits of integrating Knowledge Graphs (KGs) with Large Language Models (LLMs)鈥攕uch as reducing hallucination and improving factual consistency (Section: \"Executive Knowledge Dossier & Core Findings\", Page: 1)鈥攁nd provides a roadmap for unifying them (Section: \"3 ROADMAP & CATEGORIZATION\", Page: 5), it does not provide specific empirical data or percentage reductions in hallucinations for GPT-4 combined with a KG. The retrieved sections focus on architectural frameworks, application examples (Table 1), and specific model descriptions like KG-S2S, but do not include the specific quantitative metric requested.",
625
+ "stages": [
626
+ {
627
+ "stage": "retrieved",
628
+ "duration": 1.12,
629
+ "nodes": 4,
630
+ "docs": 1
631
+ }
632
+ ],
633
+ "used_web": false,
634
+ "used_arxiv": false,
635
+ "latency_s": 56.2,
636
+ "ttfb_s": 15.959,
637
+ "error": null,
638
+ "id": "Q37"
639
+ },
640
+ {
641
+ "answer": "The provided document context does not contain enough information to answer this reliably.\n\nThe retrieved sections discuss the general roadmap for unifying Knowledge Graphs (KGs) and Large Language Models (LLMs), specific relation extraction models (such as TRE, BERT-MTB, Curriculum-RE, etc.), and a table of representative applications (including AutoGPT, but not specifically \"AutoKG\" with cost data). There is no mention of \"AutoKG\" as a specific tool with associated monetary costs, nor are there any details regarding the pricing or computational costs of running GPT-4 for KG construction in the provided text.",
642
+ "stages": [
643
+ {
644
+ "stage": "retrieved",
645
+ "duration": 1.05,
646
+ "nodes": 4,
647
+ "docs": 1
648
+ }
649
+ ],
650
+ "used_web": false,
651
+ "used_arxiv": false,
652
+ "latency_s": 55.182,
653
+ "ttfb_s": 17.008,
654
+ "error": null,
655
+ "id": "Q38"
656
+ },
657
+ {
658
+ "answer": "Based on the provided document context, there is **no information** regarding the specific open-source license restrictions (such as CC-BY-SA, CC0, or proprietary terms) for Wikidata or other Knowledge Graphs (KGs) mentioned.\n\nThe document mentions **Wikidata** [20], **YAGO** [31], and **NELL** [32] as examples of KGs that store facts in triples and offer accurate explicit knowledge (Section: \"2 BACKGROUND\", Page: 2). It also lists Wikidata in a table of representative applications (Section: \"3 ROADMAP & CATEGORIZATION\", Page: 5). However, it does not discuss the legal or licensing terms under which these datasets are distributed or used for training Large Language Models (LLMs).\n\nTherefore, I cannot answer this question using the provided document evidence.",
659
+ "stages": [
660
+ {
661
+ "stage": "retrieved",
662
+ "duration": 15.95,
663
+ "nodes": 4,
664
+ "docs": 1
665
+ }
666
+ ],
667
+ "used_web": false,
668
+ "used_arxiv": false,
669
+ "latency_s": 57.735,
670
+ "ttfb_s": 19.53,
671
+ "error": null,
672
+ "id": "Q39"
673
+ },
674
+ {
675
+ "answer": "Based on the provided document context, there is **no information** regarding the specific hyperparameters (such as the margin value) used or tested in the authors' experiments for **Pretrain-KGE**.\n\nThe document context provided only lists **Pretrain-KGE [94]** in **Table 3** as a representative method for \"LLM-augmented KG embedding\" using \"LLMs as Text Encoders\" from the year 2020 (Section: \"5.1 LLM-augmented KG Embedding\", Page: 11). It does not contain the experimental details, hyperparameter settings, or performance comparisons for this specific method.\n\nTo find this information, you would need to consult the original paper cited as reference **[94]** in the document.",
676
+ "stages": [
677
+ {
678
+ "stage": "retrieved",
679
+ "duration": 23.13,
680
+ "nodes": 4,
681
+ "docs": 1
682
+ }
683
+ ],
684
+ "used_web": false,
685
+ "used_arxiv": false,
686
+ "latency_s": 64.309,
687
+ "ttfb_s": 27.021,
688
+ "error": null,
689
+ "id": "Q40"
690
  }
691
  ]
eval/results/judged.json ADDED
@@ -0,0 +1,552 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "Q01",
4
+ "category": "Local",
5
+ "answerable": true,
6
+ "fact_recall": 0.6666666666666666,
7
+ "correct": true,
8
+ "contradicts_reference": false,
9
+ "faithfulness": 1.0,
10
+ "refused": false,
11
+ "cited_pages": [],
12
+ "citation_recall": 0.0,
13
+ "citation_precision": null,
14
+ "any_gt_page_cited": false
15
+ },
16
+ {
17
+ "id": "Q02",
18
+ "category": "Local",
19
+ "answerable": true,
20
+ "fact_recall": 0.5,
21
+ "correct": true,
22
+ "contradicts_reference": false,
23
+ "faithfulness": 0.3333333333333333,
24
+ "refused": false,
25
+ "cited_pages": [],
26
+ "citation_recall": 0.0,
27
+ "citation_precision": null,
28
+ "any_gt_page_cited": false
29
+ },
30
+ {
31
+ "id": "Q03",
32
+ "category": "Local",
33
+ "answerable": true,
34
+ "fact_recall": 0.0,
35
+ "correct": false,
36
+ "contradicts_reference": true,
37
+ "faithfulness": 0.0,
38
+ "refused": true,
39
+ "cited_pages": [],
40
+ "citation_recall": 0.0,
41
+ "citation_precision": null,
42
+ "any_gt_page_cited": false
43
+ },
44
+ {
45
+ "id": "Q04",
46
+ "category": "Local",
47
+ "answerable": true,
48
+ "fact_recall": 0.0,
49
+ "correct": false,
50
+ "contradicts_reference": false,
51
+ "faithfulness": 0.0,
52
+ "refused": true,
53
+ "cited_pages": [],
54
+ "citation_recall": 0.0,
55
+ "citation_precision": null,
56
+ "any_gt_page_cited": false
57
+ },
58
+ {
59
+ "id": "Q05",
60
+ "category": "Local",
61
+ "answerable": true,
62
+ "fact_recall": 0.0,
63
+ "correct": false,
64
+ "contradicts_reference": true,
65
+ "faithfulness": 0.0,
66
+ "refused": false,
67
+ "cited_pages": [],
68
+ "citation_recall": 0.0,
69
+ "citation_precision": null,
70
+ "any_gt_page_cited": false
71
+ },
72
+ {
73
+ "id": "Q06",
74
+ "category": "Local",
75
+ "answerable": true,
76
+ "fact_recall": 1.0,
77
+ "correct": true,
78
+ "contradicts_reference": false,
79
+ "faithfulness": 1.0,
80
+ "refused": false,
81
+ "cited_pages": [],
82
+ "citation_recall": 0.0,
83
+ "citation_precision": null,
84
+ "any_gt_page_cited": false
85
+ },
86
+ {
87
+ "id": "Q07",
88
+ "category": "Local",
89
+ "answerable": true,
90
+ "fact_recall": 0.0,
91
+ "correct": false,
92
+ "contradicts_reference": true,
93
+ "faithfulness": 0.0,
94
+ "refused": false,
95
+ "cited_pages": [],
96
+ "citation_recall": 0.0,
97
+ "citation_precision": null,
98
+ "any_gt_page_cited": false
99
+ },
100
+ {
101
+ "id": "Q08",
102
+ "category": "Local",
103
+ "answerable": true,
104
+ "fact_recall": 0.0,
105
+ "correct": false,
106
+ "contradicts_reference": true,
107
+ "faithfulness": 0.0,
108
+ "refused": false,
109
+ "cited_pages": [],
110
+ "citation_recall": 0.0,
111
+ "citation_precision": null,
112
+ "any_gt_page_cited": false
113
+ },
114
+ {
115
+ "id": "Q09",
116
+ "category": "Local",
117
+ "answerable": true,
118
+ "fact_recall": 0.0,
119
+ "correct": false,
120
+ "contradicts_reference": false,
121
+ "faithfulness": 0.0,
122
+ "refused": true,
123
+ "cited_pages": [
124
+ 16,
125
+ 17
126
+ ],
127
+ "citation_recall": 1.0,
128
+ "citation_precision": 0.5,
129
+ "any_gt_page_cited": true
130
+ },
131
+ {
132
+ "id": "Q10",
133
+ "category": "Local",
134
+ "answerable": true,
135
+ "fact_recall": 0.0,
136
+ "correct": false,
137
+ "contradicts_reference": true,
138
+ "faithfulness": 0.0,
139
+ "refused": false,
140
+ "cited_pages": [],
141
+ "citation_recall": 0.0,
142
+ "citation_precision": null,
143
+ "any_gt_page_cited": false
144
+ },
145
+ {
146
+ "id": "Q11",
147
+ "category": "Multi-hop",
148
+ "answerable": true,
149
+ "fact_recall": 0.0,
150
+ "correct": false,
151
+ "contradicts_reference": false,
152
+ "faithfulness": 0.0,
153
+ "refused": true,
154
+ "cited_pages": [],
155
+ "citation_recall": 0.0,
156
+ "citation_precision": null,
157
+ "any_gt_page_cited": false
158
+ },
159
+ {
160
+ "id": "Q12",
161
+ "category": "Multi-hop",
162
+ "answerable": true,
163
+ "fact_recall": 0.75,
164
+ "correct": true,
165
+ "contradicts_reference": false,
166
+ "faithfulness": 0.75,
167
+ "refused": false,
168
+ "cited_pages": [],
169
+ "citation_recall": 0.0,
170
+ "citation_precision": null,
171
+ "any_gt_page_cited": false
172
+ },
173
+ {
174
+ "id": "Q13",
175
+ "category": "Multi-hop",
176
+ "answerable": true,
177
+ "fact_recall": 0.0,
178
+ "correct": false,
179
+ "contradicts_reference": true,
180
+ "faithfulness": 0.0,
181
+ "refused": true,
182
+ "cited_pages": [],
183
+ "citation_recall": 0.0,
184
+ "citation_precision": null,
185
+ "any_gt_page_cited": false
186
+ },
187
+ {
188
+ "id": "Q14",
189
+ "category": "Multi-hop",
190
+ "answerable": true,
191
+ "fact_recall": 0.0,
192
+ "correct": false,
193
+ "contradicts_reference": true,
194
+ "faithfulness": 0.0,
195
+ "refused": false,
196
+ "cited_pages": [
197
+ 9,
198
+ 10
199
+ ],
200
+ "citation_recall": 0.5,
201
+ "citation_precision": 0.5,
202
+ "any_gt_page_cited": true
203
+ },
204
+ {
205
+ "id": "Q15",
206
+ "category": "Multi-hop",
207
+ "answerable": true,
208
+ "fact_recall": 0.0,
209
+ "correct": false,
210
+ "contradicts_reference": true,
211
+ "faithfulness": 0.0,
212
+ "refused": true,
213
+ "cited_pages": [],
214
+ "citation_recall": 0.0,
215
+ "citation_precision": null,
216
+ "any_gt_page_cited": false
217
+ },
218
+ {
219
+ "id": "Q16",
220
+ "category": "Multi-hop",
221
+ "answerable": true,
222
+ "fact_recall": 0.3333333333333333,
223
+ "correct": false,
224
+ "contradicts_reference": true,
225
+ "faithfulness": 0.3333333333333333,
226
+ "refused": false,
227
+ "cited_pages": [],
228
+ "citation_recall": 0.0,
229
+ "citation_precision": null,
230
+ "any_gt_page_cited": false
231
+ },
232
+ {
233
+ "id": "Q17",
234
+ "category": "Multi-hop",
235
+ "answerable": true,
236
+ "fact_recall": 1.0,
237
+ "correct": true,
238
+ "contradicts_reference": false,
239
+ "faithfulness": 0.42857142857142855,
240
+ "refused": false,
241
+ "cited_pages": [],
242
+ "citation_recall": 0.0,
243
+ "citation_precision": null,
244
+ "any_gt_page_cited": false
245
+ },
246
+ {
247
+ "id": "Q18",
248
+ "category": "Multi-hop",
249
+ "answerable": true,
250
+ "fact_recall": 1.0,
251
+ "correct": true,
252
+ "contradicts_reference": false,
253
+ "faithfulness": 0.75,
254
+ "refused": false,
255
+ "cited_pages": [],
256
+ "citation_recall": 0.0,
257
+ "citation_precision": null,
258
+ "any_gt_page_cited": false
259
+ },
260
+ {
261
+ "id": "Q19",
262
+ "category": "Multi-hop",
263
+ "answerable": true,
264
+ "fact_recall": 0.0,
265
+ "correct": false,
266
+ "contradicts_reference": true,
267
+ "faithfulness": 0.0,
268
+ "refused": true,
269
+ "cited_pages": [
270
+ 2,
271
+ 14
272
+ ],
273
+ "citation_recall": 0.0,
274
+ "citation_precision": 0.0,
275
+ "any_gt_page_cited": false
276
+ },
277
+ {
278
+ "id": "Q20",
279
+ "category": "Multi-hop",
280
+ "answerable": true,
281
+ "fact_recall": 0.0,
282
+ "correct": false,
283
+ "contradicts_reference": true,
284
+ "faithfulness": 0.0,
285
+ "refused": true,
286
+ "cited_pages": [],
287
+ "citation_recall": 0.0,
288
+ "citation_precision": null,
289
+ "any_gt_page_cited": false
290
+ },
291
+ {
292
+ "id": "Q21",
293
+ "category": "Global",
294
+ "answerable": true,
295
+ "fact_recall": 0.0,
296
+ "correct": false,
297
+ "contradicts_reference": true,
298
+ "faithfulness": 0.0,
299
+ "refused": false,
300
+ "cited_pages": [
301
+ 9
302
+ ],
303
+ "citation_recall": 0.0,
304
+ "citation_precision": 0.0,
305
+ "any_gt_page_cited": false
306
+ },
307
+ {
308
+ "id": "Q22",
309
+ "category": "Global",
310
+ "answerable": true,
311
+ "fact_recall": 0.25,
312
+ "correct": false,
313
+ "contradicts_reference": false,
314
+ "faithfulness": 0.47058823529411764,
315
+ "refused": false,
316
+ "cited_pages": [],
317
+ "citation_recall": 0.0,
318
+ "citation_precision": null,
319
+ "any_gt_page_cited": false
320
+ },
321
+ {
322
+ "id": "Q23",
323
+ "category": "Global",
324
+ "answerable": true,
325
+ "fact_recall": 0.0,
326
+ "correct": false,
327
+ "contradicts_reference": true,
328
+ "faithfulness": 0.0,
329
+ "refused": true,
330
+ "cited_pages": [],
331
+ "citation_recall": 0.0,
332
+ "citation_precision": null,
333
+ "any_gt_page_cited": false
334
+ },
335
+ {
336
+ "id": "Q24",
337
+ "category": "Global",
338
+ "answerable": true,
339
+ "fact_recall": 1.0,
340
+ "correct": true,
341
+ "contradicts_reference": false,
342
+ "faithfulness": 0.6666666666666666,
343
+ "refused": false,
344
+ "cited_pages": [],
345
+ "citation_recall": 0.0,
346
+ "citation_precision": null,
347
+ "any_gt_page_cited": false
348
+ },
349
+ {
350
+ "id": "Q25",
351
+ "category": "Global",
352
+ "answerable": true,
353
+ "fact_recall": 0.0,
354
+ "correct": false,
355
+ "contradicts_reference": true,
356
+ "faithfulness": 0.0,
357
+ "refused": true,
358
+ "cited_pages": [
359
+ 1,
360
+ 2
361
+ ],
362
+ "citation_recall": 0.0,
363
+ "citation_precision": 0.0,
364
+ "any_gt_page_cited": false
365
+ },
366
+ {
367
+ "id": "Q26",
368
+ "category": "Global",
369
+ "answerable": true,
370
+ "fact_recall": 0.0,
371
+ "correct": false,
372
+ "contradicts_reference": false,
373
+ "faithfulness": null,
374
+ "refused": true,
375
+ "cited_pages": [],
376
+ "citation_recall": 0.0,
377
+ "citation_precision": null,
378
+ "any_gt_page_cited": false
379
+ },
380
+ {
381
+ "id": "Q27",
382
+ "category": "Global",
383
+ "answerable": true,
384
+ "fact_recall": 0.0,
385
+ "correct": false,
386
+ "contradicts_reference": false,
387
+ "faithfulness": null,
388
+ "refused": true,
389
+ "cited_pages": [],
390
+ "citation_recall": 0.0,
391
+ "citation_precision": null,
392
+ "any_gt_page_cited": false
393
+ },
394
+ {
395
+ "id": "Q28",
396
+ "category": "Global",
397
+ "answerable": true,
398
+ "fact_recall": 0.0,
399
+ "correct": false,
400
+ "contradicts_reference": false,
401
+ "faithfulness": null,
402
+ "refused": true,
403
+ "cited_pages": [],
404
+ "citation_recall": 0.0,
405
+ "citation_precision": null,
406
+ "any_gt_page_cited": false
407
+ },
408
+ {
409
+ "id": "Q29",
410
+ "category": "Numerical",
411
+ "answerable": true,
412
+ "fact_recall": 0.0,
413
+ "correct": false,
414
+ "contradicts_reference": false,
415
+ "faithfulness": null,
416
+ "refused": true,
417
+ "cited_pages": [],
418
+ "citation_recall": 0.0,
419
+ "citation_precision": null,
420
+ "any_gt_page_cited": false
421
+ },
422
+ {
423
+ "id": "Q30",
424
+ "category": "Numerical",
425
+ "answerable": true,
426
+ "fact_recall": 0.0,
427
+ "correct": false,
428
+ "contradicts_reference": false,
429
+ "faithfulness": null,
430
+ "refused": true,
431
+ "cited_pages": [],
432
+ "citation_recall": 0.0,
433
+ "citation_precision": null,
434
+ "any_gt_page_cited": false
435
+ },
436
+ {
437
+ "id": "Q31",
438
+ "category": "Numerical",
439
+ "answerable": true,
440
+ "fact_recall": 0.0,
441
+ "correct": false,
442
+ "contradicts_reference": false,
443
+ "faithfulness": null,
444
+ "refused": true,
445
+ "cited_pages": [],
446
+ "citation_recall": 0.0,
447
+ "citation_precision": null,
448
+ "any_gt_page_cited": false
449
+ },
450
+ {
451
+ "id": "Q32",
452
+ "category": "Numerical",
453
+ "answerable": true,
454
+ "fact_recall": 0.0,
455
+ "correct": false,
456
+ "contradicts_reference": false,
457
+ "faithfulness": null,
458
+ "refused": true,
459
+ "cited_pages": [],
460
+ "citation_recall": 0.0,
461
+ "citation_precision": null,
462
+ "any_gt_page_cited": false
463
+ },
464
+ {
465
+ "id": "Q33",
466
+ "category": "Unanswerable",
467
+ "answerable": false,
468
+ "refused": true,
469
+ "fabricated": false,
470
+ "absence_probe_hits": [],
471
+ "used_web": false,
472
+ "used_arxiv": false,
473
+ "note": "Information not provided in the paper."
474
+ },
475
+ {
476
+ "id": "Q34",
477
+ "category": "Unanswerable",
478
+ "answerable": false,
479
+ "refused": true,
480
+ "fabricated": false,
481
+ "absence_probe_hits": [],
482
+ "used_web": false,
483
+ "used_arxiv": false,
484
+ "note": "Information not present in the paper."
485
+ },
486
+ {
487
+ "id": "Q35",
488
+ "category": "Unanswerable",
489
+ "answerable": false,
490
+ "refused": true,
491
+ "fabricated": false,
492
+ "absence_probe_hits": [],
493
+ "used_web": false,
494
+ "used_arxiv": false,
495
+ "note": "Privacy not covered in paper."
496
+ },
497
+ {
498
+ "id": "Q36",
499
+ "category": "Unanswerable",
500
+ "answerable": false,
501
+ "refused": true,
502
+ "fabricated": false,
503
+ "absence_probe_hits": [],
504
+ "used_web": false,
505
+ "used_arxiv": false,
506
+ "note": "Information not provided in the source."
507
+ },
508
+ {
509
+ "id": "Q37",
510
+ "category": "Unanswerable",
511
+ "answerable": false,
512
+ "refused": true,
513
+ "fabricated": false,
514
+ "absence_probe_hits": [],
515
+ "used_web": false,
516
+ "used_arxiv": false,
517
+ "note": "Information not present in the paper."
518
+ },
519
+ {
520
+ "id": "Q38",
521
+ "category": "Unanswerable",
522
+ "answerable": false,
523
+ "refused": true,
524
+ "fabricated": false,
525
+ "absence_probe_hits": [],
526
+ "used_web": false,
527
+ "used_arxiv": false,
528
+ "note": "Information not provided in the source."
529
+ },
530
+ {
531
+ "id": "Q39",
532
+ "category": "Unanswerable",
533
+ "answerable": false,
534
+ "refused": true,
535
+ "fabricated": false,
536
+ "absence_probe_hits": [],
537
+ "used_web": false,
538
+ "used_arxiv": false,
539
+ "note": "Information not present in source."
540
+ },
541
+ {
542
+ "id": "Q40",
543
+ "category": "Unanswerable",
544
+ "answerable": false,
545
+ "refused": true,
546
+ "fabricated": false,
547
+ "absence_probe_hits": [],
548
+ "used_web": false,
549
+ "used_arxiv": false,
550
+ "note": "Information not present in the paper."
551
+ }
552
+ ]
eval/results/report.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_url": "http://localhost:7860",
3
+ "judge_model": "openai/gpt-oss-20b",
4
+ "n_items": 40,
5
+ "answerable_overall": {
6
+ "n": 32,
7
+ "answer_correctness": 0.2188,
8
+ "key_fact_recall": 0.2031,
9
+ "faithfulness": 0.2293,
10
+ "citation_page_recall": 0.0469,
11
+ "citation_page_precision": 0.2,
12
+ "any_gt_page_cited": 0.0625,
13
+ "false_refusal_rate": 0.5312
14
+ },
15
+ "answerable_by_category": {
16
+ "Global": {
17
+ "n": 8,
18
+ "answer_correctness": 0.125,
19
+ "key_fact_recall": 0.1562,
20
+ "faithfulness": 0.2275,
21
+ "citation_page_recall": 0.0,
22
+ "citation_page_precision": 0.0,
23
+ "any_gt_page_cited": 0.0,
24
+ "false_refusal_rate": 0.625
25
+ },
26
+ "Local": {
27
+ "n": 10,
28
+ "answer_correctness": 0.3,
29
+ "key_fact_recall": 0.2167,
30
+ "faithfulness": 0.2333,
31
+ "citation_page_recall": 0.1,
32
+ "citation_page_precision": 0.5,
33
+ "any_gt_page_cited": 0.1,
34
+ "false_refusal_rate": 0.3
35
+ },
36
+ "Multi-hop": {
37
+ "n": 10,
38
+ "answer_correctness": 0.3,
39
+ "key_fact_recall": 0.3083,
40
+ "faithfulness": 0.2262,
41
+ "citation_page_recall": 0.05,
42
+ "citation_page_precision": 0.25,
43
+ "any_gt_page_cited": 0.1,
44
+ "false_refusal_rate": 0.5
45
+ },
46
+ "Numerical": {
47
+ "n": 4,
48
+ "answer_correctness": 0.0,
49
+ "key_fact_recall": 0.0,
50
+ "faithfulness": null,
51
+ "citation_page_recall": 0.0,
52
+ "citation_page_precision": null,
53
+ "any_gt_page_cited": 0.0,
54
+ "false_refusal_rate": 1.0
55
+ }
56
+ },
57
+ "unanswerable": {
58
+ "n": 8,
59
+ "correct_refusal_rate": 1.0,
60
+ "fabrication_rate": 0.0,
61
+ "absence_probe_hallucination_rate": 0.0,
62
+ "web_fallback_rate": 0.0,
63
+ "arxiv_fallback_rate": 0.0
64
+ },
65
+ "latency_s": {
66
+ "mean": 54.24,
67
+ "median": 55.21,
68
+ "p95": 58.31,
69
+ "mean_ttfb": 18.15
70
+ },
71
+ "web_or_arxiv_used_on_answerable": 0.0312,
72
+ "request_errors": [],
73
+ "caveats": [
74
+ "Retrieval recall/context precision are not exposed by /ask; citation-page recall/precision (pages the answer cites vs. ground-truth evidence pages) is used as the retrieval proxy.",
75
+ "Faithfulness = share of answer claims supported by the benchmark evidence quotes/reference (judge-estimated); correct-but-uncited claims count as unsupported.",
76
+ "LLM judge differs from the answering model but is still an LLM; N is small (40)."
77
+ ]
78
+ }
eval/results/report.md CHANGED
@@ -6,11 +6,11 @@ Server `http://localhost:7860` 路 judge `openai/gpt-oss-20b` 路 40 items
6
 
7
  | Category | N | Correctness | Key-fact recall | Faithfulness | Cite recall | Cite precision | False refusal |
8
  |---|--:|--:|--:|--:|--:|--:|--:|
9
- | Global | 8 | 0.0% | 3.1% | 17.9% | 0.0% | n/a | 75.0% |
10
- | Local | 10 | 20.0% | 15.0% | 13.3% | 0.0% | 0.0% | 70.0% |
11
- | Multi-hop | 10 | 30.0% | 29.2% | 29.1% | 10.0% | 75.0% | 60.0% |
12
  | Numerical | 4 | 0.0% | 0.0% | n/a | 0.0% | n/a | 100.0% |
13
- | **Overall** | 32 | 15.6% | 14.6% | 20.4% | 3.1% | 30.0% | 71.9% |
14
 
15
  ## Unanswerable questions (N=8)
16
 
@@ -21,7 +21,7 @@ Server `http://localhost:7860` 路 judge `openai/gpt-oss-20b` 路 40 items
21
 
22
  ## Latency
23
 
24
- - {'mean': 33.53, 'median': 52.73, 'p95': 56.68, 'mean_ttfb': 12.77}
25
 
26
  Web/arXiv tools used on answerable questions: 3.1%
27
 
 
6
 
7
  | Category | N | Correctness | Key-fact recall | Faithfulness | Cite recall | Cite precision | False refusal |
8
  |---|--:|--:|--:|--:|--:|--:|--:|
9
+ | Global | 8 | 12.5% | 15.6% | 22.8% | 0.0% | 0.0% | 62.5% |
10
+ | Local | 10 | 30.0% | 21.7% | 23.3% | 10.0% | 50.0% | 30.0% |
11
+ | Multi-hop | 10 | 30.0% | 30.8% | 22.6% | 5.0% | 25.0% | 50.0% |
12
  | Numerical | 4 | 0.0% | 0.0% | n/a | 0.0% | n/a | 100.0% |
13
+ | **Overall** | 32 | 21.9% | 20.3% | 22.9% | 4.7% | 20.0% | 53.1% |
14
 
15
  ## Unanswerable questions (N=8)
16
 
 
21
 
22
  ## Latency
23
 
24
+ - {'mean': 54.24, 'median': 55.21, 'p95': 58.31, 'mean_ttfb': 18.15}
25
 
26
  Web/arXiv tools used on answerable questions: 3.1%
27