How sayeeshnaik/chatai_backend works
This is a small Flask chat-answering API. A client sends a question to /chatAi; the handler tries a predefined conversational reply, then arithmetic evaluation, and otherwise searches Google for text to return. The routing and answer strategies are all implemented in app.py; no README or other runtime modules provide additional documented capabilities.
Main entry points: app.py Chat handler
Components 6
Other components
- API client
- Chat handler
app.py - Preset replies
app.py - Math evaluator
app.py - Web search
app.py - Google Search
Connections 6
- API client → Chat handler: sends question
app.py - Chat handler → Preset replies: checks replies
app.py - Chat handler → Math evaluator: tries arithmetic
app.py - Chat handler → Web search: falls back
app.py - Web search → Google Search: fetches results
app.py - Chat handler → API client: returns answer
app.py