How deeparajasabeson/models-from-ollamastudio-dockerdesktop works
This repository is a small set of terminal chat demos for locally served language models. The main workflows are direct, streamed chat through Ollama; document-grounded chat that extracts PDF text, selects context, and sends it with the question to Ollama; and chat through Docker Desktop’s OpenAI-compatible endpoint. The PDF stages and model calls are visible in the excerpts. The README documents the local and Docker use cases; no separate service implementation is present in the tree.
Main entry points: chat-file.py PDF chat loop · chat.py Ollama chat · docker-chat.py Docker chat · Deepa-PythonAzureAIAgenticAIMCPDotNET.pdf Reference PDF
Components 11
Terminal chat demos
- Ollama chat
chat.py - Docker chat
docker-chat.py - Package entry stub
src/ollamastudio/__init__.py
PDF-grounded chat
- PDF chat loop
chat-file.py - Reference PDF
data/Deepa-PythonAzureAIAgenticAIMCPDotNET.pdf - Text extraction
chat-file.py - Text chunking
chat-file.py - Chunk retrieval
chat-file.py
Model runtimes
- Ollama model
- Docker model endpoint
Other components
- Terminal user
Connections 11
- Terminal user → Ollama chat: enters query
chat.py - Ollama chat → Ollama model: streams chat
chat.py - Terminal user → Docker chat: enters query
docker-chat.py - Docker chat → Docker model endpoint: requests completion
docker-chat.py - Terminal user → PDF chat loop: asks question
chat-file.py - PDF chat loop → Reference PDF: loads document
chat-file.py - PDF chat loop → Text extraction: calls extraction
chat-file.py - Text extraction → Reference PDF: reads pages
chat-file.py - PDF chat loop → Text chunking: chunks text
chat-file.py - PDF chat loop → Chunk retrieval: selects context
chat-file.py - PDF chat loop → Ollama model: sends context
chat-file.py