<?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 Girish V P on Medium]]></title>
        <description><![CDATA[Stories by Girish V P on Medium]]></description>
        <link>https://medium.com/@girish624cd?source=rss-304ee38fc0e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TKejAL-lqEHpB8qI5kSgiA.png</url>
            <title>Stories by Girish V P on Medium</title>
            <link>https://medium.com/@girish624cd?source=rss-304ee38fc0e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 19:41:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@girish624cd/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[Build your AI Assistant with RAG]]></title>
            <link>https://medium.com/anditb/build-your-ai-assistant-with-rag-a9c87e87b122?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9c87e87b122</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gradio]]></category>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[chroma]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 14:18:16 GMT</pubDate>
            <atom:updated>2026-01-04T14:20:19.818Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s ever changing business world, companies generate an abundant of information — Employee data, reports, policies and product details and so on. An AI assistant revolutionizes information management by delivering accurate, real-time answers while reducing the need for manual effort, allowing human resources to focus on higher-value tasks. This AI assistant is brought up using Retrieval-Augmented Generation (RAG), which allows the AI to intelligently search through company documents and provide precise answers based on the most relevant information. RAG is an AI technique that improves Large Language Models (LLMs) by pointing them to external knowledge bases, allowing them to provide more specific, up-to-date, and context-specific answers without needing constant retraining.</p><pre><strong>Problem:</strong> Require to build AI Assistant which can retrieve and reply to the end<br> users queries<br><br><strong>Solution:</strong> Use AI with the help of Gradio &amp; Ollama, vector DBs.<br><br><strong>Technogies:</strong> Python, Ollama, chroma, sqlite, jupyter lab</pre><pre>Prequesite : Python<br>           : Ollama<br>           : Anaconda<br>           : Jupyter Lab<br>           : Gradio<br>           : chroma<br>           : sqlite</pre><p>Steps</p><p>1 — Make sure that Ollama is running in the local machine. Enable nomic-embed-text embedding model</p><p>2 — Install Anaconda and make sure Jupyter Lab is configured</p><p>3 — Install Gradio, sqlite &amp; chroma</p><p>4 — This program provide two interface on the same screen. one for uploading the knowledge and other one for end user to ask queries. In a production may embed in different pages of application. I use a fictious company Adibi Technologies. I have run the code in Jupyter Labs.</p><pre> import sqlite3<br>import gradio as gr<br>import requests<br>import chromadb<br>import json<br>from uuid import uuid4<br>import os<br><br># -------------------------<br># Ollama variables<br># -------------------------<br>OLLAMA_BASE = &quot;http://localhost:11434&quot;<br>CHAT_API = f&quot;{OLLAMA_BASE}/api/chat&quot;<br>EMBED_API = f&quot;{OLLAMA_BASE}/api/embeddings&quot;<br><br>LLM_MODEL = &quot;llama3.2&quot;<br>EMBED_MODEL = &quot;nomic-embed-text&quot;<br><br>HEADERS = {&quot;Content-Type&quot;: &quot;application/json&quot;}<br><br># -------------------------<br># SQLite creating database<br># -------------------------<br>DB_FILE = &quot;knowledge_rag.db&quot;<br><br>def init_sqlite():<br>    db_conn = sqlite3.connect(DB_FILE)<br>    cur = db_conn.cursor()<br>    cur.execute(&quot;&quot;&quot;<br>        CREATE TABLE IF NOT EXISTS knowledge (<br>            id TEXT PRIMARY KEY,<br>            content TEXT<br>        )<br>    &quot;&quot;&quot;)<br>    db_conn.commit()<br>    db_conn.close()<br><br>init_sqlite()<br><br># -------------------------<br># Chroma Client - Vector DB creation<br># -------------------------<br> <br>vector_client = chromadb.Client(<br>    chromadb.config.Settings(<br>        anonymized_telemetry=False<br>    )<br>)<br><br># chroma collection configuration<br>collection_name = &quot;knowledge_rag&quot;<br>collections_list = [col.name for col in vector_client.list_collections()]<br>if collection_name in collections_list:<br>    collection = vector_client.get_collection(name=collection_name)<br>else:<br>    collection = vector_client.create_collection(name=collection_name)<br><br># -------------------------<br># Ollama embed data with vectordb<br># -------------------------<br>def ollama_embed(text: str):<br>    if not text.strip():<br>        return [0.0] * 1536  # fallback<br><br>    payload = {&quot;model&quot;: EMBED_MODEL, &quot;input&quot;: text}<br>    try:<br>        response = requests.post(EMBED_API, headers=HEADERS, json=payload, timeout=60)<br>        response.raise_for_status()<br>        emb = response.json().get(&quot;embedding&quot;, [])<br>        if not emb:<br>            emb = [0.0] * 1536<br>        return emb<br>    except Exception as e:<br>        print(&quot;❌ Ollama embedding failed:&quot;, e)<br>        return [0.0] * 1536<br><br># -------------------------<br># Sync SQLite -&gt; Chroma on Startup<br># -------------------------<br>def sync_sqlite_to_chroma():<br>    db_conn = sqlite3.connect(DB_FILE)<br>    cur = db_conn.cursor()<br>    cur.execute(&quot;SELECT id, content FROM knowledge&quot;)<br>    for doc_id, content in cur.fetchall():<br>        # Check if this doc_id exists in Chroma<br>        try:<br>            ids_list_in_chroma = collection.get(ids=[doc_id])[&quot;ids&quot;]<br>        except:<br>            ids_list_in_chroma = []<br>        if not ids_list_in_chroma:<br>            embedding = ollama_embed(content)<br>            collection.add(documents=[content], embeddings=[embedding], ids=[doc_id])<br>    db_conn.close()<br><br>sync_sqlite_to_chroma()<br><br># -------------------------<br>#  Knowledge Loading<br># -------------------------<br>def upload_knowledge(text):<br>    if not text.strip():<br>        return &quot;❌ Empty text not allowed.&quot;<br><br>    doc_id = str(uuid4())<br><br>    # Save to SQLite<br>    db_conn = sqlite3.connect(DB_FILE)<br>    cur = db_conn.cursor()<br>    cur.execute(<br>        &quot;INSERT INTO knowledge (id, content) VALUES (?, ?)&quot;,<br>        (doc_id, text)<br>    )<br>    db_conn.commit()<br>    db_conn.close()<br><br>    # Save to Chroma<br>    embedding = ollama_embed(text)<br>    collection.add(<br>        documents=[text],<br>        embeddings=[embedding],<br>        ids=[doc_id]<br>    )<br><br>    return &quot;✅ Knowledge uploaded successfully.&quot;<br><br># -------------------------<br># Ask Question (RAG)<br># -------------------------<br>def ask_assist(question):<br>    if not question.strip():<br>        return &quot;❌ Please enter a valid question.&quot;<br><br>    q_embedding = ollama_embed(question)<br><br>    # Retrieve top-3 relevant docs<br>    results = collection.query(<br>        query_embeddings=[q_embedding],<br>        n_results=3<br>    )<br><br>    docs = results.get(&quot;documents&quot;, [[]])[0]<br>    if not docs:<br>        return &quot;❌ No relevant information found.&quot;<br><br>    context = &quot;\n\n&quot;.join(docs)<br><br># -------------------------<br># Prompt Creation<br># -------------------------<br><br>    prompt = f&quot;&quot;&quot;<br>You are an assistant. Answer using ONLY the information below.  <br><br>==========================<br>TOP RESULTS:<br>{context}<br>==========================<br><br>QUERY: {question}<br>&quot;&quot;&quot;<br><br>    payload = {<br>        &quot;model&quot;: LLM_MODEL,<br>        &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}],<br>        &quot;stream&quot;: True<br>    }<br><br>    try:<br>        response = requests.post(CHAT_API, headers=HEADERS, json=payload, stream=True, timeout=60)<br>        response.raise_for_status()<br>        answer = &quot;&quot;<br>        for line in response.iter_lines():<br>            if not line:<br>                continue<br>            try:<br>                chunk = json.loads(line)<br>                content = chunk.get(&quot;message&quot;, {}).get(&quot;content&quot;)<br>                if content:<br>                    answer += content<br>            except:<br>                pass<br>        return answer.strip()<br>    except Exception as e:<br>        return f&quot;❌ Ollama Error: {e}&quot;<br><br># -------------------------<br># Gradio UI<br># -------------------------<br>with gr.Blocks() as demo:<br>    gr.Markdown(&quot;## AI Assistant with RAG&quot;)<br><br>    gr.Markdown(&quot;### Load Company Knowledge&quot;)<br>    data_input = gr.Textbox(<br>        lines=5,<br>        placeholder=&quot;Enter company facts like: CEO name, company address, product information etc.&quot;<br>    )<br>    save_button = gr.Button(&quot;Save Data&quot;)<br>    save_output = gr.Markdown()<br><br>    gr.Markdown(&quot;### Ask a Question&quot;)<br>    query_input = gr.Textbox(<br>        placeholder=&quot;Ask a question. CEO name, company address, product information etc. &quot;<br>    )<br>    query_button = gr.Button(&quot;Submit the Question&quot;)<br>    answer_output = gr.Markdown()<br><br>    save_button.click(upload_knowledge, data_input, save_output)<br>    query_button.click(ask_assist, query_input, answer_output)<br><br>demo.launch()</pre><p>5 — Entered below data and Save Data Button is clicked. Make a point that all personal data written below are fictious and not real.</p><pre>Company Details<br>Company Name: Adibi Technologies<br>Founded: 2020<br>Headquarters: Bangalore, India  <br>Employees: 1-100<br>Industry: Software Development<br>Mission: To innovate and deliver cutting-edge technology<br><br>Contacts<br>Name:Girish V P, Email: girish.vp@adibitech.com,Phone:  111111111, Website: www.adibitech.com, Address: Basavanagudi, Bangalore, India<br>Name:Raj, Email: raj@adibitech.com, Phone:  22222222, Website: www.adibitech.com, Address: Jayanagar, Bangalore, India<br><br>CEO: John Smith<br>CTO: Jane Donald<br>CFO: Mark<br>VP of Marketing: Bob<br><br>Adibi Technology offers the following products:<br><br>1. AI Assist - Cloud-based AI Assistant.<br>Pricing<br> a - Basic - USD 70/Yesr<br> b - Standard - USD 110/Year<br> c - Premium - USD 160/Year<br>Features:<br>1. Natural Language Understanding (NLU)<br>2. Machine Learning / Learning Over Time<br>3. Voice Command &amp; Speech Recognition<br>4. Contextual Awareness<br><br>2. AI Learn- Cloud based AI Training platform.<br>Pricing<br> a - Basic - USD 72/Year<br> b - Standard - USD 112/Year<br> c - Premium - USD 162/Year<br>Features:<br>1. Course Management<br>2. User Management<br>3. Assessments &amp; Evaluation<br>4. Communication &amp; Collaboration<br><br>3. AI Mailer- Cloud based AI Mailing platform.<br>Pricing<br> a - Basic - USD 73/Yesr<br> b - Standard - USD 113/Year<br> c - Premium - USD 163/Year<br>Features:<br>1. Email Creation &amp; Design<br>2. Contact Management<br>3. Automation &amp; Workflow<br>4. Analytics &amp; Reporting<br> <br>  <br>Author Info<br><br>Girish V P is the Author of this document, works for Covalense Digital Bangalore.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aV5FJwZ6EFSStBEl5xh18Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*no9kgs9yA5Ylj0rf6tAIew.png" /></figure><p>6 — Crafted various questions to get the output luke below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NFHA8-6eBpBSCenV1Mh9nA.png" /></figure><p><strong>Other outputs:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dYfHwKh9Ea9YMu0KZZZnNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-cVnqffYsue0-HkGBWhNg.png" /></figure><p><strong>Disclaimer: </strong>Please test and verify the code before you implement in a production environment. All personal data mentioned in this document are illustrative and not real. AI can make mistakes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9c87e87b122" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/build-your-ai-assistant-with-rag-a9c87e87b122">Build your AI Assistant with RAG</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Context-Augmented Prompting — AI with Ollama and Gradio]]></title>
            <link>https://medium.com/anditb/context-augmented-prompting-ai-with-ollama-and-gradio-f8c476cc126c?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8c476cc126c</guid>
            <category><![CDATA[gradio]]></category>
            <category><![CDATA[jupyterlab]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sat, 22 Nov 2025 16:45:40 GMT</pubDate>
            <atom:updated>2026-01-01T11:35:50.996Z</atom:updated>
            <content:encoded><![CDATA[<h3>Context-Augmented Prompting with Ollama and Gradio — AI Assistant for your Company</h3><p>In modern workflows, it is challenging to read information from multiple files and manually consolidate the content in a meaningful way. Providing accurate responses to end users in real time becomes even more difficult when information is scattered across many documents<br> This sample program allows users to load a directory and read the contents of all its files. Using Ollama as the local AI engine, this program responds with intelligent answers based on the information found in these local files. With the interactive Gradio interface, users can select a folder, chat with application, and get accurate responses in real time. Let us see how this chat application picks up company &amp; product details stored in the local files and responds to end user.</p><pre><br><strong>Problem:</strong> Require to build a chat application which can read through multiple<br>files, consolidate data and responds to end user in real time.<br><br><strong>Solution</strong>: Use AI with the help of Gradio &amp; Ollama.<br><br><strong>Technogies:</strong> Python, Ollama, jupyter lab</pre><pre><strong>Prequesite</strong> : Ollama<br>           : Anaconda<br>           : Jupyter Lab<br>           : Gradio<br>           : local files with company details</pre><p>Steps</p><p>1 — Make sure that Ollama is running in the local machine</p><p>2 — Install Anaconda and make sure Jupyter Lab is configured</p><p>3 — Install Gradio</p><p>4 — Create a local files. I create four file like below and maintained in a folder <em>D:\projects\llm_engineering\custom-girish\company</em></p><p>I have used a fictious company adibitech to fulfill the requirement</p><pre>company_overview.txt<br>--------------------<br>Company Name: Adibi Technology<br>Founded: 2020<br>Headquarters: Bangalore, India  <br>Employees: 1-100<br>Industry: Software Development<br>Mission: To innovate and deliver cutting-edge technology solutions.</pre><pre>contact.txt<br>-----------<br>Email: girish.vp@adibitech.com<br>Phone:  <br>Website: www.adibitech.com<br>Address: Basavanagudi, Bangalore, India</pre><pre>leadership.txt<br>--------------<br>CEO: John<br>CTO: Alice<br>CFO: Mark<br>VP of Marketing: Bob</pre><pre>products.txt<br>------------<br>Adibi Technology offers the following products:<br><br>1. AI Assist - Cloud-based AI Assistant.<br>Pricing<br> a - Basic - USD 70/Yesr<br> b - Standard - USD 110/Year<br> c - Premium - USD 160/Year<br>Features:<br>1. Natural Language Understanding (NLU)<br>2. Machine Learning / Learning Over Time<br>3. Voice Command &amp; Speech Recognition<br>4. Contextual Awareness<br><br>2. AI Learn- Cloud based AI Training platform.<br>Pricing<br> a - Basic - USD 72/Yesr<br> b - Standard - USD 112/Year<br> c - Premium - USD 162/Year<br>Features:<br>1. Course Management<br>2. User Management<br>3. Assessments &amp; Evaluation<br>4. Communication &amp; Collaboration<br><br>3. AI Mailer- Cloud based AI Mailing platform.<br>Pricing<br> a - Basic - USD 73/Yesr<br> b - Standard - USD 113/Year<br> c - Premium - USD 163/Year<br>Features:<br>1. Email Creation &amp; Design<br>2. Contact Management<br>3. Automation &amp; Workflow<br>4. Analytics &amp; Reporting</pre><p>5 — Run the code below in Jupyter lab</p><pre>import os<br>import json<br>import requests<br>import gradio as gr<br><br>OLLAMA_API = &quot;http://localhost:11434/api/chat&quot;<br>HEADERS = {&quot;Content-Type&quot;: &quot;application/json&quot;}<br>MODEL = &quot;llama3.2&quot;<br><br>COMPANY_DATA = {}<br><br># Function: Load files<br> <br>def folder_load(folder_path):<br>    global COMPANY_DATA<br>    COMPANY_DATA = {}<br><br>    if not os.path.isdir(folder_path):<br>        return f&quot;❌ Directory not found: {folder_path}&quot;<br><br>    for parent_dir, dirs, files in os.walk(folder_path):<br>        for fname in files:<br>            fpath = os.path.join(parent_dir, fname)<br>            try:<br>                with open(fpath, &quot;r&quot;, errors=&quot;ignore&quot;) as f:<br>                    COMPANY_DATA[fpath] = f.read()<br>            except:<br>                COMPANY_DATA[fpath] = &quot;(Unable to open file)&quot;<br><br>    return f&quot;✅ Loaded {len(COMPANY_DATA)} files.&quot;<br><br><br> # Function: Prompt to Ollama<br> <br>def ollama_load(question: str) -&gt; str:<br>    if not COMPANY_DATA:<br>        return &quot;❗ No directory loaded yet.&quot;<br><br>    context_text = &quot;&quot;<br>    for fname, content in COMPANY_DATA.items():<br>        context_text += f&quot;\n\nFILE: {fname}\n{content}\n&quot;<br><br>    prompt = f&quot;&quot;&quot;<br>You are an assistant. Use ONLY the content from the directory files below to answer the question.<br><br>==========================<br>FOLDER CONTENTS:<br>{context_text}<br>==========================<br><br>QUERY: {question}<br><br>Provide the best possible answer.<br>&quot;&quot;&quot;<br><br>    payload = {<br>        &quot;model&quot;: MODEL,<br>        &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}],<br>        &quot;stream&quot;: True<br>    }<br><br>    try:<br>        oll_resp = requests.post(OLLAMA_API, headers=HEADERS, json=payload, stream=True, timeout=60)<br>        oll_resp.raise_for_status()<br><br>        full_text = &quot;&quot;<br>        for line in oll_resp.iter_lines():<br>            if not line:<br>                continue<br>            try:<br>                chunk = json.loads(line)<br>                content = chunk.get(&quot;message&quot;, {}).get(&quot;content&quot;)<br>                if content:<br>                    full_text += content<br>            except json.JSONDecodeError:<br>                continue<br><br>        return full_text.strip() if full_text else &quot;❌ Empty response returned by Ollama&quot;<br><br>    except Exception as e:<br>        return f&quot;❌ Ollama API Error: {e}&quot;<br><br><br> # Gradio Interraction<br><br>with gr.Blocks() as myassist:<br>    gr.Markdown(&quot;# AI Assist with Ollama + Gradio&quot;)<br>    <br>    with gr.Row():<br>        folder_input = gr.Textbox(label=&quot;Directory Path&quot;, placeholder=&quot;Enter the Folder Path&quot;)<br>        folder_button = gr.Button(&quot;Click here to load the Directory&quot;)<br>    <br>    load_output = gr.Markdown()<br><br>    with gr.Row():<br>        question_input = gr.Textbox(label=&quot;Ask a Question&quot;)<br>        input_button = gr.Button(&quot;Input the Question&quot;)<br>    <br>    answer_output = gr.Markdown()<br><br>    # Connect buttons<br>    folder_button.click(folder_load, inputs=folder_input, outputs=load_output)<br>    input_button.click(ollama_load, inputs=question_input, outputs=answer_output)<br><br>myassist.launch()</pre><p><strong>Output:</strong></p><p>The application picked up the details from multiples files and aggregated and provided to user based on his input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtCBQj2zJrV3zelMcEquIg.png" /></figure><p><strong>Disclaimer: </strong>Please test and verify the code before you implement in a production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8c476cc126c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/context-augmented-prompting-ai-with-ollama-and-gradio-f8c476cc126c">Context-Augmented Prompting — AI with Ollama and Gradio</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Profile Scanner with AI — Gradio and Ollama — Part 2]]></title>
            <link>https://medium.com/anditb/the-profile-scanner-with-ai-gradio-and-ollama-part-2-08c7d9f5065e?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/08c7d9f5065e</guid>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gradio]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sun, 26 Oct 2025 12:11:16 GMT</pubDate>
            <atom:updated>2025-10-26T12:11:16.654Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Profile Scanner with AI — Gradio and Ollama — Part 2</h3><p>In today’s dynamic business environment, HR professionals are required to take on multiple roles — This includes recruiting top talent and managing employee experince to fostering workforce engagement and development. With the growing induction of AI and automation, tools like <strong>Gradio</strong> and <strong>Ollama</strong> present exciting options for HR teams to streamline operations, make data-driven decisions, and enhance the overall employee relations.</p><p>Let’s explore these two tools can empower HR professionals and redefine the way human resources operates. With induction of AI &amp; LLM, there is <strong>no need to </strong>explicitly specify every conditions in software program, as the model understands and processes the document as per the context.</p><pre><strong>Problem:</strong> HR Professionals require a tool which he can interractively input the <br>employee resume and extract Experience , Education &amp; Skill Sections<br><br><strong>Solution:</strong> Use AI with the help of Gradio &amp; Ollama.<br><br><strong>Technogies:</strong> Python, PyPDF2, Ollama, jupyter lab</pre><pre><strong>Prerequisites</strong> : Ollama<br>              : Anaconda<br>              : Jupyter Lab<br>              : Gradio</pre><p><strong>Steps:</strong></p><p>1 — Make sure that Ollama is running in the local machine</p><p>2 — Install Anaconda and make sure Jupyter Lab is configured</p><p>3 — Install pyPDF2 &amp;Gradio</p><p>4 — Write a Python code like below</p><pre>import requests<br>import json<br>import gradio as gr<br>from PyPDF2 import PdfReader<br><br># -------------------- Ollama API setup --------------------<br>OLLAMA_API = &quot;http://localhost:11434/api/chat&quot;<br>HEADERS = {&quot;Content-Type&quot;: &quot;application/json&quot;}<br>MODEL = &quot;llama3.2&quot;<br><br># -------------------- Calling Ollama --------------------<br>def prompt_ollama(prompt: str) -&gt; str:<br>    payload = {<br>        &quot;model&quot;: MODEL,<br>        &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}],<br>        &quot;stream&quot;: True  # handle streamed responses<br>    }<br>    try:<br>        resp = requests.post(OLLAMA_API, headers=HEADERS, json=payload, stream=True, timeout=60)<br>        resp.raise_for_status()<br><br>        full_text = &quot;&quot;<br>        for line in resp.iter_lines():<br>            if not line:<br>                continue<br>            try:<br>                chunk = json.loads(line)<br>                content = chunk.get(&quot;message&quot;, {}).get(&quot;content&quot;)<br>                if content:<br>                    full_text += content<br>            except json.JSONDecodeError:<br>                continue<br><br>        return full_text.strip() if full_text else &quot;❌ Empty response returned by Ollama&quot;<br><br>    except Exception as e:<br>        return f&quot;❌ Ollama API Error: {e}&quot;<br><br># -------------------- Extracting text from PDF --------------------<br>def extract_text(pdf_file) -&gt; str:<br>    try:<br>        reader = PdfReader(pdf_file.name)<br>        text = &quot;&quot;<br>        for page in reader.pages:<br>            page_text = page.extract_text()<br>            if page_text:<br>                text += page_text + &quot;\n&quot;<br>        return text.strip()<br>    except Exception as e:<br>        return f&quot;❌ PDF file Corrupted or Unable to read : {e}&quot;<br><br># -------------------- Scanning  Profiles --------------------<br>def scan_pdf(pdf_file):<br>    text = extract_text(pdf_file)<br>    if text.startswith(&quot;❌&quot;):<br>        return text, &quot;&quot;, &quot;&quot;, &quot;&quot;<br><br>    # Prepare prompts for Ollama<br>    emp_prompt = f&quot;Extract only the work experience from this resume:\n{text}&quot;<br>    qua_prompt = f&quot;Extract only the education from this resume:\n{text}&quot;<br>    skills_prompt = f&quot;Extract only the skills from this resume:\n{text}&quot;<br><br>    # Query Ollama<br>    employment = prompt_ollama(emp_prompt)<br>    qualification = prompt_ollama(qua_prompt)<br>    skills = prompt_ollama(skills_prompt)<br><br>    return text, employment, qualification, skills<br><br># -------------------- Gradio configs --------------------<br>with gr.Blocks() as intface:<br>    gr.Markdown(&quot;### Profile Scanner with Ollama + Gradio&quot;)<br>    <br>    with gr.Row():<br>        pdf_input = gr.File(label=&quot;Upload Your PDF here&quot;, file_types=[&quot;.pdf&quot;])<br>    <br>    run_btn = gr.Button(&quot;Click to Extract the Text from PDF &quot;)<br><br>    with gr.Row():<br>        raw_output = gr.Textbox(label=&quot;Raw Content&quot;, lines=10)<br>        emp_output = gr.Textbox(label=&quot;Employments&quot;, lines=10)<br>        qua_output = gr.Textbox(label=&quot;Qualification&quot;, lines=3)<br>        skills_output = gr.Textbox(label=&quot;Skills&quot;, lines=10)<br><br>    run_btn.click(fn=scan_pdf, inputs=[pdf_input],<br>                  outputs=[raw_output, emp_output, qua_output, skills_output])<br><br># -------------------- Running the Program --------------------<br>if __name__ == &quot;__main__&quot;:<br>    intface.launch(inbrowser=True, debug=True)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WM1RT-o2Y7pooot5UliGcg.png" /></figure><p><strong>Disclaimer: </strong>Please test and verify the code before you implement in a production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08c7d9f5065e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/the-profile-scanner-with-ai-gradio-and-ollama-part-2-08c7d9f5065e">The Profile Scanner with AI — Gradio and Ollama — Part 2</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Profile Scanner with AI — Gradio and Ollama]]></title>
            <link>https://medium.com/anditb/the-profile-scanner-with-ai-gradio-and-ollama-c87b0067455f?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c87b0067455f</guid>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gradio]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Mon, 20 Oct 2025 14:15:06 GMT</pubDate>
            <atom:updated>2025-11-04T17:13:36.196Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Profile Scanner with AI — Gradio and Ollama — Part 1</h3><p>In today’s business environment, HR professionals are expected to wear many hats is the reality — includes recruiting top talent, managing employee relations, improving workforce engagement and so on. With the rise of AI and automation, tools like Gradio and Ollama offer HR teams new opportunities to streamline their work, improve decision-making, and enhance employee experiences.</p><p>Let’s explore these two tools can empower HR professionals and redefine the way human resources operates.</p><ul><li><strong>Part — 1:</strong> demonstrates how to extract information (such as Employment, Qualification, and Skills) without using a Large Language Model (LLM) like Ollama. In this approach, the Python programmer must explicitly define all the extraction criteria and parsing logic.</li><li><strong>Part — 2</strong> introduces <strong>Ollama</strong>, which integrates artificial intelligence into the software development. With the help of Ollama, the extraction becomes intelligent — there is <strong>no need to explicitly specify every rule or criterion</strong>, as the model understands and processes the document as context. Click here <a href="https://medium.com/p/08c7d9f5065e">https://medium.com/p/08c7d9f5065e</a></li></ul><pre><strong>Problem:</strong> HR Professionals require a tool which he can interractively input the <br>employee resume and extract Experince , Education &amp; Skill Sections<br><br><strong>Solution:</strong> Use AI with the help of Gradio &amp; Ollama.<br><br><strong>Technogies:</strong> Python, PyPDF2, Ollama, jupyter lab</pre><pre><strong>Prequesite</strong> : Ollama<br>           : Anaconda<br>           : Jupyter Lab<br>           : Gradio</pre><p><strong>Steps</strong></p><p>1 — Make sure that Ollama is running in the local machine</p><p>2— Install Anaconda and make sure Jupyter Lab is configured</p><p>3 — Install pyPDF2 &amp;Gradio</p><p>4 — Run the code below in Jupyter lab</p><pre># !pip install gradio<br>import gradio as gr<br>import pdfplumber<br><br>#  Parsing of keywords <br>SECTIONS = {<br>    &quot;Experience&quot;: [&quot;experience&quot;, &quot;employment&quot;, &quot;work history&quot;, &quot;professional experience&quot;],<br>    &quot;Education&quot;: [&quot;education&quot;, &quot;academic background&quot;, &quot;qualification&quot;],<br>    &quot;Skills&quot;: [&quot;skills&quot;, &quot;technical skills&quot;, &quot;key skills&quot;, &quot;tools&quot;, &quot;technologies&quot;]<br>}<br><br>END_KEYWORDS = [&quot;projects&quot;, &quot;certifications&quot;, &quot;languages&quot;, &quot;summary&quot;, &quot;objective&quot;, &quot;hobbies&quot;, &quot;interests&quot;]<br><br>#  Extracting sections<br>def extract_pdfs(text, START_KEYWORDS):<br>    lines = [line.strip() for line in text.split(&#39;\n&#39;) if line.strip()]<br>    section_pdf = &quot;&quot;<br>    capture = False<br><br>    for line in lines:<br>        lower_line = line.lower()<br><br>        if any(kw in lower_line for kw in START_KEYWORDS):<br>            capture = True<br>            continue<br><br>        if capture:<br>            if any(stop_kw in lower_line for stop_kw in END_KEYWORDS):<br>                break<br>            section_pdf += line + &quot;\n&quot;<br><br>    return section_pdf.strip()<br><br># === Main function for Gradio ===<br>def gradio_process (files):<br>    results = &quot;&quot;<br><br>    for uploaded_file in files:<br>        filename = uploaded_file.name<br>        results += f&quot;===== {filename} =====\n&quot;<br><br>        try:<br>            with pdfplumber.open(uploaded_file) as pdf:<br>                full_text = &quot;\n&quot;.join(<br>                    page.extract_text() or &quot;&quot; for page in pdf.pages<br>                )<br><br>            experience = extract_pdfs(full_text, SECTIONS[&quot;Experience&quot;]) or &quot;Not Found&quot;<br>            education = extract_pdfs(full_text, SECTIONS[&quot;Education&quot;]) or &quot;Not Found&quot;<br>            skills = extract_pdfs(full_text, SECTIONS[&quot;Skills&quot;]) or &quot;Not Found&quot;<br><br>            results += f&quot;\n EXPERIENCE:\n{experience}\n&quot;<br>            results += f&quot;\n EDUCATION:\n{education}\n&quot;<br>            results += f&quot;\n SKILLS:\n{skills}\n&quot;<br>            results += &quot;\n&quot; + &quot;=&quot;*40 + &quot;\n\n&quot;<br><br>        except Exception as e:<br>            results += f&quot;\n❌ Error reading {filename}: {e}\n\n&quot;<br><br>    return results<br><br># === Gradio Interface ===<br>iface = gr.Interface(<br>    fn=gradio_process,<br>    inputs=gr.File(file_types=[&quot;.pdf&quot;], label=&quot;Upload the Resumes in PDFs&quot;, file_count=&quot;multiple&quot;),<br>    outputs=gr.Textbox(label=&quot;Extracted Resume details&quot;, lines=30),<br>    title=&quot;HR Resume Scanner&quot;,<br>    description=&quot;Extracts Employment, Education, and Skills sections in the Resumes.&quot;<br>)<br><br>iface.launch()</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zyDtqgpltbQoFz6t8Y-hZg.png" /></figure><p><strong>Disclaimer: </strong>Please test and verify the code before you implement in a production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c87b0067455f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/the-profile-scanner-with-ai-gradio-and-ollama-c87b0067455f">The Profile Scanner with AI — Gradio and Ollama</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Summarising the PDF docs with AI]]></title>
            <link>https://medium.com/anditb/summarising-the-pdf-docs-945686e96b7b?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/945686e96b7b</guid>
            <category><![CDATA[summerization]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[jupyter]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 15:29:28 GMT</pubDate>
            <atom:updated>2025-10-12T16:46:35.758Z</atom:updated>
            <content:encoded><![CDATA[<pre><strong><em>Problem:</em></strong> PDFs are hard to read the contents page by page<br><br><strong><em>Solution:</em></strong> Use AI to summarize them automatically.<br><br><strong><em>Technogies:</em></strong> Python, PyPDF2, Ollama, jupyter lab</pre><pre><strong>Prequesite </strong>: Ollama<br>           : Anaconda<br>           : Jupyter Lab</pre><p>I used my LinkedIn profile exported as a PDF and ran it through this AI summarization program. The tool generated a concise and insightful summary.</p><p><strong>Steps:</strong></p><p>1 — Make sure that Ollama is running in the local machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8cGMfqekNDq9Ni1PG0RhQg.png" /></figure><p>2 — Install Anaconda and make sure Jupyter Lab is configured</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*pj1R53if7404eYRjrZaMHw.png" /></figure><p>3 — Run the code given below in Jupyter Lab</p><pre>!pip install PyPDF2<br><br>import PyPDF2<br>import requests<br>import json<br><br># Ollama setup<br>OLLAMA_API = &quot;http://localhost:11434/api/chat&quot;<br>HEADERS = {&quot;Content-Type&quot;: &quot;application/json&quot;}<br>MODEL = &quot;llama3.2&quot;<br><br>def extract_text_from_pdf(pdf_path):<br>    &quot;&quot;&quot;Extract all text from a PDF file.&quot;&quot;&quot;<br>    text = &quot;&quot;<br>    with open(pdf_path, &#39;rb&#39;) as file:<br>        reader = PyPDF2.PdfReader(file)<br>        for page in reader.pages:<br>            text += page.extract_text()<br>    return text<br><br># --- look at double slash  ---<br>pdf_path = &quot;d:\\profile.pdf&quot;<br>pdf_text = extract_text_from_pdf(pdf_path)<br><br># --- Considering first 8000 Chars ---<br>trimmed_text = pdf_text[:8000]<br><br># --- Summarization Prompt ---<br>prompt = f&quot;Summarize the following PDF content:\n\n{trimmed_text}&quot;<br><br>messages = [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}]<br>data = {<br>    &quot;model&quot;: MODEL,<br>    &quot;messages&quot;: messages,<br>    &quot;stream&quot;: False<br>}<br><br># --- Call Ollama API ---<br>print(&quot;🤖 Summarizing the PDF ...&quot;)<br>try:<br>    response = requests.post(OLLAMA_API, headers=HEADERS, data=json.dumps(data))<br>    summary = response.json()[&quot;message&quot;][&quot;content&quot;]<br>    print(&quot;\n📝 Summary:\n&quot;, summary)<br>except Exception as e:<br>    print(&quot;Error on summarization --- &quot;, e)</pre><p><strong>Output:</strong></p><pre>Summary:<br> This is a LinkedIn profile of Girish V P, a professional with expertise in cloud technology and IT management. Here&#39;s a summary of the information provided:<br><br>**Experience:**<br><br>* Covalense Digital (2024-present): IT Service Management and Data Center Management<br>* Impelsys (2019-2023): Lead, AD Cloud Operations; SRE and Monitoring Team<br>* Tensult (2017-2018): Cloud Architect<br>* Embassy Group (2013-2017): IT System Manager<br>* Linux Learning Centre Private Limited (2008-2013): Manager, Customer Support Services<br><br>**Education:**<br><br>* MSc. Computer Science, IT Professional (2019-2023)<br><br>**Certifications:**<br><br>* Amazon Web Services Solutions Architect - Professional (Dec 2018, Expires Nov 2026)<br>* Amazon Web Services Solutions Architect Associate (Jun 2018, Expires Dec 2026)<br><br>**Projects:**<br><br>* 10 projects listed, including AWS Organization Authenticates from ADS/ADFS SAML and Centralized ssh public key storage for AWS EC2 using RedHat IPA with sudo feature<br><br>**Skills:**<br><br>* Cloud Technology: AWS (Professional Level), Azure(Basic), GCP(Basis)<br>* Operating Systems: RedHat Linux, MS Windows Server, Unix<br>* Languages: English, German (elementary proficiency)<br><br>**Interests:**<br><br>* Companies: IBM, Hewlett Packard Enterprise<br>* Schools: Visvesvaraya Technological University<br><br>**Network:**<br><br>* 396 followers<br>* Connections with other professionals in the IT and cloud technology industries<br><br>Overall, Girish V P&#39;s profile suggests that he has extensive experience in cloud technology, IT management, and IT service delivery. He is also certified in Amazon Web Services solutions architecture.</pre><p><strong>Disclaimer: </strong>Please test and verify the code before you implement in a production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945686e96b7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/summarising-the-pdf-docs-945686e96b7b">Summarising the PDF docs with AI</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Identifying disabled Windows ADS Users]]></title>
            <link>https://medium.com/anditb/identifying-disabled-windows-ads-users-367f01332b66?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/367f01332b66</guid>
            <category><![CDATA[ad-active-users]]></category>
            <category><![CDATA[ad-disabled-users]]></category>
            <category><![CDATA[ad-audit]]></category>
            <category><![CDATA[ads]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sat, 22 Jun 2024 15:56:11 GMT</pubDate>
            <atom:updated>2024-06-22T16:02:51.695Z</atom:updated>
            <content:encoded><![CDATA[<p>It is often a requirement to audit the IT infrastructure at a defined interval as part of the security practices. Windows Active Directory plays vital role in the centralize authentication of the infrastructure and hence important that all exited employee’s accounts disabled on time. Regular audit help to identify any left employee account kept active and whereby avoid a security risk.</p><p>Let us start with some useful commands, I use <em>Active User Module for Windows PowerShell</em></p><p>1 — I used Get-AdUser command to list the user details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*NCFGseotUKGntH9sU2OKuw.png" /></figure><p>2 — I used the below options to find all properties of the a specific user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*xVP0snLpUmfou0bdZTjmPA.png" /></figure><p>3 — The below command used to find all the disabled user accounts. <em>Enabled -ed ‘True’ </em>give active users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*8x8OsiA5UHtkke5Rs5sPag.png" /></figure><p>4 — To filter only required fields for all the disabled users, I used</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2koPpjlbeNl_lg5lYjjsVQ.png" /></figure><p>5 — Exported the output to a CSV file so that I can reuse later,</p><pre>get-aduser -Filter {Enabled -eq &#39;False&#39;} | export-csv -path c:\disabledusers.csv</pre><p>6 — Final Command, I executed.</p><pre>get-aduser -Filter {Enabled -eq &#39;True&#39;} | select-object samaccountname,enabled | export-csv -path c:\activeusers.csv</pre><p><strong>Disclaimer:</strong></p><p>It is recommended to test thoroughly before implement this in a production environment. These commands are executed on Windows 2022 Server. The commands and options may vary based on the version of the operating system. Requested to go through Microsoft documents for more details.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=367f01332b66" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/identifying-disabled-windows-ads-users-367f01332b66">Identifying disabled Windows ADS Users</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup SLA with Atlassian Jira Service Desk]]></title>
            <link>https://medium.com/anditb/setup-sla-with-atlassian-jira-service-desk-85029ecc7d16?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/85029ecc7d16</guid>
            <category><![CDATA[sla-breach]]></category>
            <category><![CDATA[jira-automation]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[sla]]></category>
            <category><![CDATA[jira-service-desk]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sun, 02 Jun 2024 10:50:20 GMT</pubDate>
            <atom:updated>2024-06-22T06:43:40.334Z</atom:updated>
            <content:encoded><![CDATA[<p>SLA is not new term which need much explanation. SLA need not be always be between the Organizations, It could be within the organization as well between various business unit. We will see how Priority could be set within the request type and send a mail alert when SLA is about to be breached. When ever some details required from the requester, SLA time counter need to be stopped. Let us see (minimum) steps involved.</p><pre>1 - Define Support Calendar<br>2 - Setup the Target time (like Resolution time) for each Priority<br>3 - Stop the SLA time counter when waiting for a customer action<br>4 - Add a Priority Field for the Request type<br>5 - Set Automation to warn on SLA breach using mail alert</pre><p><strong>1 — Define Support Calendar</strong></p><p>Select the Project -&gt; Project Settings -&gt; SLA. Click top right calendar icon to create a calendar for the support hours. Name the calendar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xso0D_0vw1Lp1YBDwYA6Q.png" /></figure><p><strong>2 — Setup the Target time for each Priority</strong></p><p>The Target time need to be setup for <strong><em>Time to Resolution</em></strong>, <strong><em>Time to First Response</em></strong> etc based on the criticality of the Project. The calendar need to be selected the one created in the Step 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDM6YCN4ouXgQcqxcvBesg.png" /></figure><p>3 — Stop the SLA time counter when waiting for a customer action. A little below the screen set. Set the condition based on the Organization need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vb-jJqkcqXASX6e6TbLkcg.png" /></figure><p><strong>4 — Add a Priority Field for the Request type</strong></p><p>Select Project -&gt; Project Settings -&gt; Request Type. Below Windows pops up. From the right Window pane search for the Priority field and drag to the middle Window pane and do the required changes. Make sure that edited Request Type is available to the end user to select (Not in the scope of this document).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4xNhjeifNj8Gpk7P6zPbw.png" /></figure><p><strong>5 — Set Automation to warn on SLA breach using mail alert</strong></p><p>Select Project -&gt; Project Settings -&gt; Automation-&gt; Create Rule. In the right Window pane Search for “ <strong><em>SLA threshold breached</em></strong>” . Select SLA and Trigger Conditions. Once finished Click <em>Next . </em>Click <em>“</em><strong><em>THEN: add an Action</em></strong><em>” . </em>In the Right Window pane search for<em> “</em><strong><em>Send email</em></strong><em>”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZk6t6V3GVhIbWm-rlJUWw.png" /></figure><p>Click <strong><em>Next. </em></strong>Select mail recipient mail Subject and content. Include appropriate identifiers in the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yfik_JF_HGnOTc-osPC_9w.png" /></figure><p>Click <strong><em>Next </em></strong>and Click <strong><em>Turn on rule</em></strong>. Assign a name for rule.</p><p>Create the Automation Rule for other SLA breach condition as well.</p><p><strong>Conclusion: </strong>SLA is setup for a business environment and alerted to Assignee before SLA breach.</p><p><strong>Disclaimer: </strong>It is requested to test the configuration thoroughly before apply in the production environment. Configuration options may very based on the Jira versions</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85029ecc7d16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/setup-sla-with-atlassian-jira-service-desk-85029ecc7d16">Setup SLA with Atlassian Jira Service Desk</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Build: I made my Dockerfile Immutable]]></title>
            <link>https://medium.com/anditb/docker-build-i-made-dockerfile-immutable-830a30020dbb?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/830a30020dbb</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[env]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[script]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 11:03:58 GMT</pubDate>
            <atom:updated>2024-03-13T12:19:18.523Z</atom:updated>
            <content:encoded><![CDATA[<p>Some times it is good to keep a main configuration file immutable. Many a times multiple members and teams are involved in a software development environment. Here, I wanted to avoid hard cording of the Dockerfile and at the same time a flexibility of calling the build argument from my shell script.</p><p><strong>Step 1:</strong> I Created a Dockerfile like below. PLATFORM is the build argument that need to be passed later point of time</p><pre>FROM centos:7<br>COPY script.sh  .<br>ARG PLATFORM<br>ENV PLATFORM=${PLATFORM}<br>ENTRYPOINT bash script.sh $PLATFORM </pre><p><strong>Step 2</strong>: Then I created a bash script file script.sh like below. “$1” is evaluated against the value passed later during the build.</p><pre>#!/bin/bash<br>if [ $1 == &quot;Linux&quot; ]<br>then<br>echo &quot;TEST: Build arguement was passed  correctly&quot;<br>else<br>echo &quot;Bulid arguement was  not passed correctly&quot;<br>fi </pre><p><strong>Step 3: </strong>Then docker was built the by passing the argument.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*GMXXT3Ne4bbX_ICzgMUKgA.png" /></figure><p><strong>Disclaimer:</strong> It is recommended to do a thorough test before applying in production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=830a30020dbb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/docker-build-i-made-dockerfile-immutable-830a30020dbb">Docker Build: I made my Dockerfile Immutable</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Set up own Certificate Authority: Used it to generate a SSL wild card Web server Certificate]]></title>
            <link>https://medium.com/anditb/i-set-up-own-certificate-authority-used-it-to-generate-a-ssl-wild-card-web-server-certificate-90e428ca53d3?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/90e428ca53d3</guid>
            <category><![CDATA[openssl]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[alb]]></category>
            <category><![CDATA[wildcard-certificate]]></category>
            <category><![CDATA[ca-setup]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 14:13:30 GMT</pubDate>
            <atom:updated>2024-03-11T14:35:50.562Z</atom:updated>
            <content:encoded><![CDATA[<p>Waiting indefinitely to fulfill a pre-requisite before starting a real implementation is too hard for any IT engineer. Recently, I had to do a test SSL implementation on an AWS Application Load Balancer. And, I didn&#39;t want to purchase a commercial SSL server certificate for my experiment, which last for just one hour. Then I thought, I go for setting up own openSSL CA and generate a web server SSL certificate using it. Though I did the same a decade back, there were no constraint on subjectAltName. - Not forgetting some free tools available in the market.</p><p>Explaining the procedure….</p><pre>Given below Certifciate name with Description<br>my-ca.crt - CA Certifiate (Public key of certificate)<br>my-ca.key - Private Key of CA<br>httpd.csr - certifciate signing request for web server certificate<br>httpd.crt - Server Certificate of  Web Server<br>httpd.key - Private Key of Web Server Certifciate</pre><p><strong>Step 1: </strong>I Set up a Certificate Authority first. Following commands did a CA setup, creating private and CA certificate file</p><pre># cd /etc/pki/CA<br># openssl genrsa -aes256 -out private/my-ca.key 4096<br># openssl req -x509 -new -nodes -key private/my-ca.key -sha256 -days 1826 -out my-ca.crt -subj &#39;/CN=www.yourdomain.com/C=IN/ST=Karnataka/L=Bangalore/O=yourcompanyname&#39;<br># cp my-ca.crt  /etc/pki/ca-trust/source/anchors<br># update-ca-trust</pre><p><strong>Step 2: </strong>Certificate signing request (.csr) is created for web server.</p><pre>openssl req -x509 -new -nodes -key private/my-ca.key -sha256 -days 1826 -out my-ca.crt -subj &#39;/CN=*.your_domain.com/C=IN/ST=Karnataka/L=Bangalore/O=Your_Company_Name&#39;</pre><p><strong>Step 3: </strong>Created a configuration file (<em>httpd.altnames</em>) containing certificate and request X.509 extensions to add. Provided the wild card domain name and IP address of my EC2 instance.</p><pre>authorityKeyIdentifier=keyid,issuer<br>basicConstraints=CA:FALSE<br>keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment<br>subjectAltName = @alt_names<br><br>[alt_names]<br>DNS.1 = <em>*.yourdomain.com</em><br>IP.1  = <em>your.server.public.ip</em></pre><p>Step 4: Sign the sign the .csr file with CA.</p><pre># openssl x509 -req -in httpd.csr -CA my-ca.crt -CAkey private/my-ca.key -CAcreateserial -out httpd.crt -days 730 -sha256 -extfile httpd.altnames</pre><p><strong>Step 5: </strong>Edited Apache configuration files and added CA Certificate, Server certificate and Private key of server certificate. Configuration is not mentioned here.</p><p><strong>Step 6: </strong>Edited /etc/hosts file adding my website name and the IP address of Server. Also, I have imported CA Certificate (my-ca.crt) in to the web browser which is a mandatory requirement</p><p><strong>Result</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*LnjfG2ybJsnt56trw4yVvg.png" /></figure><p><strong>Conclusion: </strong>It is easy to set up an own CA with OpenSSL and sign a server certificate for a testing environment, which can avoid paying money for a commercial SSL certificate.</p><p><strong>Disclaimer:</strong> This set up can be used only for a testing environment. Recommended to purchase a commercial server certificate for a production setup.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90e428ca53d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/i-set-up-own-certificate-authority-used-it-to-generate-a-ssl-wild-card-web-server-certificate-90e428ca53d3">I Set up own Certificate Authority: Used it to generate a SSL wild card Web server Certificate</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins container Admin password: How I reset it]]></title>
            <link>https://medium.com/anditb/jenkins-admin-password-how-i-reset-it-40091f34f33b?source=rss-304ee38fc0e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/40091f34f33b</guid>
            <category><![CDATA[password-reset]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Girish V P]]></dc:creator>
            <pubDate>Sun, 10 Mar 2024 03:25:19 GMT</pubDate>
            <atom:updated>2024-03-10T03:58:13.682Z</atom:updated>
            <content:encoded><![CDATA[<p>Technology changes every day, Server changes every day… approaches change every change now and then. And, It is quite possible that a server keep inactive for a long time and require to brush it up for some obvious reasons, verification or comparison with latest implementation. By the time password would have been out of the document.</p><p>How I reset the password of Jenkins container running on an AWS EC2 instance. Conceptually, I have to make my Jenkins web console password less. First activity is to allow the access only to my Laptop. I have edited the Security group for the same.</p><p>Then found out config.xml in the Jenkins home of the Jenkins container and made two copies, one as exact original copy and maintain till my experiment is over and another copy to do a text processing before I modify original confix.xml</p><pre>sed -i &#39;s/&lt;useSecurity&gt;true&lt;\/useSecurity&gt;/&lt;useSecurity&gt;false&lt;\/useSecurity&gt;/&#39; config.xml<br>sed -i &#39;s/&lt;denyAnonymousReadAccess&gt;true&lt;\/denyAnonymousReadAccess&gt;/&lt;denyAnonymousReadAccess&gt;false&lt;\/denyAnonymousReadAccess&gt;/&#39; config.xml<br>sed -i &#39;s/&lt;disableSignup&gt;true&lt;\/disableSignup&gt;/&lt;disableSignup&gt;false&lt;\/disableSignup&gt;/&#39; config.xml</pre><p>Then stopped and started the Jenkins container</p><pre># docket stop jenkins<br># docker start jenkins</pre><p>Then, accessed Jenkins console with the browser, IP:8080</p><p>Deleted Admin User and Changed security Settings like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvHFIs6WfifTUY7KH562qQ.png" /></figure><p>When saves the settings asked for creating new admin. Admin privileges can be set up based on the requirement. But for me it was not for a production environment and kept above setup.</p><p>Logged out of the web console and compared config.xml with original one. Verified it was working as required.</p><p><strong>Disclaimer:</strong> It is recommended to do a thorough test before applying in production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40091f34f33b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anditb/jenkins-admin-password-how-i-reset-it-40091f34f33b">Jenkins container Admin password: How I reset it</a> was originally published in <a href="https://medium.com/anditb">ADIBI Technologies, Basavanagudi, Blore.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>