How sk7440/applied_ai works
This tree is a collection of small GenAI experiments, centered on chatbot_practice: a user selects a model and response depth, optionally attaches an image, streams a reply, and the app persists the conversation. Separate examples demonstrate direct Ollama, LangChain/Ollama, and a LangChain OpenAI-compatible proxy. The README is empty; edges reflect only the shown source references and calls, so unsampled notebooks and modules are not inferred as runtime stages.
Main entry points: app.py Chat UI and flow · ollama_client.py Ollama client · history_manager.py History manager · main.py Streaming CLI
Components 11
Chatbot workspace
- Chat UI and flow
chatbot_practice/app.py - Ollama client
chatbot_practice/ollama_client.py - History manager
chatbot_practice/history_manager.py - Chat history file
chatbot_practice/chat_history.json
Ollama examples
- Streaming CLI
chatbot_practice/main.py - Support response demo
genai-foundations/code/main.py - API invocation demo
genai-foundations/api/app/main.py
LangChain examples
- Prompt streaming CLI
langchain-practice/index.js
Other components
- User
- Ollama service
- OpenAI-compatible endpoint
Connections 14
- User → Chat UI and flow: submits prompt
chatbot_practice/app.py - Chat UI and flow → Ollama client: lists models
chatbot_practice/app.py - Chat UI and flow → Ollama client: checks vision
chatbot_practice/app.py - Chat UI and flow → Ollama client: streams chat
chatbot_practice/app.py - Chat UI and flow → History manager: loads history
chatbot_practice/app.py - Chat UI and flow → History manager: saves or clears
chatbot_practice/app.py - History manager → Chat history file: reads and writes
chatbot_practice/history_manager.py - Ollama client → Ollama service: requests models and chat
chatbot_practice/ollama_client.py - User → Streaming CLI: enters prompt
chatbot_practice/main.py - Streaming CLI → Ollama service: streams chat
chatbot_practice/main.py - Support response demo → Ollama service: streams support reply
genai-foundations/code/main.py - API invocation demo → Ollama service: invokes model
genai-foundations/api/app/main.py - User → Prompt streaming CLI: enters prompt
langchain-practice/index.js - Prompt streaming CLI → OpenAI-compatible endpoint: streams completion
langchain-practice/index.js