Books (By Me!)
Events (I Speak At!)
-
Recent Posts
Archives
Categories
Category Archives: OpenAI
Four Ways to Generate JSON Output When Using the OpenAI responses.create() Method
There are (at least) four ways to generate JSON formatted output when using the OpenAI responses.create() method: 1.) supply detailed instructions and examples, 2.) craft a JSON schema by hand, 3.) craft a JSON schema using inference from an example, … Continue reading
Posted in OpenAI
Leave a comment
The Difference Between the OpenAI responses.create() Method and responses.parse() Method
Bottom line: At the time I’m writing this blog post, I could find no official documentation for the responses.parse() method. As best I can determine, responses.create() is a general purpose method that can do many things (including produce output in … Continue reading
Posted in OpenAI
Leave a comment
A Conversation Example Using the OpenAI Responses API
I’m slowly but surely wading through examples of the OpenAI Responses API. Some people can learn just by reading, but I can only learn by coding. Briefly, to have a conversation, you need to remember the responses of the previous … Continue reading
Posted in OpenAI
Leave a comment
Augmenting OpenAI API Basic Queries with a Web Search Fallback
If you ask the OpenAI system a question using the programmatic API, it will answer to the best of its ability using the information that the underlying LLM (GPT-4o, etc.) was trained on. But if you ask about recent events, … Continue reading
Posted in OpenAI
Leave a comment
Example of OpenAI Responses API Structured Output Using JSON Schema
I was working on a problem using the OpenAI system and I needed the output to be in JSON format rather than the usual free-form text. Producing JSON output can be accomplished by feeding a JSON schema to the responses.create() … Continue reading
Posted in OpenAI
Leave a comment
Combining OpenAI API Responses web_search and file_search Tools
The OpenAI Responses API can search supplied files in a vector store (this is called retrieval-augmented generation, RAG), or search the Web. I tried to combine the two tools into a single query but it just didn’t work: . . … Continue reading
Posted in OpenAI
Leave a comment
Working With OpenAI Vector Stores
I was investigating retrieval-augmented generation (RAG) systems using the OpenAI Responses API. In a nutshell, a RAG system allows a query to use information from specific proprietary documents, such as a company handbook. Until recently, to implement RAG, you’d have … Continue reading
Posted in OpenAI
Leave a comment
Creating an OpenAI Vector Store for RAG Systems
A plain vanilla OpenAI natural language AI application (ChatPGT) can answer general questions about topics such as the ones you can find on Wikipedia, because the underlying LLM model was trained using many sources, including Wikipedia. But in order to … Continue reading
Posted in OpenAI
Leave a comment
“RAG (Retrieval-Augmented Generation) for Not-Quite-Dummies” on the Pure AI Web Site
I contributed technical content and comments to an article titled “RAG (Retrieval-Augmented Generation) for Not-Quite-Dummies” on the Pure AI web site. See https://pureai.com/articles/2025/10/01/rag-retrieval-augmented-generation-for-not-quite-dummies.aspx. The first part of the article explains how RAG works using a diagram. Proprietary documents are uploaded … Continue reading
Posted in Machine Learning, OpenAI
Leave a comment
Tokenizing Text So That Spaces, Punctuation, and Contractions Are Retained
I was working on a natural language processing (NLP) project. For reasons that would take to long to explain, I needed to tokenize text so that spaces, punctuation, and contractions are retained. For example, suppose some source text is: Howdy. … Continue reading
Posted in OpenAI
Leave a comment
.NET Test Automation Recipes
Software Testing
SciPy Programming Succinctly
Keras Succinctly
R Programming
2026 Visual Studio Live
2025 Summer MLADS Conference
2026 DevIntersection Conference
2025 Machine Learning Week
2025 Ai4 Conference
2026 G2E Conference
2026 iSC West Conference
You must be logged in to post a comment.