9148c358d0
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 폴더 제거.
5.7 KiB
5.7 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-reference | Reference | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Reference
매 한 줄
"매 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.
매 핵심
매 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.
매 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.
매 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).
매 응용
- Academic paper writing (Zotero + BibTeX + Pandoc).
- Systematic review (Elicit + manual screening).
- Large object passing (avoid copy).
- Observer pattern (weak ref to subject).
- RAG knowledge base.
💻 패턴
BibTeX entry
@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}
}
Zotero API (pyzotero)
from pyzotero import zotero
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"))
Semantic Scholar fetch
import httpx
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)")
Python mutation gotcha
def append_x(lst):
lst.append("x") # mutates caller's list
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
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)
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)
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
- 응용: RAG
🤖 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 |