Getting Started with HuggingFace Smolagents

Written by on March 12, 2025 in Agents, OpenAI, Programming, Python with 0 Comments
Getting Started with HuggingFace Smolagents

Agents and Agent frameworks are hot topics these days. LangChain, crewAI, LangGraph, Microsoft Semantic Kernel, and Microsoft Autogen are some of the popular agent frameworks. Smolagents is a relatively new entry in this arena. It is a lightweight agent framework from the well-known HuggingFace platform. In today’s article, I want to show how easy it […]

Continue Reading

Using OpenAI from Mathematica: Part-3

Written by on February 21, 2025 in Mathematica, OpenAI, Programming with 0 Comments
Using OpenAI from Mathematica: Part-3

Let us continue our discussion on using Mathematica to interact with OpenAI (you may want to go through the earlier article as well). The simplest function to interact with the LLM is LLMSynthesize[]. As you might have guessed, this is a “sync” (non-streaming) call. What if you expect a long response and you don’t want […]

Continue Reading

Interacting with OpenAI API using Golang

Written by on February 4, 2025 in Golang, OpenAI, Programming with 0 Comments
Interacting with OpenAI API using Golang

I normally use Python’s LangChain framework to communicate with OpenAI API. For a change, I wanted to see if Go has any libraries to access OpenAI and other LLMs. Interestingly I found that LangChainGo is a port of LangChain for Golang! I decided to implement a simple Completetion request in both streaming and non-streaming modes. Turned […]

Continue Reading

Using OpenAI from Allegro Common Lisp

Written by on January 20, 2025 in LISP, OpenAI, Programming with 0 Comments
Using OpenAI from Allegro Common Lisp

Allegro Common Lisp ver 11.0 introduced support for OpenAI LLMs. In this article, let us look at some of the functions for interacting with OpenAI. First we need to specify basic parameters such as the API key, LLM to use, Temperature, etc. I have defined a convenient function configure-openai to do this (full source is included […]

Continue Reading

Word Transformation Puzzle – Part 2: Implementation in Common Lisp

Written by on January 4, 2025 in LISP, Programming with 0 Comments
Word Transformation Puzzle – Part 2: Implementation in Common Lisp

In the last article I discussed an interesting word puzzle and showed how to solve it using Prolog. Here is the problem statement: “You are given two words of the same length. You have to transform the first word into the second word, by changing only one letter at a time. The additional constraint is that […]

Continue Reading

Using Prolog to Solve the Word Transformation Puzzle

Written by on December 17, 2024 in Programming, Prolog with 0 Comments
Using Prolog to Solve the Word Transformation Puzzle

In today’s article, I want to share an interesting word puzzle, and then show how to solve it in Prolog. Here is the puzzle: You are given two words of the same length. You have to transform the first word into the second word, by changing only one letter at a time. The additional constraint […]

Continue Reading

Multiobjective Optimization (MOO) in Lisp and Prolog

Written by on November 22, 2024 in C++, LISP, Programming, Prolog with 0 Comments
Multiobjective Optimization (MOO) in Lisp and Prolog

Recently I came across a nice article by Jose Crespo, where the author stresses that the future of programming revolves around the application of math concepts such as Functor, Monads, Folds, etc. In addition, he argues that familiarity with C/C++ is essential in this modern AI age. The author goes through a toy example that uses […]

Continue Reading

Semantic Search in Wolfram Mathematica

Written by on November 9, 2024 in Mathematica, Natural Language Processing, OpenAI, Programming with 0 Comments
Semantic Search in Wolfram Mathematica

In an earlier article, I explained how to use OpenAI from Wolfram Mathematica ver 14.1. This latest release of Wolfram supports Semantic Search as well. In today’s article, let me discuss this feature. As in the case of using LLMs, using Semantic Search requires an account with one of the supported vendors. I will continue […]

Continue Reading

Blending Tamil and English Poetic Devices

Written by on October 20, 2024 in OpenAI with 0 Comments
Blending Tamil and English Poetic Devices

Tamil language is known for its classical literature, especially the poetic forms built using exotic syntactic and semantic structure. The two most widely referenced books on Tamil Poetry grammar are Yapperungalakkarigai and Thandialangaram.  I have had the pleasure of studying both as a High School student a few decades ago. They still continue to amaze me! […]

Continue Reading

Using ChatGPT for Algorithmic Music Composition

Written by on October 13, 2024 in Music, OpenAI with 0 Comments
Using ChatGPT for Algorithmic Music Composition

Algorithmic music composition is one of my favourite areas. And in terms of tools, as several of my past articles show, OpusModus software is the main choice.  Recently I have been spending some time checking if ChatGPT could be cajoled into writing some good OpusModus code. But the experience has not been very positive; the code […]

Continue Reading

Top