How jotalexvalencia/ai-local-ollama-scripts works
This repository is a set of independent Python examples for using local Ollama models: web research, external tool calling, streaming, reasoning, and vision. The main user-to-result flow is the web-search agent: a query leads to search results, page text, and a model-generated answer. Other scripts demonstrate separate request/response workflows rather than one shared application. Edges reflect calls shown in excerpts; the README is empty, and unsampled lines or files do not support additional connections.
Main entry points: app_cero_ruido_tools.py Email Rules Agent · web_search_agent.py Web Search · app_api_externa.py Crypto Tool Agent · app.py Stream Comparison
Components 21
Web Research
- Search Query
Clase-18-WebSearch/web_search_agent.py - Web Search
Clase-18-WebSearch/web_search_agent.py - Page Fetch
Clase-18-WebSearch/web_search_agent.py - Answer Synthesis
Clase-18-WebSearch/web_search_agent.py
Tool Agents
- Crypto Tool Agent
Ollama-Streaming-Test/app_api_externa.py - Crypto Price Tool
Ollama-Streaming-Test/app_api_externa.py - Email Rules Agent
Ollama-Streaming-Test/app_cero_ruido_tools.py - Alias Categorizer
Ollama-Streaming-Test/app_cero_ruido_tools.py - Category Rules
Ollama-Streaming-Test/app_cero_ruido_tools.py
Ollama Demos
- Stream Comparison
Ollama-Streaming-Test/app.py - Nonstream Request
Ollama-Streaming-Test/app.py - Streaming Request
Ollama-Streaming-Test/app.py - Thinking HTTP Demo
Ollama-Streaming-Test/app_thinking.py - Thinking SDK Demo
Ollama-Streaming-Test/app_thinking_sdk.py - Vision Demo
Ollama-Streaming-Test/app_vision_example.py
Other components
- User
- DuckDuckGo
- Web Pages
- Ollama Service
- API Ninjas
- Image Input
Connections 27
- User → Search Query: asks
Clase-18-WebSearch/web_search_agent.py - Search Query → Web Search: searches
Clase-18-WebSearch/web_search_agent.py - Web Search → DuckDuckGo: queries
Clase-18-WebSearch/web_search_agent.py - Web Search → Page Fetch: passes URL
Clase-18-WebSearch/web_search_agent.py - Page Fetch → Web Pages: downloads
Clase-18-WebSearch/web_search_agent.py - Page Fetch → Answer Synthesis: provides text
Clase-18-WebSearch/web_search_agent.py - Answer Synthesis → Ollama Service: requests answer
Clase-18-WebSearch/web_search_agent.py - User → Crypto Tool Agent: asks prices
Ollama-Streaming-Test/app_api_externa.py - Crypto Tool Agent → Ollama Service: requests tool choice
Ollama-Streaming-Test/app_api_externa.py - Crypto Tool Agent → Crypto Price Tool: executes tool
Ollama-Streaming-Test/app_api_externa.py - Crypto Price Tool → API Ninjas: fetches price
Ollama-Streaming-Test/app_api_externa.py - User → Email Rules Agent: asks email rule
Ollama-Streaming-Test/app_cero_ruido_tools.py - Email Rules Agent → Ollama Service: requests tool choice
Ollama-Streaming-Test/app_cero_ruido_tools.py - Email Rules Agent → Alias Categorizer: executes tool
Ollama-Streaming-Test/app_cero_ruido_tools.py - Email Rules Agent → Category Rules: executes tool
Ollama-Streaming-Test/app_cero_ruido_tools.py - User → Stream Comparison: starts demo
Ollama-Streaming-Test/app.py - Stream Comparison → Nonstream Request: runs
Ollama-Streaming-Test/app.py - Stream Comparison → Streaming Request: runs
Ollama-Streaming-Test/app.py - Nonstream Request → Ollama Service: posts request
Ollama-Streaming-Test/app.py - Streaming Request → Ollama Service: streams request
Ollama-Streaming-Test/app.py - User → Thinking HTTP Demo: starts demo
Ollama-Streaming-Test/app_thinking.py - Thinking HTTP Demo → Ollama Service: streams chat
Ollama-Streaming-Test/app_thinking.py - User → Thinking SDK Demo: starts demo
Ollama-Streaming-Test/app_thinking_sdk.py - Thinking SDK Demo → Ollama Service: streams chat
Ollama-Streaming-Test/app_thinking_sdk.py - User → Vision Demo: starts demo
Ollama-Streaming-Test/app_vision_example.py - Image Input → Vision Demo: provides image
Ollama-Streaming-Test/app_vision_example.py - Vision Demo → Ollama Service: requests description
Ollama-Streaming-Test/app_vision_example.py