How sowndharya617/shl-assessment-recommender works
This is a stateless conversational recommender for SHL individual assessments. A recruiter sends the conversation history to the chat API; the API builds context, applies prompt-injection and topic checks, then routes comparison requests to catalog comparison or other queries through clarification or intent extraction and ranked recommendations. Responses are schema-validated and grounded in the local catalog. The README also describes a demo frontend. Source excerpts show API-to-module calls and catalog access; the frontend file was not sampled, so its interaction details are limited to the API’s documented CORS setup.
Main entry points: main.py Chat API · recommender.py Recommendation and comparison · conversation.py Conversation context and intent · index.html Demo chatbot frontend
Components 9
API and contracts
- Chat API
app/main.py - Request and response schemas
app/schemas.py - Demo chatbot frontend
index.html
Conversation and safeguards
- Conversation context and intent
app/conversation.py - Input and result guardrails
app/guardrails.py
Catalog and matching
- Recommendation and comparison
app/recommender.py - Catalog loader and lookups
app/catalog_loader.py - SHL assessment catalog
app/data/shl_catalog.json
Other components
- Recruiter
Connections 15
- Recruiter → Chat API: submits history
README.md - Chat API → Request and response schemas: validates payloads
app/main.py - Chat API → Conversation context and intent: builds context
app/main.py - Chat API → Input and result guardrails: checks input
app/main.py - Chat API → Conversation context and intent: routes conversation
app/main.py - Chat API → Recommendation and comparison: requests comparison
app/main.py - Chat API → Conversation context and intent: extracts intent
app/main.py - Chat API → Recommendation and comparison: retrieves matches
app/main.py - Recommendation and comparison → Catalog loader and lookups: reads catalog
app/recommender.py - Recommendation and comparison → Input and result guardrails: validates results
app/recommender.py - Catalog loader and lookups → SHL assessment catalog: loads JSON
app/catalog_loader.py - Chat API → Request and response schemas: returns response
app/main.py - Demo chatbot frontend → Chat API: calls API
app/main.py - Chat API → Demo chatbot frontend: serves frontend
app/main.py - Chat API → Recruiter: returns reply
README.md