-
AI is Stimulating Change
Last updated: Thursday, December 19, 2024
Published in: CODE Magazine: 2025 - Jan/Feb
Rod explores the rapidly evolving landscape of artificial intelligence (AI) and machine learning (ML), emphasizing their increasing accessibility to smaller developers and companies. He notes that AI tools like Whisper and LangChain can enhance application functionalities while acknowledging the accompanying challenges, such as the potential for misinformation and the need for human oversight to ensure accuracy. Through CODE Magazine, Rod hopes to guide readers in integrating AI into their work responsibly, underscoring the importance of evaluating AI's suitability and potential risks. He advocates for a cautious and informed approach akin to "Trust but Verify."
-
Building HAL 9000 (And It Runs Completely on My Mac)
Last updated: Thursday, December 19, 2024
Published in: CODE Magazine: 2025 - Jan/Feb
Sahil Malik explores the feasibility of creating a sophisticated AI digital assistant akin to HAL 9000 from "2001: A Space Odyssey," all while ensuring the system operates offline on a commercially available MacBook Pro. Sahil details the process of constructing this AI system, leveraging tools like Hugging Face for model sourcing, OpenAI's Whisper for speech recognition, and the Gemma language model for processing and generating coherent, context-aware responses. He shares the technical steps, including code snippets and required components, illustrating that what was once science fiction is now achievable with modern technology. This project not only emphasizes the advancements in AI but also showcases how these technologies can be harnessed for practical and experimental applications by enthusiasts with access to standard consumer hardware.
-
Exploring LangChain: A Practical Approach to Language Models and Retrieval-Augmented Generation (RAG)
Last updated: Thursday, December 19, 2024
Published in: CODE Magazine: 2025 - Jan/Feb
Wei-Meng Lee provides an in-depth guide to using the LangChain framework for building applications incorporating large language models (LLMs). He emphasizes LangChain's modular design, enabling developers to create complex workflows with customizable components and integrate external data sources, facilitating Retrieval-Augmented Generation. Key topics covered include constructing chains, maintaining conversational context with memory management, and leveraging Microsoft and Hugging Face's models for enhanced flexibility and privacy. Wei-Meng also demonstrates implementing RAG for document-based querying, offering a comprehensive overview of LangChain's capabilities for developing dynamic, data-driven solutions.
-
The Infinite Monster Engine
Last updated: Thursday, December 19, 2024
Published in: CODE Magazine: 2025 - Jan/Feb
Jason Murphy explores the evolution of his fascination with tabletop role-playing games, from his improvisational beginnings as a Dungeon Master to creating a sophisticated encounter builder using Large Language Models (LLMs). He details his development of an automated system leveraging AI to generate immersive and tailored RPG encounters. By instructing an LLM and refining its responses, Murphy effectively reduces preparation time, enabling more dynamic game sessions. The article underscores the potential of AI in enhancing the gaming experience, while providing practical guidance on prompt engineering and technical setup for building a functional RPG encounter generator.
-
AI with No Internet Connection
Last updated: Wednesday, October 30, 2024
Published in: CODE Magazine: 2024 - November/December
Sahil discusses the challenges and potential of developing AI applications that function offline, emphasizing privacy and data security. He explores building a local application capable of answering questions from any source without cloud dependency, using tools like Ollama and LangChain to run large language models locally while keeping your data under your local control. Malik provides a practical guide to leveraging existing models for specific tasks, highlighting the benefits of local AI processing.
-
Can an LLM Make a Video Game?
Last updated: Thursday, October 24, 2024
Published in: CODE Magazine: 2024 - November/December
Jason explores the potential of using a Large Language Model (LLM), specifically ChatGPT-4, to recreate the classic arcade game Asteroids in Python, without direct coding. He documents his journey from initial prompts to the LLM, through iterative development, addressing errors and inefficiencies, to the final product—a functional but rudimentary game. The experiment highlights the LLM's capabilities and limitations in game development, emphasizing the importance of precise prompting and showcasing the evolving role of AI in coding and creative processes. Jason also provides access to the full chat thread.
-
Prototyping LangChain Applications Visually Using Flowise
Last updated: Monday, November 11, 2024
Published in: CODE Magazine: 2024 - March/April
Wei-Meng Lee introduces Flowise as a low-code/no code drag-and-drop tool that simplifies the creation of LangChain applications. LangChain is a framework for building applications using Large Language Models (LLMs) and Flowise allows users to visually prototype and build LLM apps without writing code. The article provides an overview of Flowise's key features and guides readers through building several example applications, including a language translator, a conversational chatbot, and a tool for analyzing CSV data files.
-
Semantic Kernel 101: Part 2
Last updated: Thursday, February 22, 2024
Published in: CODE Magazine: 2024 - March/April
Mike continues his tutorial on working with Semantic Kernel (SK), Microsoft's framework for working with Large Language Models (LLMs), including code examples since SK V1 has just released. Mike demonstrates how to create a deployment of a GPT-4 Large Language Model in the Azure portal. Learn to create a prompt in code and execute it against the model. Learn to execute your own C# code in the same way you executed the prompts, and how to chain multiple functions together in a pipeline.
-
You’re Missing Out on Open-Source LLMs!
Last updated: Tuesday, March 19, 2024
Published in: CODE Magazine: 2024 - March/April
Philipp Bauer discusses the importance of open-source language models (LLMs) and why its good that there are alternatives to what only very large companies might develop. He explains how open-source LLMs can address a company's concerns about the safety of customer data, compliance and intellectual property. Philipp then covers considerations for choosing open-source LLMs, hardware requirements, and available tools for running LLMs locally.
-
Getting Started with AI Copilots in Your Own Applications
Last updated: Sunday, November 26, 2023
Published in: CODE Magazine: 2023 - September/October
Markus looks at fundamental techniques required to build Copilot-powered applications. Learn to build a secure chatbot, and learn practical skills for creating prompts, using models, and adding your own data.
-
Machine Learning Saves Precious Time: Using AI to Classify Spam
Last updated: Tuesday, August 29, 2023
Published in: CODE Magazine: 2023 - September/October
Learn to use machine learning with AI to identify spam. Mike and the CODE team use AI to sort out the legitimate email messages.
-
An Introduction to OpenAI Services
Last updated: Wednesday, November 13, 2024
Published in: CODE Magazine: 2023 - July/August
OpenAI offers services, APIs, and Python packages for both end-users and developers to make use of their AI capabilities. These include ChatGPT, which is able to hold intelligent conversations with human beings, and GPT-2 and GPT-4, which are pre-trained models used for tasks such as language translation, generating new content, and providing suggestions and recommendations. Get an overview of these services and APIs and how to work with them.
-
OpenAI
Last updated: Wednesday, November 13, 2024
Published in: CODE Magazine: 2023 - July/August
Sahil's article provides a brief overview of OpenAI, a research laboratory consisting of a nonprofit and a for-profit subsidiary. Over the years, OpenAI has released and invented some amazing things, such as GPT-3, DALL-E, and ChatGPT 3.5, which have made it a popular choice for tech companies. Microsoft has invested heavily in OpenAI, and has integrated ChatGPT into its products, such as Bing, Edge, and Microsoft 365.
-
Implementing Face Recognition Using Deep Learning and Support Vector Machines
Last updated: Thursday, February 16, 2023
Published in: CODE Magazine: 2022 - May/June
If you have a fancy new computer or phone, you might already be using facial recognition. Wei-Meng explains how this exciting technology is at once simpler than you think and crazy complicated—and super cool!
-
Introduction to Deep Learning
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2020 - March/April
Learn about deep learning, and a bit about the math involved, in this overview of a very complex topic, including activation functions, backpropagation, TensorFlow and Keras, how to train a neural network and more.
-
ML.NET: Machine Learning for .NET Developers
Last updated: Wednesday, May 11, 2022
Published in: CODE Focus Magazine: 2019 - Vol. 16 - Issue 1 - .NET Core 3.0
Machine Learning doesn’t have to be the big scary monster lurking in the dark. Bri and Cesar show you how Microsoft’s ML.NET lets you design your own models specific to your deployment context and needs even if you’ve never played with ML before.
-
Enhance Your Search Applications with Artificial Intelligence
Last updated: Tuesday, December 8, 2020
Published in: CODE Magazine: 2019 - November/December
Search is everywhere. But unless you add it to your app, you won’t find it there! Sahil examines the various search tools in the Microsoft ecosystem and shows you how to make the most of them.
-
Stone Soup: Cooking Up Custom Solutions with SQL Server Machine Learning
Last updated: Tuesday, March 16, 2021
Published in: CODE Magazine: 2019 - November/December
SQL Server 2017 has machine learning services baked right in. If you’ve been wondering how to use it, you’ll be fascinated by what Jeannine’s serves up.
-
Azure Machine Learning Workspace and MLOps
Last updated: Wednesday, March 17, 2021
Published in: CODE Magazine: 2019 - September/October
It’s when you’re working with lots of data that you start looking around for an easier way to keep track of it all. Machine learning and artificial intelligence seem like the obvious answers, and Sahil shows you why.
-
Azure Machine Learning Service
Last updated: Monday, March 29, 2021
Published in: CODE Magazine: 2019 - July/August
Sahil explores the limitations of Cognitive Services, the potential of Azure Machine Learning, and creating your own AI models.
-
AI for Absolute Beginners
Last updated: Wednesday, November 10, 2021
Published in: CODE Magazine: 2019 - May/June
If you’ve been thinking that Artificial Intelligence and Machine Learning are a bit out of your league, think again. Sahil shows that you’re already using and benefiting from it, and you can create it too.
-
Introduction to Artificial Intelligence Using Microsoft Cognitive Services
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2019 - March/April
Using Cognitive Services, Wei-Meng shows you how ordinary mortals can create intelligent machines with human-like reactions. Siri and Alexa (and your Roomba) are going to have some new friends once you see how accessible it all is.
-
Natural Language Understanding with LUIS
Last updated: Friday, April 16, 2021
Published in: CODE Magazine: 2018 - September/October
In this next installment of his exploration into artificial intelligence, Sahil show you how to get LUIS to understand even if you misspell or mispronounce something.
-
Identify Voices with Microsoft Cognitive Services
Last updated: Wednesday, April 21, 2021
Published in: CODE Magazine: 2018 - July/August
In this next installment of his exploration into artificial intelligence, Sahil explores Microsoft Cognitive Services’ ability to recognize voices from a thirty-second sample.
-
Learn Python with Visual Studio
Last updated: Thursday, April 22, 2021
Published in: CODE Magazine: 2018 - July/August
Python has long been the favorite language of open-source developers. Nicola shows Windows and iOS developers how to take advantage of Python’s many qualities using Visual Studio.
-
Building an Alexa Skill with AWS Lambda
Last updated: Monday, April 26, 2021
Published in: CODE Magazine: 2018 - May/June
Your household will never be the same after you get Alexa. Chris shows you how to help her understand your requests by building a small trivia game.
-
Identify Faces with Microsoft Cognitive Services
Last updated: Friday, April 23, 2021
Published in: CODE Magazine: 2018 - May/June
When it’s time to wire your house to precipitate your every whim or need, you want to be sure that your robot doesn’t mistake “catsup” for “catnip.” Sahil talks about facial recognition and how it’s connected to speech and understanding.
-
Understanding Blockchain: A Beginners Guide to Ethereum Smart Contract Programming
Last updated: Monday, April 26, 2021
Published in: CODE Magazine: 2018 - May/June
If you need your data secure, there’s probably no better way to ensure it than a Blockchain. Wei-Meng explains how it all works and then helps you build your own.
-
Bots
Last updated: Wednesday, April 28, 2021
Published in: CODE Magazine: 2018 - March/April
Bots are no longer some cool effect in a sci-fi movie. Sahil shows you how to begin programming yours.
-
Introduction to the R Programming Language
Last updated: Friday, April 30, 2021
Published in: CODE Magazine: 2018 - March/April
Learning R sets you up for creating machine learning projects. Wei-Meng takes a close look at the language, which can implement a wide variety of statistical techniques, tests, analysis, classification, clustering, and can help you produce publication-quality graphs.
-
Getting Started with Machine Learning Using Microsoft Azure ML Studio
Last updated: Thursday, May 13, 2021
Published in: CODE Magazine: 2017 - September/October
Got a sinking feeling that you’re missing something in Artificial Intelligence? This article is only the tip of the iceberg, but Wei-Meng offers you a helping hand into the lifeboat called Microsoft Azure Machine Learning Studio.