Category Archives: OpenAI

Posts related to the OpenAI API and applications like ChatGPT.

Extracting Text From a Scanned or Digital PDF File Using OpenAI and PyMuPDF With Python

Extracting the text from a PDF document is surprisingly difficult. If you haven’t worked with PDF files before, you’ll be surprised to learn that a PDF document does not contain any text at all. Additionally, there are two main types … Continue reading →

Posted in OpenAI | Leave a comment

A Simple Example of RAG (Retrieval-Augmented Generation) Using the OpenAI Responses API

RAG (retrieval-augmented generation) is a fundamental part of AI. RAG allows large language models, such as GPT, to supplement their knowledge with custom information. There are dozens of explanations of RAG available on the Internet, but they tend to be … Continue reading →

Posted in OpenAI | Leave a comment

Programmatically Analyzing a Text File Using the OpenAI API with JavaScript

A few days ago, I put together a short demo of programmatically analyzing a text file using the ChatGPT API with Python. I figured I’d refactor that Python program to JavaScript. Conceptually, refactoring from Python to JavaScript is simple, but … Continue reading →

Posted in OpenAI | Leave a comment

“Pros and Cons of Running a Large Language Model Locally” on the Pure AI Web Site

I contributed technical content and some comments to an article titled “Pros and Cons of Running a Large Language Model Locally” on the September 2025 edition of the Pure AI web site. See https://pureai.com/articles/2025/09/02/pros-and-cons-of-running-a-large-language-model-locally.aspx. Hundreds of companies (at least) are … Continue reading →

Posted in OpenAI | Leave a comment

Absolute Simplest Possible OpenAI API (ChatGPT) Example Using JavaScript on Windows

One of my colleagues asked me to explain how to programmatically call the OpenAI API (ChatGPT). I figured I’d search the Internet for the simplest possible example and point him to it, but literally every example I found wasn’t very … Continue reading →

Posted in JavaScript, OpenAI | Leave a comment

Performing a Web Search Using the OpenAI Responses API

One of the problems when using a large language model like GPT-4 from OpenAI, or Llama from Meta, is that LLMs are trained using a huge, but fixed, set of data. This means an LLM doesn’t know about things that … Continue reading →

Posted in OpenAI | Leave a comment

Programmatically Analyzing a PDF File Using the OpenAI API with JavaScript

A few days ago, I put together a demo of using the OpenAI (ChatGPT) API to programmatically analyze a PDF file. I used the Python language for that demo. But in some development scenarios, especially those that involve Web application, … Continue reading →

Posted in OpenAI | Leave a comment

Running a Large Language Model (GPT-OSS) Locally Using the Ollama Application

In early August 2025, OpenAI released their first open source (aka open weights) large language model, GPT-OSS. I figured I’d try to use GPT-OSS locally on one of my server machines. I have experimented with two different systems for running … Continue reading →

Posted in OpenAI | 2 Comments

Programmatically Analyzing a Text File Using the OpenAI API with Python

The ChatGPT application, based on a GPT-x large language model, is dramatically changing the way million of people do things. I had recently put together a short demo of programmatically analyzing a PDF file using the ChatGPT API with Python. … Continue reading →

Posted in OpenAI | Leave a comment

Programmatically Analyzing a PDF File Using the OpenAI API with Python

Unless you’ve been living under a large rock for the past couple of years, you know that the ChatGPT application, based on a GPT-x large language model, is dramatically changing the way million of people do things. One morning before … Continue reading →

Posted in OpenAI | 1 Comment