How mukulsinghal407/tiktoktechjam works
TikTalk is a deterministic, multi-turn shopping copilot: it updates session intent from each shopper message, retrieves and scores catalog products, then selects recommendations and may ask a clarifying question. The README documents this flow and the evaluator capability; sampled source shows the facade’s orchestration and several component calls. Other links rely on the SOURCE INDEX’s import/reference lists, so those lists support dependencies but not unshown runtime details.
Main entry points: agent.py Agent API · repository.py Catalog repository · candidate_retriever.py Candidate retriever · scorer.py Candidate scorer
Components 14
Conversation and intent
- Agent API
starter/agent.py - State manager
starter/intent/state_manager.py - Evidence extractor
starter/intent/evidence_extractor.py - Intent belief
starter/intent/belief.py
Catalog and retrieval
- Catalog repository
starter/catalog/repository.py - FTS5 search index
starter/catalog/search_index.py - Candidate retriever
starter/retrieval/candidate_retriever.py
Ranking and dialogue
- Candidate scorer
starter/ranking/scorer.py - Risk-aware selector
starter/ranking/selector.py - Question policy
starter/dialogue/question_policy.py
Shared state and utilities
- Shared state and helpers
starter/helper
Evaluation
- Local evaluator
evaluator/local_evaluator.py
Other components
- Shopper
- Response
Connections 23
- Shopper → Agent API: sends message
README.md - Agent API → State manager: updates state
starter/agent.py - State manager → Evidence extractor: extracts evidence
starter/intent/state_manager.py - State manager → Shared state and helpers: uses session state
starter/intent/state_manager.py - Evidence extractor → Shared state and helpers: uses ontology
starter/intent/evidence_extractor.py - Agent API → Candidate retriever: retrieves candidates
starter/agent.py - Candidate retriever → Intent belief: gets active terms
starter/retrieval/candidate_retriever.py - Candidate retriever → FTS5 search index: searches catalog
starter/retrieval/candidate_retriever.py - Candidate retriever → Catalog repository: checks catalog
starter/retrieval/candidate_retriever.py - FTS5 search index → Catalog repository: indexes products
starter/catalog/search_index.py - Agent API → Candidate scorer: scores candidates
starter/agent.py - Candidate scorer → Intent belief: reads active evidence
starter/ranking/scorer.py - Candidate scorer → Catalog repository: reads products
starter/ranking/scorer.py - Candidate scorer → Shared state and helpers: uses product text
starter/ranking/scorer.py - Agent API → Risk-aware selector: selects recommendations
starter/agent.py - Risk-aware selector → Intent belief: checks uncertainty
starter/ranking/selector.py - Risk-aware selector → Catalog repository: reads products
starter/ranking/selector.py - Agent API → Question policy: chooses question
starter/agent.py - Question policy → Catalog repository: checks candidates
starter/dialogue/question_policy.py - Question policy → Shared state and helpers: uses prompts
starter/dialogue/question_policy.py - Agent API → State manager: records response
starter/agent.py - Agent API → Response: returns answer
README.md - Local evaluator → Agent API: invokes agent
evaluator/local_evaluator.py