How neelghoshal/eval_agent_system_nrtf works
Eval Agent System accepts a document through a Streamlit UI or CLI, runs four independent analyses in parallel, joins their results and errors into a report, and displays the findings. The analyses cover document quality, claim verification, authority checks, and internal/external contradictions. Shared layers provide typed graph state, Snowflake Cortex inference, and web search. The README documents the CLI entry point and sample-bill capability, but the supplied excerpts do not show sample loading or CLI result handling, so those links are omitted. The graph wiring and agent-to-service edges are supported by excerpts; external service edges are shown where their integrations are explicit.
Main entry points: graph.py LangGraph workflow · tools.py Web search tools · llm.py Cortex LLM client · agent.py Claim verification
Components 17
User interface
- Streamlit app
src/app.py
Graph orchestration
- LangGraph workflow
src/eval_system/graph.py - Shared state contracts
src/eval_system/state.py
Analysis agents
- Quality evaluation
src/eval_system/agents/evaluation/agent.py - Evaluation prompts
src/eval_system/agents/evaluation/prompts.py - Claim verification
src/eval_system/agents/claim_verification/agent.py - Claim prompts
src/eval_system/agents/claim_verification/prompts.py - Authority check
src/eval_system/agents/authority_check/agent.py - Authority prompts
src/eval_system/agents/authority_check/prompts.py - Contradiction check
src/eval_system/agents/contradiction/agent.py - Contradiction prompts
src/eval_system/agents/contradiction/prompts.py
Shared services
- Cortex LLM client
src/eval_system/llm.py - Web search tools
src/eval_system/tools.py
Other components
- Document author
- DuckDuckGo search
- Wikipedia search
- Snowflake Cortex
Connections 22
- Document author → Streamlit app: provides document
src/app.py - Streamlit app → LangGraph workflow: invokes workflow
src/app.py - LangGraph workflow → Quality evaluation: dispatches
src/eval_system/graph.py - LangGraph workflow → Claim verification: dispatches
src/eval_system/graph.py - LangGraph workflow → Authority check: dispatches
src/eval_system/graph.py - LangGraph workflow → Contradiction check: dispatches
src/eval_system/graph.py - LangGraph workflow → Shared state contracts: uses contracts
src/eval_system/graph.py - Quality evaluation → Evaluation prompts: uses prompts
src/eval_system/agents/evaluation/agent.py - Claim verification → Claim prompts: uses prompts
src/eval_system/agents/claim_verification/agent.py - Authority check → Authority prompts: uses prompts
src/eval_system/agents/authority_check/agent.py - Contradiction check → Contradiction prompts: uses prompts
src/eval_system/agents/contradiction/agent.py - Quality evaluation → Cortex LLM client: requests inference
src/eval_system/agents/evaluation/agent.py - Claim verification → Cortex LLM client: requests inference
src/eval_system/agents/claim_verification/agent.py - Authority check → Cortex LLM client: requests inference
src/eval_system/agents/authority_check/agent.py - Contradiction check → Cortex LLM client: requests inference
src/eval_system/agents/contradiction/agent.py - Cortex LLM client → Snowflake Cortex: posts inference
src/eval_system/llm.py - Claim verification → Web search tools: searches claims
src/eval_system/agents/claim_verification/agent.py - Authority check → Web search tools: searches people
src/eval_system/agents/authority_check/agent.py - Contradiction check → Web search tools: searches statements
src/eval_system/agents/contradiction/agent.py - Web search tools → DuckDuckGo search: queries first
src/eval_system/tools.py - Web search tools → Wikipedia search: falls back
src/eval_system/tools.py - Streamlit app → Document author: displays report
src/app.py