docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
This commit is contained in:
@@ -0,0 +1,239 @@
|
||||
---
|
||||
id: wiki-2026-0508-epistemology
|
||||
title: Epistemology
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [theory of knowledge, JTB, Gettier, naturalized epistemology, AI epistemology]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [philosophy, epistemology, knowledge, jtb, gettier, ai-epistemology]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
tech_stack:
|
||||
language: Philosophy
|
||||
applicable_to: [AI Alignment, ML Calibration, Hallucination, Knowledge Graphs]
|
||||
---
|
||||
|
||||
# Epistemology
|
||||
|
||||
## 매 한 줄
|
||||
> **"매 knowledge 의 nature 의 study"**. Plato — 매 justified true belief (JTB). Gettier 1963 — 매 JTB 의 충분 X. 매 modern: 매 reliabilism, virtue, naturalized. 매 AI epistemology: 매 hallucination, calibration, RAG truthfulness.
|
||||
|
||||
## 매 핵심
|
||||
|
||||
### 매 traditional definition
|
||||
- **JTB**: 매 know p ⟺ p is true ∧ believe p ∧ justified.
|
||||
- **Gettier counterexample**: 매 JTB without knowledge.
|
||||
|
||||
### 매 schools
|
||||
- **Foundationalism**: 매 basic belief.
|
||||
- **Coherentism**: 매 web 의 mutual support.
|
||||
- **Reliabilism** (Goldman): 매 reliable process.
|
||||
- **Virtue epistemology** (Sosa): 매 epistemic virtue.
|
||||
- **Naturalized** (Quine): 매 cognitive science.
|
||||
- **Bayesian**: 매 degree of belief.
|
||||
|
||||
### 매 source
|
||||
- **Perception**.
|
||||
- **Memory**.
|
||||
- **Testimony**.
|
||||
- **Reason / inference**.
|
||||
- **Intuition**.
|
||||
|
||||
### 매 problem
|
||||
- **Skepticism**: 매 nothing is known?
|
||||
- **Induction problem** (Hume): 매 future ≠ past.
|
||||
- **Regress**: 매 justify justification.
|
||||
- **Other minds**.
|
||||
|
||||
### 매 AI implication
|
||||
- **Hallucination**: 매 LLM 의 truth tracking.
|
||||
- **Calibration**: 매 confidence ≈ accuracy.
|
||||
- **Knowledge cutoff**: 매 stale.
|
||||
- **Source attribution**: 매 RAG.
|
||||
- **Bayesian credences**: 매 uncertainty.
|
||||
|
||||
### 매 응용
|
||||
1. **AI safety**: 매 truthfulness eval.
|
||||
2. **Hallucination eval**: 매 TruthfulQA.
|
||||
3. **Knowledge graph**: 매 source provenance.
|
||||
4. **Misinformation**: 매 social epistemology.
|
||||
5. **Education**: 매 critical thinking.
|
||||
|
||||
## 💻 패턴
|
||||
|
||||
### Calibration (ECE)
|
||||
```python
|
||||
import numpy as np
|
||||
|
||||
def expected_calibration_error(probs, labels, n_bins=10):
|
||||
"""매 modern AI epistemology 의 quantitative."""
|
||||
bin_edges = np.linspace(0, 1, n_bins + 1)
|
||||
ece = 0
|
||||
for i in range(n_bins):
|
||||
mask = (probs >= bin_edges[i]) & (probs < bin_edges[i+1])
|
||||
if mask.sum() == 0: continue
|
||||
bin_acc = labels[mask].mean()
|
||||
bin_conf = probs[mask].mean()
|
||||
ece += (mask.sum() / len(probs)) * abs(bin_acc - bin_conf)
|
||||
return ece
|
||||
```
|
||||
|
||||
### Hallucination detection (LLM)
|
||||
```python
|
||||
def hallucination_check(claim, sources):
|
||||
"""매 RAG-grounded check."""
|
||||
prompt = f"""Claim: "{claim}"
|
||||
Sources:
|
||||
{format_sources(sources)}
|
||||
|
||||
Is the claim supported by the sources? Output:
|
||||
- supported: bool
|
||||
- citation: source ID(s)
|
||||
- reasoning: brief"""
|
||||
return json.loads(llm.generate(prompt))
|
||||
```
|
||||
|
||||
### Bayesian credence update
|
||||
```python
|
||||
def bayes_update(prior, likelihood_given_h, likelihood_given_not_h):
|
||||
"""매 P(H|E) = P(E|H)P(H) / P(E)."""
|
||||
p_e = likelihood_given_h * prior + likelihood_given_not_h * (1 - prior)
|
||||
return likelihood_given_h * prior / p_e
|
||||
```
|
||||
|
||||
### Source attribution (RAG)
|
||||
```python
|
||||
def attributed_answer(question, retriever, llm):
|
||||
docs = retriever.retrieve(question, k=5)
|
||||
context = '\n'.join(f'[{i}] {d.text}' for i, d in enumerate(docs))
|
||||
prompt = f"""Answer based ONLY on the context. Cite [N] for each claim.
|
||||
Context:
|
||||
{context}
|
||||
Question: {question}"""
|
||||
return llm.generate(prompt), docs
|
||||
```
|
||||
|
||||
### TruthfulQA-style eval
|
||||
```python
|
||||
def truthful_eval(model, questions):
|
||||
correct = 0
|
||||
for q in questions:
|
||||
pred = model.generate(q.prompt)
|
||||
# 매 multi-choice or judge
|
||||
if q.gold_answer.lower() in pred.lower(): correct += 1
|
||||
return correct / len(questions)
|
||||
```
|
||||
|
||||
### Knowledge graph provenance
|
||||
```python
|
||||
class FactWithProvenance:
|
||||
def __init__(self, subject, predicate, object_, source, confidence, retrieved_at):
|
||||
self.s = subject; self.p = predicate; self.o = object_
|
||||
self.source = source
|
||||
self.confidence = confidence
|
||||
self.retrieved_at = retrieved_at
|
||||
|
||||
def is_stale(self, max_age_days=180):
|
||||
return (datetime.now() - self.retrieved_at).days > max_age_days
|
||||
```
|
||||
|
||||
### Reliabilism check (process-based)
|
||||
```python
|
||||
def reliable_process(belief_history):
|
||||
"""매 process 의 track record 의 evaluate."""
|
||||
n = len(belief_history)
|
||||
correct = sum(b.was_correct for b in belief_history)
|
||||
if n < 30: return None # 매 too few samples
|
||||
return correct / n # 매 reliability
|
||||
```
|
||||
|
||||
### Coherence check
|
||||
```python
|
||||
def coherence_score(belief_set):
|
||||
"""매 logical consistency + mutual support."""
|
||||
contradictions = []
|
||||
for i, b1 in enumerate(belief_set):
|
||||
for b2 in belief_set[i+1:]:
|
||||
if logically_contradicts(b1, b2):
|
||||
contradictions.append((b1, b2))
|
||||
|
||||
return 1 - len(contradictions) / max(1, len(belief_set))
|
||||
```
|
||||
|
||||
### Epistemic humility prompt (LLM)
|
||||
```python
|
||||
def humble_response(question, llm):
|
||||
prompt = f"""Answer the question. If uncertain, say so explicitly.
|
||||
Question: {question}
|
||||
|
||||
Format:
|
||||
- Answer: ...
|
||||
- Confidence: low / medium / high
|
||||
- What I'm uncertain about: ...
|
||||
- What would change my answer: ..."""
|
||||
return llm.generate(prompt)
|
||||
```
|
||||
|
||||
### Misinformation cascade (social epistemology)
|
||||
```python
|
||||
def cascade_risk(post, network):
|
||||
"""매 testimony 의 propagation."""
|
||||
initial_belief = post.author_credibility
|
||||
expected_reach = sum(
|
||||
node.degree * node.credulity * (1 / (hop_distance(post.author, node)))
|
||||
for node in network.nodes
|
||||
)
|
||||
return expected_reach * initial_belief
|
||||
```
|
||||
|
||||
### Inductive problem (Solomonoff prior)
|
||||
```python
|
||||
def solomonoff_prior(hypothesis):
|
||||
"""매 Occam-style: 매 simpler hypothesis 의 prior 의 ↑."""
|
||||
description_length = len(compress(hypothesis))
|
||||
return 2 ** (-description_length)
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| LLM eval | Calibration + TruthfulQA |
|
||||
| RAG | Source attribution |
|
||||
| Knowledge graph | Provenance + freshness |
|
||||
| Belief revision | Bayesian credence |
|
||||
| Critical thinking | JTB + sources + reliability |
|
||||
| Social misinformation | Cascade + credibility |
|
||||
|
||||
**기본값**: 매 Bayesian credence + 매 source attribution + 매 calibration check + 매 epistemic humility prompt + 매 freshness audit.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Philosophy]]
|
||||
- 응용: [[AI Safety]] · [[Hallucination]] · [[RAG]]
|
||||
- Adjacent: [[Epistemic-Uncertainty]] · [[Knowledge-Graphs]] · [[TruthfulQA]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 AI safety. 매 RAG. 매 hallucination eval.
|
||||
**언제 X**: 매 pure performance.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **JTB only**: 매 Gettier 의 ignore.
|
||||
- **No calibration**: 매 confident wrong.
|
||||
- **No source**: 매 RAG 의 ungrounded.
|
||||
- **No freshness**: 매 stale knowledge.
|
||||
- **Truth = popularity**: 매 social fallacy.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Plato, Gettier 1963, Goldman, Lin & Hu calibration).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-04-20 | Auto-reinforced |
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — JTB + 매 ECE / hallucination / Bayes / RAG / coherence code |
|
||||
Reference in New Issue
Block a user