How skala-smart-farm/agtech-investment works
This is a LangGraph-based AgTech startup investment evaluator. Its main workflow discovers candidates, screens them for eligibility, evaluates eligible startups across founder, technology, market, and competition dimensions, then makes investment decisions and generates a checked PDF report. Agentic RAG supplies cited document and web evidence; code validates citations and applies scorecard rules. The README documents the workflow and major capabilities; source excerpts and the index support selected internal links, but unsampled implementations and some runtime wiring are not shown.
Main entry points: discovery.py Candidate discovery · agentic_rag.py Agentic RAG · web_search.py Web search · builder.py Workflow graph
Components 29
Workflow orchestration
- CLI entry
app.py - Workflow graph
graph/builder.py - Candidate routing
graph/routes.py - Evaluation state
graph/state.py
Startup evaluation
- Candidate discovery
agents/discovery.py - Eligibility screening
agents/eligibility.py - Discovery channels
tools/channels.py - Founder analysis
agents/founder.py - Technology analysis
agents/tech.py - Market analysis
agents/market.py - Competition analysis
agents/competition.py
Evidence and retrieval
- Agentic RAG
rag/agentic_rag.py - Hybrid retrieval
rag/index.py - Document loading
rag/loader.py - Web search
tools/web_search.py - Evidence registry
tools/sources.py
Decision and reporting
- Investment decision
agents/decision.py - Report generation
agents/report.py - PDF renderer
report/render.py
Shared services
- Evidence judge
core/judge.py - LLM services
core/llm.py - Bounded LLM
core/llm_bounded.py - Prompt rendering
core/prompts.py - Runtime config
core/config.py
Other components
- Evaluator
- Search providers
- Public documents
- LLM provider
- PDF output
Connections 38
- Evaluator → CLI entry: starts evaluation
- CLI entry → Workflow graph: runs workflow
app.py - Workflow graph → Candidate routing: routes candidates
graph/builder.py - Workflow graph → Evaluation state: uses state
graph/builder.py - Workflow graph → Candidate discovery: runs first
- Candidate discovery → Eligibility screening: screens candidates
agents/discovery.py - Candidate discovery → Discovery channels: collects candidates
agents/discovery.py - Eligibility screening → Founder analysis: passes eligible
- Founder analysis → Technology analysis: evaluates next
agents/founder.py - Technology analysis → Market analysis: evaluates next
agents/market.py - Market analysis → Competition analysis: evaluates next
- Competition analysis → Investment decision: informs decision
- Investment decision → Candidate routing: routes next candidate
graph/routes.py - Candidate routing → Candidate discovery: selects next
graph/routes.py - Candidate routing → Report generation: ends at report
graph/routes.py - Technology analysis → Agentic RAG: gets technical baseline
agents/tech.py - Market analysis → Agentic RAG: retrieves evidence
agents/market.py - Agentic RAG → Hybrid retrieval: searches documents
rag/agentic_rag.py - Hybrid retrieval → Document loading: loads corpus
rag/index.py - Agentic RAG → Web search: supplements evidence
rag/agentic_rag.py - Web search → Search providers: queries providers
tools/web_search.py - Hybrid retrieval → Public documents: retrieves from
- Candidate discovery → Web search: searches candidates
agents/discovery.py - Eligibility screening → Web search: checks public facts
agents/eligibility.py - Web search → Evidence registry: registers evidence
tools/web_search.py - Agentic RAG → Evidence registry: records citations
rag/agentic_rag.py - Investment decision → Evidence judge: judges criteria
agents/decision.py - Evidence judge → Evidence registry: validates evidence
core/judge.py - Investment decision → Report generation: selects report result
agents/report.py - Report generation → PDF renderer: renders PDF
agents/report.py - PDF renderer → PDF output: produces
report/render.py - LLM services → LLM provider: calls model
core/llm.py - Bounded LLM → LLM services: reuses configuration
core/llm_bounded.py - Bounded LLM → LLM provider: requests structured output
core/llm_bounded.py - Evidence judge → Bounded LLM: invokes structured model
core/judge.py - Bounded LLM → Runtime config: reads settings
core/llm_bounded.py - LLM services → Runtime config: reads model settings
core/llm.py - Evidence judge → Prompt rendering: formats judgment prompt
core/judge.py