{"id":29484062,"url":"https://github.com/jonigl/ai-sessions","last_synced_at":"2025-07-15T04:21:05.941Z","repository":{"id":279640948,"uuid":"939452886","full_name":"jonigl/ai-sessions","owner":"jonigl","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-18T19:35:33.000Z","size":2180,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-22T03:03:08.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonigl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-26T15:07:42.000Z","updated_at":"2025-06-11T14:26:58.000Z","dependencies_parsed_at":"2025-02-26T16:44:34.428Z","dependency_job_id":"c07af151-50ab-483c-908b-1cfa27617b27","html_url":"https://github.com/jonigl/ai-sessions","commit_stats":null,"previous_names":["jonigl/ai-sessions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonigl/ai-sessions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonigl%2Fai-sessions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonigl%2Fai-sessions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonigl%2Fai-sessions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonigl%2Fai-sessions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonigl","download_url":"https://codeload.github.com/jonigl/ai-sessions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonigl%2Fai-sessions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402691,"owners_count":23759218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-15T04:21:04.996Z","updated_at":"2025-07-15T04:21:05.930Z","avatar_url":"https://github.com/jonigl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Sessions Repository\n\nA collection of examples, tutorials, and projects exploring various AI technologies with a focus on local AI using Ollama.\n\n## Overview\n\nThis repository contains organized examples of working with AI models locally through Ollama in different programming languages and configurations. Each directory is organized by date (YYYYMMDD format) and contains self-contained examples that can be run independently.\n\n## Prerequisites\n\n- [Ollama](https://ollama.com/) - Install from https://github.com/ollama/ollama\n- Depending on the example:\n  - Python 3.8+ with pip\n  - Node.js and npm/yarn\n  - Docker\n  - Various language-specific dependencies (check each example's README)\n\n## Repository Structure\n\n### Sessions by Date\n\n| Date | Session | Description |\n|------|---------|-------------|\n| [20250226](./20250226/) | Ollama Python | Examples of using Ollama with Python including generation, streaming, chat history, and tools |\n| [20250305](./20250305/) | Ollama JS \u0026 Docker | JavaScript examples with Ollama and Docker setup instructions |\n| [20250312](./20250312/) | Ollama RAG CLI | A command-line tool for Retrieval-Augmented Generation with Ollama |\n| [20250326](./20250326/) | Deployments API | Tools for calling APIs using Ollama's function calling features |\n\n## Sessions Overview\n\n### Ollama Python (Feb 26, 2025)\nExamples of using Ollama with Python, including:\n- Basic text generation\n- Streaming responses\n- Chat with history\n- Function calling and tools integration\n- System role customization\n\n### Ollama JavaScript (Mar 5, 2025)\nExamples of using Ollama with JavaScript/TypeScript:\n- Structured outputs\n- Multimodal models using llava:13b\n\n### Ollama Docker (Mar 5, 2025)\nInstructions for running Ollama in Docker:\n- Container setup\n- Volume management\n- Interactive console usage\n\n### Ollama RAG CLI (Mar 12, 2025)\nA complete command-line application for Retrieval-Augmented Generation:\n- Document embedding\n- Vector database storage\n- Interactive chat with document context\n- Support for multiple file types\n\n### Deployments API (Mar 26, 2025)\nWorking with tools and function calling to interact with external APIs:\n- API integrations with Ollama models\n- Testing different models for tool usage\n- Using `uv` Python package manager\n- Environment configuration with dotenv\n\n## Getting Started\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/yourusername/ai-sessions.git\n   cd ai-sessions\n   ```\n\n2. Navigate to any example directory and follow the README instructions for that specific example:\n   ```bash\n   cd 20250312/ollama-rag-cli\n   # Follow the instructions in the README.md\n   ```\n\n3. Make sure to download the required Ollama models as specified in each example:\n   ```bash\n   ollama pull llama3:8b\n   ollama pull nomic-embed-text\n   # etc.\n   ```\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonigl%2Fai-sessions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonigl%2Fai-sessions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonigl%2Fai-sessions/lists"}