<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aggregation-Pipeline on Selvam Subbiah</title><link>https://selvamsubbiah.com/tags/aggregation-pipeline/</link><description>Recent content in Aggregation-Pipeline on Selvam Subbiah</description><generator>Hugo -- 0.154.3</generator><language>en-us</language><lastBuildDate>Wed, 31 Jan 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://selvamsubbiah.com/tags/aggregation-pipeline/index.xml" rel="self" type="application/rss+xml"/><item><title>Auto-generate MongoDB Queries with OpenAI Assistants API</title><link>https://selvamsubbiah.com/auto-generate-mongodb-queries-with-openai-assistants-api/</link><pubDate>Wed, 31 Jan 2024 00:00:00 +0000</pubDate><guid>https://selvamsubbiah.com/auto-generate-mongodb-queries-with-openai-assistants-api/</guid><description>&lt;p&gt;This is a continuation to the &lt;a href="https://selvamsubbiah.com/mastering-mongodb-queries-with-openai/"&gt;previous article&lt;/a&gt;
on generating MongoDB Queries using &lt;a href="https://platform.openai.com/docs/guides/text-generation/chat-completions-api" target="_blank" rel="noopener noreferrer"&gt;OpenAI Chat Completion API&lt;/a&gt;
. In this article, we will look at how to construct MongoDB Queries using &lt;a href="https://platform.openai.com/docs/assistants/overview" target="_blank" rel="noopener noreferrer"&gt;OpenAI Assistants API&lt;/a&gt;
given an input and an expected output.&lt;/p&gt;
&lt;p&gt;In this article, we will cover the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Create an assistant using Assistants API and use it to generate MongoDB queries.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use custom function tool to format the output in JSON format.&lt;/p&gt;</description></item><item><title>Mastering MongoDB Queries with OpenAI: A Guide to Generating Queries for Desired Outputs</title><link>https://selvamsubbiah.com/mastering-mongodb-queries-with-openai/</link><pubDate>Mon, 08 Jan 2024 00:00:00 +0000</pubDate><guid>https://selvamsubbiah.com/mastering-mongodb-queries-with-openai/</guid><description>&lt;p&gt;I’m a big fan of &lt;a href="https://mongoplayground.net/" target="_blank" rel="noopener noreferrer"&gt;mongoplayground.net&lt;/a&gt;
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.&lt;/p&gt;
&lt;p&gt;Thanks to Generative AI tools, this is now possible!&lt;/p&gt;</description></item></channel></rss>