<?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 Abraham Lock on Medium]]></title>
        <description><![CDATA[Stories by Abraham Lock on Medium]]></description>
        <link>https://medium.com/@abrahamlock?source=rss-adc983f1d5d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LcIz45DGhCWqXjyOGr_9dA.jpeg</url>
            <title>Stories by Abraham Lock on Medium</title>
            <link>https://medium.com/@abrahamlock?source=rss-adc983f1d5d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:48:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abrahamlock/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[DeepSeek LocalLLM with Ollama &LangChain]]></title>
            <link>https://medium.com/@abrahamlock/deepseek-localllm-with-ollama-langchain-8cd1e599c921?source=rss-adc983f1d5d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cd1e599c921</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Abraham Lock]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 03:11:11 GMT</pubDate>
            <atom:updated>2025-01-31T03:36:57.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bx3jVKlWr4bdbZ-dTsSh0w.png" /><figcaption><a href="https://ollama.com/library/deepseek-r1">https://ollama.com/library/deepseek-r1</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TJ1RAICm917bHRL2E2MyBQ.png" /></figure><p>Setup Python virtual Env for package installation</p><p>Or development in devcontainer.</p><pre>python -m venv &lt;project dir&gt;<br>cd Scripts<br>./activate</pre><p>Create requirments.txt file for package installation</p><pre>langchain<br>langchain_community</pre><pre>pip install -r requirements</pre><p>Ollama pull/run the DeepSeek Model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LXeepKB2cSIflsqjxIXZIA.png" /></figure><p>Concept are similar with Docker command, pull/run, docker images</p><p>Ollama pull/run, list</p><p>Create index.py and run it.</p><pre>from langchain_community.llms import Ollama<br>from langchain_community.embeddings import OllamaEmbeddings<br><br>MODEL=&quot;deepseek-r1:1.5b&quot;<br>model = Ollama(model=MODEL)<br>embeddings = OllamaEmbeddings(model=MODEL)<br><br>out = model.invoke(&quot;Write bubble sort in C#.&quot;)<br>print (out)</pre><p>Simple and enjoy the learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cd1e599c921" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>