Tag index

#Python

10 entries
№009 production-rag-agent-python · 09

RAG Agent 테스트: Fake·Contract·Record/Replay 설계 (9/10)

RAG Agent를 외부 API 없이 검증합니다. deterministic fake, 공통 contract suite, HTTPX transport, 비밀정보를 제거한 record/replay와 fault injection을 설계합니다.

#RAGAgent #Python #Testing #Pytest
순수 unit test와 fake contract HTTP transport record replay live smoke offline evaluation으로 구성한 RAG Agent 테스트 피라미드
№007 production-rag-agent-python · 07

RAG Session 영속화: PostgreSQL·Redis·Idempotency 설계 (7/10)

Agent session을 PostgreSQL versioned event로 저장합니다. optimistic concurrency, idempotency key·request hash·lease, Redis cache와 crash window를 Python·SQL로 구현합니다.

#RAGAgent #Python #PostgreSQL #Redis
중복 Agent 요청이 tenant와 operation 범위의 idempotency row에서 합류하고 PostgreSQL session version과 event를 commit한 뒤 Redis versioned cache를 갱신하는 흐름
№005 production-rag-agent-python · 05

RAG Prompt·Context Builder: Evidence Budget과 Citation 검증 (5/10)

검색 Evidence를 결정적 context bundle로 조립합니다. token budget, 중복 제거, 원문 span, untrusted data 격리와 server-side citation ID 검증을 Python으로 구현합니다.

#RAGAgent #Python #PromptEngineering #ContextEngineering
검색 Evidence가 dedup과 token budget packer를 지나 S1 S2 context block으로 변환되고 structured answer의 citation ID가 server-side evidence map에서 검증되는 흐름