Auto-generate MongoDB Queries with OpenAI Assistants API

Auto-generate MongoDB Queries with OpenAI Assistants API

This is a continuation to the previous article on generating MongoDB Queries using OpenAI Chat Completion API . In this article, we will look at how to construct MongoDB Queries using OpenAI Assistants API given an input and an expected output. In this article, we will cover the following: Create an assistant using Assistants API and use it to generate MongoDB queries. Use custom function tool to format the output in JSON format. ...

January 31, 2024 · 13 min
Mastering MongoDB Queries with OpenAI: A Guide to Generating Queries for Desired Outputs

Mastering MongoDB Queries with OpenAI: A Guide to Generating Queries for Desired Outputs

I’m a big fan of mongoplayground.net as it is one of the most useful and widely used tools for swiftly testing various MongoDB queries while working on a problem. Although this tool is really handy and convenient to use, I have always wondered if there is a way to automatically generate the query for a given input and an expected output, rather than having to manually construct these queries. Thanks to Generative AI tools, this is now possible! ...

January 8, 2024 · 12 min
Run Jupyter Notebook in a virtual environment

Run Jupyter Notebook in a virtual environment

It is always best practice to use virtual environments while working on Python projects. This article lists the steps to run Jupyter Notebook within a virtual environment. In a nutshell, these are the steps required to run Jupyter Notebook in a virtual environment. Install Jupyter Create a virtual environment and activate it Install ipykernel package Install a new Jupyter Kernel Run Jupyter Notebook Change the Kernel in Jupyter Notebook to the one we installed in the virtual environment in Step 4 ...

October 11, 2023 · 3 min