<?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 Otto Lilja-Lund on Medium]]></title>
        <description><![CDATA[Stories by Otto Lilja-Lund on Medium]]></description>
        <link>https://medium.com/@ottophd?source=rss-4a67e06a6ba8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*i1UNyaoT6DQz1y--</url>
            <title>Stories by Otto Lilja-Lund on Medium</title>
            <link>https://medium.com/@ottophd?source=rss-4a67e06a6ba8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:14:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ottophd/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[Gather your Zotero files into one corpus — a use-case with Nouswise (NotebookLM alternative)]]></title>
            <link>https://medium.com/@ottophd/gather-your-zotero-files-into-one-corpus-a-use-case-with-nouswise-notebooklm-alternative-11eb66c3b58f?source=rss-4a67e06a6ba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/11eb66c3b58f</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[zotero]]></category>
            <category><![CDATA[notebooklm]]></category>
            <category><![CDATA[filesystem]]></category>
            <dc:creator><![CDATA[Otto Lilja-Lund]]></dc:creator>
            <pubDate>Tue, 12 Aug 2025 21:26:06 GMT</pubDate>
            <atom:updated>2025-08-13T00:26:09.501Z</atom:updated>
            <content:encoded><![CDATA[<h3>Gather your Zotero files into one corpus — a use-case with Nouswise (NotebookLM alternative)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*l7EcswunGP41CuGj" /><figcaption>Made with ComfyUI and GIMP by the author.</figcaption></figure><p>I don’t want Google poking around but I do want NotebookLM — what can I do?</p><p>Want in on NotebookLM? — Sign up with your Google account. Upload to NotebookLM and Google grabs it. And I don’t want that. Also, I’m looking for “NotebookLM”-features without forcing a Google account on to others as I want to experiment with it to see if it is a good fit for my students. And to evaluate if it is helpful for me planning lessons and research. Nor do I want my personal Google-account integrated with my work. So, Nouswise could be an alternative. Other services exists but better get started with one and see how it works instead of going through endless lists of “Top-five NotebookLM alternatives”. However, I encountered a challenge pretty fast. I wanted to gather all my articles on statistics from my Zotero library to Nouswise. <strong>But each file is stored in a unique folder and the manual labour of going trough one folder per file and upload it is not something I want to do.</strong> Gathering all PDFs into one corpus would be nice if I decide to make a homebrew RAG down the line as well. Hence this tutorial! FYI: I’m on a Linux PC. Oh, and don’t forget to change USER to your specific circumstances!</p><h3>1. Get a Nouswise account</h3><p>Nothing to it, pretty standard procedures. Just go to <a href="https://nouswise.com/homepage">nouswise.com</a> and sign up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/0*tUDgT56RjgQsqfCR" /></figure><p>Once in, start a new project from the Home icon in the top left corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/0*EXimb2q5USmre1v3" /></figure><p>Create your folder to organize all your documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*lt9wCU298AHfid_S" /></figure><h3>2. Gather your Zotero library</h3><p>Right-click and export the folder you want from Zotero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/0*QUvSejie__rc7mGS" /></figure><p>Choose BiBTex and export to a new folder. I named mine Statistics_lib and placed it in my HOME directory. The problem is that each PDF is stored like this:</p><pre>/home/USER/Statistics_lib/files/1548/*.pdf /home/USER/Statistics_lib/files/5191/*.pdf etc.</pre><p>The numbers represent a unique folder per file. <strong>I want all my PDFs in one place for a smooth upload to Nouswise.</strong></p><p>Note: working from and in correct directories is crucial! Be sure to use correct directories (“adresses”).</p><p>Make a directory for where you want to gather all your PDFs. Enter your {bash} commands into the terminal:</p><pre>mkdir /home/USER/Statistics_lib_new</pre><p>See if you can find the files you want to move first as a dry-run:</p><pre>find /home/USER/Statistics_lib/files/ -name &quot;*.pdf&quot; -print0 | xargs -0 echo</pre><p>You should get a long list of all the PDFs. Next thing, and this is a mouthful, relocate them.</p><pre>sudo find /home/USER/Statistics_lib/files/ -name &quot;*.pdf&quot; -print0 | xargs -0 cp --update=none -t /home/USER/Statistics_lib_new/</pre><p>And now for the moment of truth:</p><pre>ls -l /home/USER/Statistics_lib_new</pre><h3>🎉 Success! 🎉</h3><p>You now have all the files in one place!</p><h3>3. Upload to Nouswise</h3><p>From here on it is tinkering within Nouswise. Upload your files (there is a cap of 40 files at once so go easy) from ´~/Statistics_lib_new` to your project folder on Nouswise.</p><p>Happy exploring with your new “NotebookLM”!</p><p>…honestly though I wasn’t that happy with Nouswise UI but I’ll give it a try 🤷🏼! And there is the caveat that it runs on OpenAI LLMs, so you are not off the hook when it comes to data integrity. Keep that in mind when you upload your documents. Yeah, I might start cooking on that RAG now…</p><h3>Bonus material:</h3><p>Let’s have Mistral-Small 3.2 explain the magical sentence in this whole post:</p><p>ollama run mistral-small3.2:latest &gt;&gt;&gt; Explain this bash: sudo find /home/USER/Statistics_lib/files/ ... -name &quot;*.pdf&quot; -print0 | xargs -0 cp -update=none -t /home/USER/Statistics_lib_new/</p><p>This bash command is used to copy all PDF files from one directory to another. Let me break it down for you:</p><ol><li>sudo: This runs the command with superuser privileges, which may be necessary if you don&#39;t have permission to read the source files or write to the destination directory.</li><li>find /home/USER/Statistics_lib/files/ -name &quot;*.pdf&quot; -print0: This finds all files with the .pdf extension in the specified directory and prints them with a null character (-print0) as a separator between filenames. The null character is used instead of a newline to handle filenames that might contain spaces or special characters.</li><li>|: This is a pipe that takes the output of the find command and passes it as input to the next command.</li><li>xargs -0: This takes the null-delimited input from the pipe and constructs arguments for the next command. The -0 option tells xargs to expect null-delimited input.</li><li>cp --update=none -t /home/USER/Statistics_lib_new/: This copies the files found by find to the specified destination directory. The --update=none option tells cp to copy all files unconditionally (it won&#39;t skip files that already exist in the destination). The -t option specifies the target directory.</li></ol><p>In summary, this command copies all PDF files from /home/USER/Statistics_lib/files/ to /home/USER/Statistics_lib_new/ without checking if the files already exist in the destination.</p><p><em>Originally published at </em><a href="https://ottophd.wordpress.com/2025/08/12/gather-your-zotero-files-into-one-corpus-a-use-case-with-nouswise-notebooklm-alternative/"><em>http://ottophd.wordpress.com</em></a><em> on August 12, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11eb66c3b58f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run a local chatbot — an amateurs introduction to Open-WebUI with Ollama]]></title>
            <link>https://medium.com/@ottophd/run-a-local-chatbot-an-amateurs-introduction-to-open-webui-with-ollama-aa1224023173?source=rss-4a67e06a6ba8------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa1224023173</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[open-webui]]></category>
            <category><![CDATA[local-llm]]></category>
            <dc:creator><![CDATA[Otto Lilja-Lund]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 21:36:43 GMT</pubDate>
            <atom:updated>2025-08-04T22:04:26.215Z</atom:updated>
            <content:encoded><![CDATA[<h3>Run a local chatbot — an amateurs introduction to Open-WebUI with Ollama</h3><p>I’ve been eyeing to run local llms and finally jumped the gun. But how do you actually do it? I share with you my fumbling steps towards local AI. As someone starting without any advanced knowledge I hope that anyone out there, inexperienced as me, but curious how to start, joins me on my journey towards local AI.</p><p>Oh, and I am also learning Linux — with Ubuntu to be more specific. Me learning Linux and local AI are personal steps to break free from big tech, and to understand more of what is going on under the hood of the technology we use everyday.</p><h3>Where to start?</h3><p>Hardware is separate topic so I won’t go into that here. I have an NVIDIA GPU with 24 GB of VRAM, which means that I have a dedicated graphic card that will do most, if not all, of the computations needed for local AI.</p><p><strong>Tip!</strong> {bash} is commands you run in a terminal, powershell or command lines. Copy — paste — enter from the code-blocks in the article and you are good to go! You’ll basically do everything in a terminal with {bash} from here on. Oh, and you’ll usesudo a lot. Usingsudo prompts you to enter your password, sudo temporarily elevates the users privileges. The sudois active for a short period of time, hence you might want to add sudo to our commands if the don&#39;t run.</p><ol><li><strong>Install Ollama</strong></li></ol><p>Ollama is a tool that runs llms directly in the terminal or though other services — like Open-WebUI.</p><pre>sudo curl -fsSL https://ollama.com/install.sh | sh</pre><p><strong>2. Pull a model</strong></p><p>Once Ollama is installed you can get your model of choice from Ollama with a simple line. Check out <a href="https://ollama.com/search">https://ollama.com/search</a> to find a model of interest. I recommend to start with a small one, e.g. 3b, just to see that things work before testing what your hardware manages — things might get hot! But more on that later. I use Mistral:7b in the example. You’ll find the snippet to run on the page for the model of choice. Run the command run to start your model. Executing run will pull the model and run it the first time. Once it’s downloaded (“pulled”) the run command will just start the model. You can use pull if you only want to download it.</p><pre>ollama run mistral</pre><p>Cool! You can now chat with your own llm in the terminal! When you are done just close that terminal.</p><p><strong>Tip!</strong> Enter ollama to see what commands you can use. list lists available models, ps shows what processes the models runs on (e.g. 100% GPU or 45% CPU / 55% GPU)</p><p><strong>3. Install Open-WebUI</strong></p><p>Open-WebUI gives you a user-interface similar to ChatGPT. You’ll recognize how things work, like drop-and-drag images and saved chats. There is one thing that made this step a bit more tricky — Docker. It means that you’ll run the application in a “safe environment” or inside a container. Run the line and let it cook for a while!</p><pre>sudo docker run -p 8080:8080 ghcr.io/open-webui/open-webui:main</pre><figure><img alt="Screenshot of Open-WebUI in the browser" src="https://cdn-images-1.medium.com/max/596/1*02uS7k2BjHsBagGHrRZ6TQ.png" /></figure><p>Once it’s downloaded and ready (this may take some time) you should be able to see Open-WebUI in your browser at <a href="http://localhost:8080/">http://localhost:8080</a></p><p>There you’ll be prompted to register an admin account the first time. And you are in!</p><p><strong>Important!</strong> To restart the Open-Web-UI session you should rename the container ID (CID).</p><pre>sudo docker ps</pre><p>You should get something like this:</p><p>| CONTAINER ID | IMAGE | COMMAND | CREATED | STATUS | PORTS | NAMES | | d22949556b11 | ghcr.io/open-webui/open-webui:main | “bash start.sh” | 45 minutes ago| Up 45 minutes (healthy) | 0.0.0.0:8080–8080/tcp, :8080–8080/tcp | stupefied_lamarr</p><pre>docker rename d22949556b11 Open-WebUI</pre><p><strong>4. Connect Ollama with Open-WebUI</strong></p><p>Now that you have Ollama with a model and Open-WebUI up and running all you need to do is connect the two. Ollama runs by default on http://localhost:11434 or http://127.0.0.1:11434 (Note, localhost and 127.0.0.1 is <a href="https://medium.com/@ThreadSafeDiaries/127-0-0-1-isnt-just-localhost-the-networking-truth-they-don-t-teach-you-ca9fbdb85241">not the same</a> as <a href="https://medium.com/u/d6aa1e887978">ThreadSafe Diaries</a> points out, but that is beyond the scope here.)</p><ul><li>Go to <em>Admin Settings</em> in Open-WebUI.</li><li>Navigate to <em>Connections</em> &gt; <em>Ollama</em> &gt; <em>Manage</em> (click the wrench icon).</li><li>Set Ollama API connection to http://172.17.0.1:11434 (when Open-WebUI runs in docker). The default Ollama connection did not work for me but this did the trick.</li></ul><p><strong>5. Start chatting</strong></p><p>🎉 Congratulations! You now have your own “ChatGPT”!! 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*BJ28gwAUrJR5r_ssBy7FlA.png" /></figure><p>Your model running in Ollama should pop up and you can start chatting all you want on your own hardware! pull more models and choose them in the drop-down in Open-WebUI. There you can unload models as well (to save processing, they are still downloaded but not active in the CPU/GPU).</p><h3>Troubleshooting</h3><p>I wrote the steps that worked for me, but I stumbled on my way to get there. Some hurdles were that Ollama and Open-WebUI did not communicate, my model ran fine on GPU or GPU/CPU mixed in the terminal but only CPU from Open-WebUI! And I did not know how to restart Open-WebUI and re-installed instead…</p><p><strong>Here are some commands that came in handy:</strong></p><p>Set parameters for GPU in ollama (GPU_LAYERS=-1 means all available layers; CUDA_VISIBLE_DEVICES=0 means only one card) and set the port for the host.</p><pre>export OLLAMA_HOST=0.0.0.0:11434 export OLLAMA_ORIGINS=&quot;*&quot; export OLLAMA_GPU_LAYERS=-1 export CUDA_VISIBLE_DEVICES=0</pre><p>If it works, you’ll get no feedback. But to verify they’re all set:</p><pre>echo &quot;OLLAMA_HOST: $OLLAMA_HOST&quot; echo &quot;OLLAMA_ORIGINS: $OLLAMA_ORIGINS&quot; echo &quot;OLLAMA_GPU_LAYERS: $OLLAMA_GPU_LAYERS&quot; echo &quot;CUDA_VISIBLE_DEVICES: $CUDA_VISIBLE_DEVICES&quot;</pre><p>You should see:</p><pre>OLLAMA_HOST: 0.0.0.0:11434 OLLAMA_ORIGINS: * OLLAMA_GPU_LAYERS: -1 CUDA_VISIBLE_DEVICES: 0</pre><p>Verify if Ollama is responding in localhost and what models are available: curl http://localhost:11434/api/tags. Check if <em>port :11434</em> is free: sudo lsof -i :1143 Stop Ollama &quot;across the board&quot;: sudo systemctl stop ollamaand start: sudo systemctl start ollama</p><p>Check activity for NVIDIA GPU: watch nvidia-smi</p><p>See active processes. PID means Process ID, and you can handle them from <em>htop</em>: sudo apt install htop. Run htop to see activities.</p><p>See containers in Docker: docker ps. To see the configurations of a container docker inspect &lt;insert CID or name&gt;. Restarting the Docker service can resolve issues: sudo systemctl restart docker.</p><p>Ensure that port 8080 is not being used by another service. You can check this with: sudo lsof -i :808</p><p>Linux Suspend Resume (from Ollama documentation)</p><p><a href="https://github.com/ollama/ollama/blob/main/docs/faq.md">https://github.com/ollama/ollama/blob/main/docs/faq.md</a></p><p>On Linux, after a suspend/resume cycle, sometimes Ollama will fail to discover your NVIDIA GPU, and fallback to running on the CPU. You can workaround this driver bug by reloading the NVIDIA UVM driver with</p><pre>sudo rmmod nvidia_uvm &amp;&amp; sudo modprobe nvidia_uvm</pre><h3>That should be it! Happy chatting!</h3><p>Ps: I am just dotting down what I learn to share and to structure for myself — I am not a professional. You are more than welcome to share any input, suggestions for improvement or corrections!</p><p><em>Originally published at </em><a href="https://ottophd.wordpress.com/your-local-chatbot-an-amateurs-introduction-to-open-webui-with-ollama/"><em>http://ottophd.wordpress.com</em></a><em> on August 4, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa1224023173" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>