<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Konrad on Medium]]></title>
        <description><![CDATA[Stories by Konrad on Medium]]></description>
        <link>https://medium.com/@dzbik.konrad?source=rss-db7fe51f64f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-OQO-zEOttyK-F9_tZ_KRw.jpeg</url>
            <title>Stories by Konrad on Medium</title>
            <link>https://medium.com/@dzbik.konrad?source=rss-db7fe51f64f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:20:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dzbik.konrad/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Your Own Private ChatGPT That Actually Stays Private — OpenWebUI + Ollama From Scratch]]></title>
            <link>https://medium.com/@dzbik.konrad/your-own-private-chatgpt-that-actually-stays-private-openwebui-ollama-from-scratch-b46cefc8a549?source=rss-db7fe51f64f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b46cefc8a549</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[open-webui]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Konrad]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 15:15:03 GMT</pubDate>
            <atom:updated>2025-11-14T15:15:03.685Z</atom:updated>
            <content:encoded><![CDATA[<h3>Your Own Private ChatGPT That Actually Stays Private — OpenWebUI + Ollama From Scratch</h3><h4>Build Your Own Private ChatGPT in 10 Minutes — No Tokens, No Cloud Spying (Ollama + OpenWebUI From Scratch)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndXHm4khEOejX6zwKv1xww.png" /><figcaption>Image generated by Grok xAI, inspired by ollama and openwebui</figcaption></figure><p>In today&#39;s episode, we will focus on an Open WebUI configuration with ollama models running locally- <a href="https://medium.com/@dzbik.konrad/ollama-quick-start-for-macos-eb6de56e9cba">ollama configuration here</a>. If you’re like me and you’ve been messing around with local AI models for a while, you probably get tired of typing stuff into a terminal, or for curiosity, you just want a real ChatGPT experience- that’s where <a href="https://openwebui.com/">Open WebU</a>I comes in.</p><p>No internet needed for basic chats — perfect for offline work or sensitive docs.</p><blockquote><em>Open WebUI </em>is basically a ready-to-go frontend for your models, with search history, tooling, an admin panel, context switching, and way more than you can imagine — let’s dive into the topic.</blockquote><p>First things first — you need ollama, and here you can choose to configure it locally in 3 minutes — check my tutorial <a href="https://medium.com/@dzbik.konrad/ollama-quick-start-for-macos-eb6de56e9cba">here</a>, or you can make it work with a single Docker command with Open WebUI directly.</p><h3>Installation process</h3><p>Let’s bring ideas to life. Now, we can choose between 3 different methods of running all the required services, all depending on your preferences and experience- if you want to go all-in, choose option “b)”, as it’s the simplest way.</p><h4>a) OpenWebUI Docker + Ollama installed locally</h4><p>I prefer to keep things separately, as I need to run ollama not only with Open WebUI, but with Google ADK, and some other custom services.</p><p>It’s ideally a scenario for a geek, not for a general purpose.</p><pre>docker run -d -p 3000:8080 \<br>--add-host=host.docker.internal:host-gateway \<br>-v open-webui:/app/backend/data \<br>--name open-webui \<br>--restart always ghcr.io/open-webui/open-webui:main</pre><h4>b) OpenWebUI Docker + Ollama Docker within a single command</h4><p>The best way to run all the things using a single command, not messing with Ollama configuration, all the packages will be separated using Docker, and you can freely run and stop services when you want to avoid high memory usage.</p><pre>docker run -d -p 3000:8080 \<br>-v ollama:/root/.ollama \<br>-v open-webui:/app/backend/data \<br>--name open-webui \<br>--restart always ghcr.io/open-webui/open-webui:ollama</pre><h4>c) OpenWebUI with pip + Ollama installed locally</h4><p>Perfect if you’re on Linux/Mac and hate containers, or if your work laptop blocks Docker :)</p><p>In addition, you can create your own compose to play with 3rd party APIs, working on some custom apps, etc.</p><pre># 1. Create a clean environment (highly recommended)<br>python -m venv openwebui-env<br>source openwebui-env/bin/activate   # Windows: openwebui-env\Scripts\activate</pre><pre># 2. Upgrade pip and install open-webui package<br>pip install --upgrade pip<br>pip install open-webui</pre><pre># 3. Run it<br>open-webui serve</pre><h3>Playing with Open WebUI</h3><p>Wait a minute, as the first run takes a couple of minutes to download everything, it doesn’t matter what method you choose, there’s a need for downloading packages to your machine to keep all the data private.</p><p>That’s it. All you need to do is go to <a href="http://localhost:3000/">http://localhost:3000</a> (<strong>or </strong><a href="http://localhost:8080/"><strong>http://localhost:8080</strong></a><strong> for pip installation</strong>) in your browser and complete the first configuration, where you’re asked to create an admin account for your instance —easy. It’s still just locally running, but you need an account to manage the system, don’t you?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HB1BllA2nbHr_682h3bE2Q.png" /><figcaption>Wecome page of Open WebUI- somehow for pip, it’s polish</figcaption></figure><p>Click the button at the bottom of the page, then create an admin account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AVtnMgSG1OmoisRcUfGpIQ.png" /><figcaption>Admin account creation process</figcaption></figure><p>Fill all required data- for a test purpose, it could be anything, like user@user.com and a simple password, but remember to never use it like that on a production-type environment! :)</p><h3><strong>Messing around with models</strong></h3><p>In case you don&#39;t have ollama installed locally, you can manage models directly from the Open WebUI Admin panel -&gt; click on the user name icon in the bottom left corner of the webpage, go to models, and click the download icon in the top right corner, and then you can pull a model from ollama.com by name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEFX_2tm2LpoJkxNk_ViDg.png" /><figcaption>How to pull new model directly to your machine</figcaption></figure><p>After admin account creation, you’re ready to go- now just select your model in the top left corner and start typing- depending on your model functionality, you will be able to do different kinds of stuff- web search, code generation, content creation, and more!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6iHFgmAg08glxSDN5TJlQ.png" /><figcaption>Example of chat with Bielik- Polish LLM model</figcaption></figure><p>In case you need a new model and <strong>ollama is installed locally</strong>, you can simply open your terminal and pull one from the ollama library. Here’s a quick reminder:</p><pre>#example: ollama pull MODEL_NAME<br>ollama pull SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M</pre><p>Full list of available models here: <a href="https://ollama.com/search">https://ollama.com/search</a></p><blockquote><strong><em>Important </em></strong><em><br>Be aware that different models will need less or more from your device- cit ould be challenging to run a big model on the laptop, so for playing with small ones, choose quantified versions and check for performance.</em></blockquote><p>Even when you decide to close the web browser, all your chat history will be saved automatically by openwebui- so you can keep conversation history, just like for a chatGPT, grok or gemini- from the end user perspective, this kind of interface is ideally the same, as for enterprise models and system, that actually have your data- with ollama and openwebui, all your data are stored localy, withat a need for a internet connection either- of course if you want to browse an internet, it would be helpfull to have :)</p><p>Now you can play with your models, in ChatGPT-like style, or even run it on your homelab and have all your data secure and under control.</p><p>From my perspective, working with Open WebUI will make it easy to adopt models from ollama, and play with them like you want, without worrying about data security, leaks, or confidential documents thrown away by a new team member because they want to rewrite an email with all the data- just saying :)</p><h3>That’s it.</h3><p>10 minutes and you have your own private ChatGPT that actually respects your privacy.</p><p>Docker or pip — pick your poison. I switch between both depending on the machine.</p><p>Enjoy never paying for tokens again,</p><h3>📚 Resources</h3><ul><li>Ollama SDK: <a href="https://ollama.com/">https://ollama.com/</a></li><li>Open WebUI: <a href="https://openwebui.com/">https://openwebui.com/</a></li><li>Github files for quick start, raw version for developers, with a readme and more <a href="https://github.com/konraddzbik/llm-kb">konraddzbik github</a></li></ul><p><strong>P.S. Star the repo: </strong><a href="https://github.com/open-webui/open-webui"><strong>https://github.com/open-webui/open-webu</strong></a><strong>i</strong></p><p>Now go build your AI fortress — with or without containers! 🏰🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b46cefc8a549" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google ADK on Your Local Machine: A Beginner’s Guide]]></title>
            <link>https://medium.com/@dzbik.konrad/google-adk-on-your-local-machine-a-beginners-guide-6914300b2283?source=rss-db7fe51f64f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6914300b2283</guid>
            <category><![CDATA[google-adk]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[localhost]]></category>
            <category><![CDATA[google-ai]]></category>
            <category><![CDATA[google-ai-studio]]></category>
            <dc:creator><![CDATA[Konrad]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 22:25:54 GMT</pubDate>
            <atom:updated>2025-11-11T21:27:28.644Z</atom:updated>
            <content:encoded><![CDATA[<h4>If you’ve been curious about Google’s Agent Development Kit (<strong>ADK</strong>) but felt a bit overwhelmed by the setup, you’re in the right place. ADK is this cool open-source toolkit from Google that lets you build, test, and run AI agents on your own infrastructure- probably your PC, or deploy it whenever you want.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*0eDSYkm0RpH1LMtZ9E-cLA.png" /><figcaption>GrokAI interpretation of Ai agents team</figcaption></figure><p>For our current setup, we do not need fancy cloud setups. It’s perfect for beginners who want to experiment with AI without creating an overwhelming cloud infrastructure- for GCP, it’s simple, but about that I will promise next article, which will explain the setup and configuration in detail.</p><p>In this article, we’ll walk through a super simple, quick-start guide based on my own notes from fiddling around with it. I’ll cover the basics step by step, throw in some detailed instructions, and end with a tips and tricks section to make your life easier. By the end, you’ll have your first agent up and running in a terminal or even a web browser. Let’s dive in!</p><h4>🧩<strong> Why Bother with Local ADK Setup?</strong></h4><p>Before we jump into the “how,” a quick “why.” Running ADK locally means faster iteration — no waiting for servers, full control over your data, and it’s free (<strong><em>aside from any API calls you make to AI Studio</em></strong>). It’s great for prototyping agents that can chat, reason, or integrate with tools like Gemini, or even ollama running models- find a <a href="https://medium.com/@dzbik.konrad/ollama-quick-start-for-macos-eb6de56e9cba">way to run ollama in my other article</a>. Plus, once it’s set up, you can tweak and test offline.</p><p>Sound fun? Cool, let’s get your machine ready.</p><h4>⚙️ <strong>Prerequisites: What You Need to Start:</strong></h4><ul><li><strong>Python 3.9 or later</strong>: This is the backbone. Check your version with python — version in your terminal. If it’s older, grab the latest from <a href="https://www.python.org/downloads/">python.org</a>.</li><li><strong>terminal</strong> (Bash, Zsh, or whatever your OS uses — I’m on macOS with Zsh, but this works on Linux/Windows too with minor tweaks).</li><li><strong>pip</strong>: Python’s package manager. It usually comes with Python, but confirm with pip — version.</li></ul><p>That’s it for the setup. You’ll need a Gemini API key for the AI smarts — we’ll grab that in a sec.</p><h3><strong>Step-by-Step Installation and Setup</strong></h3><p>Follow these instructions closely; all the commands should be run from your preferred terminal. I’ll explain each part so it’s crystal clear, even if you’re new to this.</p><h4>1. Check for Python and pip versions on your machine</h4><pre>pip --version<br>python --version</pre><p><strong>🧪 Pro Tip on Environments</strong>: If you’re like me and juggle multiple projects, use a virtual environment to keep things clean and avoid installing pip packages globally- trust me, it will save your time and emotional state in the future. Before the pip install command for Google Adk, run:</p><pre>python -m venv .adk-env<br>source .adk-env/bin/activate # On Windows: adk-env\Scripts\activate</pre><p>After these commands, all the packages will be installed separately from your global environment, so you can keep your projects independent.</p><h4>2. Install Google ADK via pip</h4><pre>pip install google-adk</pre><p>This pulls the ADK package from PyPI. It might take a minute — grab a coffee.</p><p>After installation, refresh your shell:</p><pre>source ~/.zshrc</pre><p><em>Why this?</em> It reloads your shell config so the adk command is recognized everywhere.</p><h4><strong>3. Grab a Gemini API Key</strong></h4><p>ADK shines with Google’s Gemini models for the AI brain. Head to <a href="https://aistudio.google.com/">Google AI Studio</a> (it’s free to sign up).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NTtlHXeBjETk77MO8LiqRA.png" /></figure><ul><li>Click “Create API key”</li><li>Create a new key — it’s freemium, so you get generous free tiers for testing.</li></ul><p>Copy that key- the next command will ask for it.</p><h4><strong>4. Create Your First Agent</strong></h4><p>Time to make something! Run:</p><pre>adk create my_agent</pre><p>This scaffolds a new agent folder called my_agent with all the boilerplate: .env file, small but enough code, and an init file for Python.</p><p>During the installation process, you will be asked to choose your agent and fill in the Gemini API key- it’s a freemium service, you don’t need to put your card details or connect any other type of billing- for the purpose of testing, it’s more than enough.</p><pre>(adk-env) kd@macbook % adk create my_agent        <br>Choose a model for the root agent:<br>1. gemini-2.5-flash<br>2. Other models (fill later)<br>Choose model (1, 2): 1<br>1. Google AI<br>2. Vertex AI<br>Choose a backend (1, 2): 1<br><br>Don&#39;t have API Key? Create one in AI Studio: https://aistudio.google.com/apikey<br><br>Enter Google API key: <br>Enter Google API key: SUPER_SECRET_API_KEY<br><br>Agent created in /Users/kd/medium/my_agent:<br>- .env<br>- __init__.py<br>- agent.py</pre><blockquote>Explaination:<br>- <strong>Gemini flash</strong>, as it will be more then fine for local testing <br>- <strong>Google AI-</strong> for a personal token from AI Studio<br>- Paste your key from <strong>Google AI Studio</strong>, as it will be added automtically to your .env file, and by default used by the Google ADK</blockquote><h4>⚠️ <strong>Pro tip: Never commit this to GitHub — treat it like a password, as your .env should stay clear and without any type of sensitive data like KEYs, tokens, passwords, etc</strong>.</h4><p>If you’re using a different model later (ADK supports others), you might add more vars — but for Gemini agents, this is key.</p><p><strong>5. Run Your Agent!</strong></p><p>You’re ready. From the parent directory, fire it up in the terminal:</p><pre>adk run my_agent</pre><p>It’ll spin up, connect to Gemini via your key, and wait for input. Type something like “Hello, agent!” and watch it respond.</p><p>Want a fancier interface? Use the web mode, with a ready-to-go UI design and full agent flow visibility</p><pre>adk web</pre><p>At this point, output from your terminal should look like that- or similar for Windows/Linux:</p><pre>INFO:     Started server process [12345]<br>INFO:     Waiting for application startup.<br><br>+-----------------------------------------------------------------------------+<br>| ADK Web Server started                                                      |<br>|                                                                             |<br>| For local testing, access at http://127.0.0.1:8000.                         |<br>+-----------------------------------------------------------------------------+<br><br>INFO:     Application startup complete.<br>INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)</pre><p>This launches a browser tab at <a href="http://localhost:8000/dev-ui/">http://localhost:8000</a> (default). Chat away in a UI — feels like a mini ChatGPT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBNlHidyuIu1GIV4ALWF5w.png" /><figcaption>Build-in UI for Google ADK</figcaption></figure><p>Visiting the localhost address will show you a simple design with a chat to work with your agent.</p><p>Because we’ve only created one agent, the agent dropdown will automatically select the already-created one. If you’re working with multiple agent directories, you can choose the correct one for a chat.</p><h4>💡 Pro Tips <strong>and Tricks for Smooth Sailing</strong></h4><p>Here’s where the magic happens. These are battle-tested from my own trial-and-error sessions.</p><ul><li><strong>Port Customization</strong></li></ul><p>Default port 8000 conflicting? No problem:</p><pre>adk web — port 6789</pre><p>Now it’s at <a href="http://localhost:6789/">http://localhost:6789</a>. Great for running multiple agents or services at the same time.</p><ul><li><strong>Wrong directory in the terminal</strong></li></ul><pre>Warning: No agents found in current folder.</pre><p>Be sure that you&#39;re right above the directory of your agent- in our example, it has to be <strong>/medium </strong>because the agent path<strong> is /medium/my_agent</strong></p><h4>📚 <strong>Debugging Common Hiccups</strong></h4><ul><li><strong>Command not found: adk</strong>? Double-check pip install and shell refresh. Restart the terminal if needed.</li><li><strong>API key errors</strong>? Ensure it’s in .env exactly as GOOGLE_API_KEY=”AI…” (Gemini keys start with AI… or similar — check AI Studio).</li><li><strong>Python version woes</strong>? ADK needs 3.9+. Use python3 instead of python on some systems.</li><li><strong>Slow responses</strong>? Local run is fast, but Gemini calls depend on your internet. Test with simple prompts first.</li></ul><p>🔌 <strong>Advanced Tweaks Worth Mentioning</strong></p><ul><li><strong>Custom Models</strong>: In my_agent/config.yaml, swap Gemini for other backends if you have APIs (e.g., OpenAI, local LLMs via Ollama).</li><li><strong>Adding Tools</strong>: Edit agent.py to give your agent superpowers — like web search or code execution. Start small, involve later.</li><li><strong>Version Control</strong>: Git your my_agent folder, but add .env to .gitignore.</li><li><strong>Offline Mode</strong>: ADK can run without APIs for basic logic, but for AI, you’ll need that key occasionally, or local running ollama model-<a href="https://medium.com/@dzbik.konrad/ollama-quick-start-for-macos-eb6de56e9cba"> check simple configuration here.</a></li><li><strong>Scaling Up</strong>: Once comfy locally, deploy to Vercel or Google Cloud with one command- but that’s for another day.</li><li><strong>Security Note</strong>: Local = private, but API calls send data to Google. Review their privacy policy if handling sensitive info.</li></ul><p>🗄️ <strong>Bonus: Quick Experiment</strong></p><p>As a bonus, and short introduction to the next article, copy and paste this code to your <strong>agent.py file, and restart the Adk web interface by simply Ctrl +C and run the command again.</strong></p><pre>from google.adk.agents import Agent, SequentialAgent<br><br># Subagent 1: Math &amp; Logic Expert<br>math_agent = Agent(<br>    name=&quot;MathExpert&quot;,<br>    model=&quot;gemini-2.5-flash&quot;,<br>    description=(&quot;&quot;&quot;You solve math, logic, and coding problems step-by-step.&quot;&quot;&quot;), <br>    instruction=(&quot;&quot;&quot;Always show your work. Use LaTeX for equations. Be precise.&quot;&quot;&quot;), <br>    output_key=&quot;math_response&quot;<br>)<br><br># Subagent 2: Creative Writer<br>writer_agent = Agent(<br>    model=&quot;gemini-2.5-flash&quot;,<br>    name=&quot;CreativeWriter&quot;,<br>    description=(&quot;&quot;&quot;You craft stories, poems, emails, or social media posts.&quot;&quot;&quot;), <br>    instruction=(&quot;&quot;&quot;Be engaging, vivid, and match the requested tone.&quot;&quot;&quot;), <br>    output_key=&quot;writing_response&quot;<br>)<br><br># Subagent 3: Local Guide (Poland Edition)<br>local_guide = Agent(<br>    model=&quot;gemini-2.5-flash&quot;,<br>    name=&quot;PolandGuide&quot;,<br>    description=(&quot;&quot;&quot;You give insider tips about Poland: food, travel, culture, events.&quot;&quot;&quot;),<br>    instruction=(&quot;&quot;&quot;Use Polish phrases when relevant. Be warm and practical.&quot;&quot;&quot;),<br>    output_key=&quot;local_guide_response&quot;<br>)<br><br># Root Agent: The Smart Dispatcher<br>root_agent = Agent(<br>    model=&quot;gemini-2.5-flash&quot;,<br>    name=&quot;RootAgent&quot;,<br>    description=(&quot;&quot;&quot;A helpful assistant that routes questions to the right expert.&quot;&quot;&quot;),<br>    instruction=(&quot;&quot;&quot;<br>    Analyze the user&#39;s request. Choose ONE subagent to anser it based on the topic, and user request.:<br>    - MathExpert → math, puzzles, code, calculations<br>    - CreativeWriter → stories, writing, emails, poetry<br>    - PolandGuide → anything about Poland, travel, culture, food<br><br>    Forward the query exactly. Do not answer yourself.<br>    If user do not specify a topic, sugest topic based on their query or show options.<br>    After the expert replies, say: &#39;Routed to: {agent name}&#39; at the end.<br>    &quot;&quot;&quot;),<br>    sub_agents=[math_agent, writer_agent, local_guide]<br>)</pre><p>Now, you can play with agents, and the full flow will be visible, and the agent reasoning on the high level with the left sidebar charts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_jRrbjjY2XZoda8dgR43w.png" /><figcaption>Simple multi agent configuration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bkg2loro0Y2NsFIjSA6XQw.png" /><figcaption>Polish guide model in action</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLTFGsh6hxLCAFgx7PI36w.png" /><figcaption>Creative writer, preapring someting about the user topic</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*On2w2I9-3hHewSZhzf_LsQ.png" /><figcaption>Math agent with logic puzzles, tips and tricks</figcaption></figure><h4>🔺 Future Ideas:</h4><ul><li>Make a “joke teller” agent: Prompt it in code to always respond with puns.</li><li>Chain agents: One for context, next for planning, last for execution</li></ul><h4><strong>Wrapping Up: Your Local AI Playground Awaits</strong></h4><p>There you have it — a complete, no-BS guide to spinning up Google ADK locally. From pip install to browser chats, you should be good to go in under 10 minutes. It’s empowering to have this on your machine, right? Experiment, break things, learn.</p><p>If you hit snags, check the <a href="https://github.com/google/adk-python">official ADK docs</a> or ping me on LinkedIn. What’s your first agent gonna do? Drop a comment — I’d love to hear!</p><p>Happy building! 🚀</p><h3>📚 Resources</h3><ul><li>Google ADK: <a href="https://google.github.io/adk-docs/">https://google.github.io/adk-docs/</a></li><li>Google AI Studio: <a href="https://aistudio.google.com/">https://aistudio.google.com/</a></li><li>Github files for quick start, raw version for developers, with a readme and more <a href="https://github.com/konraddzbik/llm-kb">konraddzbik github</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6914300b2283" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ollama Quick Start for macOS ]]></title>
            <link>https://medium.com/@dzbik.konrad/ollama-quick-start-for-macos-eb6de56e9cba?source=rss-db7fe51f64f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb6de56e9cba</guid>
            <category><![CDATA[bielik]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[local-llm]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Konrad]]></dc:creator>
            <pubDate>Mon, 27 Oct 2025 22:54:40 GMT</pubDate>
            <atom:updated>2025-11-11T21:28:04.348Z</atom:updated>
            <content:encoded><![CDATA[<p>In this example, we’ll focus on running the ollama model locally, without a detailed description of every aspect of the environment or production running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HaK5O2-ToJ2tmZjAaDVDLg.png" /><figcaption>Image cretaed by grok.com, inspired by Ollama: <a href="https://docs.ollama.com/">https://docs.ollama.com/</a></figcaption></figure><p>Ollama is a platform for running LLM models directly on your machine- laptop, desktop, server- it also supports Docker, with CORS configuration.</p><p>With ollama, you can prompt or work with LLM models locally, even without an internet connection, with full control over AI workflows.</p><p>Working with ollama allows us to use one of the model listed in their library- <a href="https://ollama.com/library">https://ollama.com/library</a>. For this tutorial, we’ll choose a Polish language model called Bielik, but you can check and choose whatever model you want, with the parameters that are a good fit for your local environment.</p><p>This guide gets you from zero to chatting with an LLM model like Bielik in under 5 minutes.</p><h3>🚀 Install Ollama</h3><h4>Download directly: ollama.com/download</h4><blockquote><em>No signup. No login. Ollama runs 100% locally.</em></blockquote><p>Run the downloaded package for installation, and allow the ollama CLI to start by authorizing the package- could be a password or a passkey.</p><h3>🧠 Pull a LLM: Bielik</h3><pre>ollama pull SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M</pre><blockquote><em>Why this model?</em></blockquote><ul><li>11B parameters</li><li>Excellent Polish fluency</li><li>Q4_K_M = best quality/size balance (~6.5 GB)</li></ul><blockquote>Other Bielik variants:</blockquote><pre>ollama pull SpeakLeash/bielik-7b-instruct-v0.1<br>ollama pull SpeakLeash/bielik-11b-v2.3-instruct:Q5_K_M</pre><p>Search more: <a href="https://ollama.com/library">ollama.com/library</a></p><h3>💬 Run &amp; Chat in Terminal</h3><p>After pulling a model, we’re able to run it on the local machine, and chat using a terminal, where the model is started, or we can send some instructions with CURL.</p><pre>ollama run SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M</pre><pre>Cześć! Napisz mi wiersz o jesieni.<br>&gt;&gt;&gt; Jesień maluje liście złotem,<br>&gt;&gt;&gt; Wiatr szepcze pieśni w ciszy drzew...</pre><h3>🧪 Test with curl</h3><p>You can also call an API endpoint to check the model response.</p><pre>curl http://localhost:11434/api/chat -d &#39;{<br>  &quot;model&quot;: &quot;SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M&quot;,<br>  &quot;messages&quot;: [<br>    { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Podsumuj Konstytucję RP w 3 punktach.&quot; }<br>  ],<br>  &quot;stream&quot;: false # Add &quot;stream&quot;: false if you want full response at once:<br>}&#39;</pre><h3>How to exit chat?</h3><pre>`Ctrl+D` or type `/bye`</pre><h3>🔍 Check Model Capabilities</h3><p>If you want to use your chosen model with 3rd third-party SDK, you’ve to check if all required capabilities are available for the ollama version of LLM</p><pre>ollama show SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M</pre><p>Sample Output:</p><pre>Model<br>    architecture        llama     <br>    parameters          11.2B     <br>    context length      32768     <br>    embedding length    4096      <br>    quantization        Q4_K_M    <br><br>  Capabilities<br>    completion    <br><br>  Parameters<br>    stop           &quot;&lt;|start_header_id|&gt;&quot;    <br>    stop           &quot;&lt;|end_header_id|&gt;&quot;      <br>    stop           &quot;&lt;|eot_id|&gt;&quot;             <br>    temperature    0.2   </pre><blockquote><em>Tools (function calling): Not supported in ollama Bielik models</em></blockquote><h3>🧪 Test API with Tools (If Supported)</h3><p>If you prefer to check with curl, or have to- for example, in a Docker environment, use the below instruction ot check the ‘tools’ capabilities of the selected model.</p><pre>curl http://localhost:11434/api/chat -d &#39;{<br>  &quot;model&quot;: &quot;SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M&quot;,<br>  &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Jaka jest pogoda w Warszawie?&quot;}],<br>  &quot;tools&quot;: [{<br>    &quot;type&quot;: &quot;function&quot;,<br>    &quot;function&quot;: {<br>      &quot;name&quot;: &quot;get_weather&quot;,<br>      &quot;description&quot;: &quot;Get current weather&quot;,<br>      &quot;parameters&quot;: {&quot;type&quot;: &quot;object&quot;, &quot;properties&quot;: {&quot;city&quot;: {&quot;type&quot;: &quot;string&quot;}}}<br>    }<br>  }]<br>}&#39;</pre><pre>Bielik result:<br>{ &quot;error&quot;: &quot;registry.ollama.ai/SpeakLeash/bielik-11b-v2.3-instruct:Q4_K_M does not support tools&quot; }</pre><h3>🌐 Use via API (OpenAI Compatible)</h3><p>Ollama runs a local server at:</p><pre>http://localhost:11434</pre><p>This feature is especially helpful when it comes to integration with other APIs, in a Docker environment, or anywhere where the REST protocol is available.</p><h3>🦙 Ollama works with external tools and SDKs</h3><ul><li>LangChain</li><li>LlamaIndex</li><li>Google ADK</li><li>OpenAI Python SDK</li></ul><h3>🛠 CLI Commands Cheat Sheet</h3><p>ollama listList downloaded models<br>ollama psShow running models<br>ollama run &lt;model&gt;Start chat<br>ollama serveStart API server (auto)<br>ollama stop &lt;model&gt;Stop a model<br>ollama rm &lt;model&gt;Delete a model<br>ollama show &lt;model&gt;View model info</p><h3>⚠️ Troubleshooting</h3><p>ollama: command not foundRestart the terminal or run: export PATH=&quot;$HOME/.ollama/bin:$PATH&quot;<br>Out of memory: Use :Q4_0 or :Q4_K_M. 11B needs ~8–10 GB RAM<br>Port 11434 not responding: Run ollama serve or restart the Ollama app<br>GPU not used (M1/M2/M3) Metal is auto-enabled — no config needed</p><h3>💡 Pro Tips</h3><ul><li>Run multiple models in parallel (open new terminals)</li><li>Free space: ollama rm &lt;model&gt;</li><li>Auto-start: Enabled by default on macOS</li><li>Best quant: :Q4_K_M (quality) → :Q4_0 (smaller)</li></ul><h3>📚 Resources</h3><ul><li>Official Site: <a href="https://ollama.com/">ollama.com</a></li><li>Model Library: <a href="https://ollama.com/library">ollama.com/library</a></li><li>Discord: <a href="https://discord.gg/ollama">discord.gg/ollama</a></li><li>BielikAI: <a href="https://bielik.ai/">https://bielik.ai/</a></li><li>Raw version for developers, with a readme and more <a href="https://github.com/konraddzbik/llm-kb">https://github.com/konraddzbik/llm-kb</a></li></ul><p>You now have a private, offline, Polish AI assistant that runs locally on your machine. Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb6de56e9cba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to secure local development using Azure Key Vault? .Net]]></title>
            <link>https://medium.com/@dzbik.konrad/how-to-secure-local-development-using-azure-key-vault-net-61a9eaebbda1?source=rss-db7fe51f64f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/61a9eaebbda1</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[keyvault]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Konrad]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 17:11:51 GMT</pubDate>
            <atom:updated>2022-09-07T17:13:50.089Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to secure local development using Azure Key Vault? .Net</h3><p>This article will not provide instructions, on how to create Key Vault, or add secrets, but on how to use them in the localhost environment.</p><p>Imagine, that you start a simple project, MVP is great, so now you’re going to create a team, life is beautiful, what could go wrong? Well, technically, you’re not sure who will stay in the team, or who needs to have information about configuration, secrets, and remote databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_Od6XR9zxLVwGJVTWgmUQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@martinshreder?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Martin Shreder</a> on <a href="https://unsplash.com/s/photos/code?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Even if your remote environment is fully secure( tbh, is it?), you still need to store some information in a GitHub repository for every developer, sometimes for testing locally 3rd part solution, that requires a “secret” to communicate, simulate on the sandbox, etc.</p><p>There is a lot of articles, where you can find out, how easy and developer-friendly is Azure Key Vault- nope, definitely it isn’t for the first time in a particular programming language and client(your) machine configuration.</p><p>Let me explain it, from the perspective of the programmer with a Windows running machine. I’ve tried to figure out, where the correct configuration for the .Net Framework running locally is, to access KeyVault from a Resource Group. <br>The obvious solution is to use a Connected Service option from Visual Studio, where you, as a correctly logged user in the cloud and in your local machine, have access to the Key Vault and the whole magic is done by Microsoft in the background. You will have some additional files and a specific builder for the appSettings section in Web.config. <br>For my example it will look like in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-q9LrV53Ql0ciGfmsbZxA.png" /><figcaption>AppSettings config builder</figcaption></figure><p>Following, almost all the articles, everything should work. Well, guess what, it will not, for me. Trying to run API caused 500 Internal Server Error, because of <strong>AADSTS1002016, </strong>which is marked as a problem with TLS, but my API is actually configured as self-signed, with the correct configuration for TLS1.2 exactly, like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*gZ7qLB7sGbT3-vfXv3DsSw.png" /><figcaption>TLS1.2 configuration for .Net standard</figcaption></figure><p>so, what is wrong? Let’s try to find out, how Windows manage protocols, and which version of TLS is used by the browser- for me, it was Chrome, with information, that TLS1.2 is enabled by default. We need to delve into the topic.</p><p>The next thought is that maybe it’s all about Windows? In this case, exactly like for the browser, TLS1.2 is enabled by default for Windows 10. Everything should be fine with my solution if all of these properties are correct, but still, API returned 500- even after the computer restart ;)</p><p>I’m the type of developer that is going to solve the problem or find a better solution.</p><p>I’ve decided to read Microsoft documentation again, search for some information about the error, and… edit the Windows Registry. Technically, I’ve had to add new records, but finally works for local development! :)</p><p>Something strange happened, and my registry keys were not correctly added by Windows default, so i need to follow instructions from <a href="https://docs.microsoft.com/en-us/troubleshoot/azure/active-directory/enable-support-tls-environment?tabs=azure-monitor#enable-tls-12-on-client-or-server-operating-systems-">https://docs.microsoft.com/en-us/troubleshoot/azure/active-directory/enable-support-tls-environment?tabs=azure-monitor#enable-tls-12-on-client-or-server-operating-systems-</a> and actually, my API starts working correctly, and everything from dedicated developer Key Vault was read, whoa! These small changes in Registry forced TLS1.2, and now Azure authorized my local development environment.</p><p>It cost me a lot of time, a second Google Search Page, and even more tries with one big ‘why’ on my face. I hope you’ll enjoy, and able to do it in an hour instead of 8.</p><p>A good practice is to create separate Key Vaults per app, per environment, so keep in mind, that this solution could be safer because specific App will only access secrets, that are designed for.</p><p>In the next few articles, I will provide you with some tips and tricks for configuration per environment, .Net Core, React+TS, and how to configure your Resource Group correctly for Key Vaults owners and App Services.</p><p>If you’ve additionall questions, contact me here or o the LinkedIN, enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61a9eaebbda1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>