[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,65 +2,183 @@
|
||||
id: wiki-2026-0508-reference
|
||||
title: Reference
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-Reinforce-AUTO-REFF-001]
|
||||
aliases: [Citation, Bibliography, Pass-by-Reference]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.94
|
||||
tags: [auto-reinforced, reference, source, credibility, verification, evidence, citation]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [reference, citation, zotero, bibtex, pass-by-reference]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-04-20
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: python
|
||||
framework: zotero
|
||||
---
|
||||
|
||||
# [[Reference|Reference]]
|
||||
# Reference
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "신뢰의 앵커: 내 생각의 근거가 어디에 뿌리를 두고 있는지 보여주는 이정표이자, 독자나 AI 에이전트가 정보의 진위 여부를 직접 확인하러 갈 수 있게 열어둔 '지식의 투명한 통로'."
|
||||
## 매 한 줄
|
||||
> **"매 pointer 의 value 의 X — 매 indirection"**. Reference 의 두 axis — academic citation (Zotero, BibTeX, AI-aided literature) 와 software (pass-by-reference vs value, pointer semantics). Both 의 indirection 의 통한 share/reuse.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
레퍼런스(Reference)는 정보의 출처나 근거를 나타내는 참조 자료입니다.
|
||||
## 매 핵심
|
||||
|
||||
1. **가치**:
|
||||
* **Credibility**: 주장의 객관적 근거 제시. ([[Reliability|Reliability]]와 연결)
|
||||
* **Verification**: 누구나 재현하거나 확인 가능하게 함. ([[Scientific-Method|Scientific-Method]]와 연결)
|
||||
* **Anti-Plagiarism**: 타인의 지적 재산을 존중하고 명시.
|
||||
2. **왜 중요한가?**:
|
||||
* AI 시대에는 거짓 정보(Hallucination)가 넘쳐나기 때문에, "어디서 나온 말인가?"를 증명하는 레퍼런스의 중요성이 그 어느 때보다 높기 때문임. (RAG 시스템의 심장)
|
||||
### 매 Citation management
|
||||
- **Zotero**: open-source, browser-clipper, group library. 2026 의 dominant academic ref manager.
|
||||
- **BibTeX**: LaTeX 의 standard format. `@article{key, ...}`.
|
||||
- **Mendeley**: Elsevier-owned, declining.
|
||||
- **DOI**: persistent identifier — `10.1038/...` resolves via doi.org.
|
||||
- **Citation styles**: APA, MLA, Chicago, IEEE — CSL (Citation Style Language) JSON.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌**: 과거에는 문서 끝에 붙는 '부록 정책'이었으나, 현대 정책은 실시간으로 지식과 연결되어 하이퍼링크로 바로 이동하는 '살아있는 노드 정책'으로 진화함(RL Update).
|
||||
- **정책 변화(RL Update)**: AI 에이전트가 답변을 생성할 때, 근거가 되는 레퍼런스 문고 번호 정책을 인라인으로 표시하는 '인용 기반 답변 정책'이 신뢰할 수 있는 AI의 표준 정책이 됨. ([[Explainable-AI (XAI)|Explainable-AI (XAI)]]와 연결)
|
||||
### 매 AI-aided literature
|
||||
- **Elicit**: 매 LLM-powered literature review.
|
||||
- **Consensus**: 매 yes/no answer aggregation across papers.
|
||||
- **Semantic Scholar API**: free, 200M+ papers.
|
||||
- **NotebookLM (Google)**: 매 source-grounded synthesis.
|
||||
- **Claude/GPT-5 + arxiv-mcp**: 매 RAG-style retrieval.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- [[Reliability|Reliability]], [[Scientific-Method|Scientific-Method]], [[RAG|RAG]], [[Explainable-AI (XAI)|Explainable-AI (XAI)]], [[Documentation-Strategy|Documentation-Strategy]]
|
||||
- **Modern Tech/Tools**: Citations, Hyperlinks, Footnotes, DOI (Digital Object Identifier).
|
||||
---
|
||||
### 매 Software references
|
||||
- **Pass-by-reference**: function 의 caller variable 의 mutate 의 가능. C++ `&`, Rust `&mut`.
|
||||
- **Pass-by-value**: copy. 매 immutable safe.
|
||||
- **Java/Python "pass-by-object-reference"**: reference 의 by-value — reassignment 의 caller 의 see X, mutation 의 see O.
|
||||
- **Reference counting**: Python, Swift (ARC), Rust `Rc`/`Arc`. Cycles 의 leak.
|
||||
- **Weak reference**: 매 cycle 의 break — `weakref` (Python), `Weak` (Rust).
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### 매 응용
|
||||
1. Academic paper writing (Zotero + BibTeX + Pandoc).
|
||||
2. Systematic review (Elicit + manual screening).
|
||||
3. Large object passing (avoid copy).
|
||||
4. Observer pattern (weak ref to subject).
|
||||
5. RAG knowledge base.
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
## 💻 패턴
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
### BibTeX entry
|
||||
```bibtex
|
||||
@article{vaswani2017attention,
|
||||
title={Attention is all you need},
|
||||
author={Vaswani, Ashish and Shazeer, Noam and others},
|
||||
journal={NeurIPS},
|
||||
year={2017},
|
||||
doi={10.48550/arXiv.1706.03762}
|
||||
}
|
||||
```
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
### Zotero API (pyzotero)
|
||||
```python
|
||||
from pyzotero import zotero
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
zot = zotero.Zotero(library_id, "user", api_key)
|
||||
items = zot.items(q="transformer", limit=20)
|
||||
for it in items:
|
||||
data = it["data"]
|
||||
print(data["title"], data.get("DOI"))
|
||||
```
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
### Semantic Scholar fetch
|
||||
```python
|
||||
import httpx
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
r = httpx.get(
|
||||
"https://api.semanticscholar.org/graph/v1/paper/search",
|
||||
params={"query": "RLHF Claude", "limit": 10,
|
||||
"fields": "title,abstract,year,authors,citationCount"}
|
||||
)
|
||||
for paper in r.json()["data"]:
|
||||
print(f"{paper['year']} {paper['title']} ({paper['citationCount']} cites)")
|
||||
```
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
### Python mutation gotcha
|
||||
```python
|
||||
def append_x(lst):
|
||||
lst.append("x") # mutates caller's list
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
def reassign(lst):
|
||||
lst = ["y"] # local rebind — caller unaffected
|
||||
|
||||
a = [1, 2]
|
||||
append_x(a); print(a) # [1, 2, 'x']
|
||||
reassign(a); print(a) # [1, 2, 'x'] — unchanged
|
||||
```
|
||||
|
||||
### Rust borrow
|
||||
```rust
|
||||
fn read(s: &String) { println!("{}", s); } // immutable ref
|
||||
fn modify(s: &mut String) { s.push_str("!"); } // mutable ref
|
||||
|
||||
let mut name = String::from("Claude");
|
||||
read(&name);
|
||||
modify(&mut name);
|
||||
// borrow checker: 매 한 mut OR many immut, never both
|
||||
```
|
||||
|
||||
### Weak ref (Python)
|
||||
```python
|
||||
import weakref
|
||||
|
||||
class Node:
|
||||
def __init__(self, name): self.name = name; self.parent = None
|
||||
|
||||
root = Node("root")
|
||||
child = Node("child")
|
||||
child.parent = weakref.ref(root) # break cycle
|
||||
parent = child.parent() # call to deref
|
||||
```
|
||||
|
||||
### RAG with citations (Anthropic)
|
||||
```python
|
||||
resp = client.messages.create(
|
||||
model="claude-opus-4-7",
|
||||
max_tokens=2048,
|
||||
messages=[{
|
||||
"role": "user",
|
||||
"content": [
|
||||
{"type": "document", "source": {"type": "text", "data": paper_text},
|
||||
"citations": {"enabled": True}},
|
||||
{"type": "text", "text": "Summarize key findings with citations."}
|
||||
]
|
||||
}]
|
||||
)
|
||||
# resp.content 의 citation block 의 include
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| Academic writing | Zotero + BibTeX + Pandoc/LaTeX |
|
||||
| Lit review (early) | Elicit / Semantic Scholar |
|
||||
| Lit review (rigorous) | PRISMA + Zotero + manual |
|
||||
| Pass large struct | Reference (& / pointer) |
|
||||
| Mutation needed | Mutable ref (`&mut`, `*T`) |
|
||||
| Cycle risk | Weak reference |
|
||||
|
||||
**기본값**: Zotero 의 personal library, BibTeX export 의 LaTeX, Anthropic citations API 의 RAG.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Memory-Management]] · [[Academic-Writing]]
|
||||
- 변형: [[Pointer]] · [[Smart-Pointer]] · [[BibTeX]]
|
||||
- 응용: [[RAG]] · [[Citation-Generation]] · [[Borrow-Checker]]
|
||||
- Adjacent: [[Zotero]] · [[Semantic-Scholar]] · [[Rust-Ownership]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: literature synthesis (RAG with grounded citations), bibliography formatting, citation extraction from PDF.
|
||||
**언제 X**: 매 hallucinated DOI — always verify against CrossRef. 매 single source-of-truth claim 의 X — LLM 의 fabricates citations.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **Hallucinated citations**: LLM 의 fake DOI/year — verify against doi.org.
|
||||
- **No citation export**: 매 final paper 의 manual format — Zotero 의 use.
|
||||
- **Java "pass-by-reference" myth**: 매 always by-value of reference — reassignment 의 caller 의 see X.
|
||||
- **Strong ref cycle**: parent ↔ child 의 strong → leak. Weak 의 break.
|
||||
- **Citing without reading**: chain-citation error — 매 source paper 의 verify.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Zotero docs, Rust book ch.4, Anthropic citations API, Semantic Scholar API docs).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — citation + software reference unified |
|
||||
|
||||
Reference in New Issue
Block a user