<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[EvaDB Blog - Medium]]></title>
        <description><![CDATA[Welcome to EvaDB Blog — your ultimate source for all things EvaDB! Stay up-to-date with release updates, guides, community showcases, and more. - Medium]]></description>
        <link>https://medium.com/evadb-blog?source=rss----b53a88a92710---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>EvaDB Blog - Medium</title>
            <link>https://medium.com/evadb-blog?source=rss----b53a88a92710---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:02:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/evadb-blog" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stargazers Reloaded: LLM-Powered Analyses of your GitHub Community]]></title>
            <link>https://medium.com/evadb-blog/stargazers-reloaded-llm-powered-analyses-of-your-github-community-aef9288eb8a5?source=rss----b53a88a92710---4</link>
            <guid isPermaLink="false">https://medium.com/p/aef9288eb8a5</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Gaurav Tarlok Kakkar]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 14:42:40 GMT</pubDate>
            <atom:updated>2023-09-30T14:58:11.963Z</atom:updated>
            <content:encoded><![CDATA[<p>GitHub stars symbolize a repository’s popularity in the developer community. What if we could delve into the minds of these star-givers, extracting insights from their profiles to understand their interests? That’s where the <a href="https://github.com/pchunduri6/stargazers-reloaded/">Stargazers Reloaded app</a> comes in.</p><p>In this post, we show how <a href="https://github.com/georgia-tech-db/evadb">EvaDB</a> makes it easy to get insights about your GitHub community using large language models (LLMs). We analyze three popular GitHub communities: <a href="https://github.com/nomic-ai/gpt4all">GPT4All</a>, <a href="https://github.com/langchain-ai/langchain">Langchain</a>, and <a href="https://github.com/cockroachdb/cockroach">CockroachDB</a>. We have <a href="https://github.com/pchunduri6/stargazers-reloaded">open-sourced the code</a> so that you can extract insights about your GitHub community.</p><p>This app is inspired by the <a href="https://www.cockroachlabs.com/blog/what-can-we-learn-from-our-github-stars/">“original” Stargazers app</a> written by Spencer Kimball from CockroachDB. While the original app pioneered the art of analyzing the community exclusively using the GitHub API, our LLM-powered Stargazers app powered by <a href="https://github.com/georgia-tech-db/evadb">EvaDB</a> additionally extracts insights from unstructured data obtained from the stargazers’ webpages.</p><h3><strong>What does the App do?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmocovJ2oKumtFH9DVciLw.png" /><figcaption><strong>Workflow of LLM-Powered Analyses of GitHub Community</strong></figcaption></figure><ul><li>The app first scrapes the GitHub profiles of every user who’s starred a repository, capturing key details like their usernames, locations, and topics of interest.</li><li>It then takes screenshots of each user’s GitHub webpage and extracts text using an OCR model.</li><li>Lastly, it extracts information using LLM functions embedded in the extracted text.</li></ul><blockquote>In this app, we could directly use GPT-4 to generate the “golden” table; however, it is super expensive — costing $60 to process the information of 1000 users. To maintain accuracy while reducing costs significantly, we employ an <strong>LLM model cascade</strong>, running GPT-3.5 before GPT-4, leading to a 11x cost reduction ($5.5).</blockquote><h3>Why Does This Matter?</h3><p>Now, why does all of this matter? Developers understand the value of community and collaboration. This <a href="https://github.com/pchunduri6/stargazers-reloaded">open-sourced app</a> helps extract insights about your community to facilitate further collaboration. Here, we show some insights we obtained by analyzing 1000 stargazers from three communities: <a href="https://github.com/nomic-ai/gpt4all">GPT4All</a>, <a href="https://github.com/langchain-ai/langchain">Langchain</a>, and <a href="https://github.com/cockroachdb/cockroach">CockroachDB</a>.</p><ol><li><strong>Exploring Common Interests</strong>: By extracting the topics of interest from the profiles of stargazers, you can pinpoint developers with similar passions. Our analysis of the GPT4All community shows that the majority of the stargazers are proficient in Python and JavaScript, and 43% of them are interested in Web Development. Web developers ❤️ open-source LLMs 🤩 In the Langchain community, 37% of the stargazers are interested in Machine Learning.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1cwT2VhOWU9Q8a5Pe1fM3g.png" /><figcaption><strong>Web developers ❤️ open-source LLMs 🤩</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKU_0hEheV_wPbpJst5DGg.png" /><figcaption><strong>Langchain is most popular 📈 in the Machine Learning 🤖🧠 interest groups</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7al5IbKVTJirIfHZsqk5DA.png" /><figcaption><strong>Web Developers and Database Enthusiasts ❤️ CockroachDB 🤩</strong></figcaption></figure><p><strong>2. Identify your core audience</strong>: Understanding your stargazers’ demographics helps identify engaged user segments based on profession and location. These insights allow you to tailor your project roadmap, documentation, and outreach to resonate with your target users. For example, if data shows many stargazers are students, you may want to highlight educational use cases. If many users come from China, translating documentation into Chinese could help grow the community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maN1EIOzpO-twLQ2bvoKCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QkOpdvOEF47Inf9mqvD5hw.png" /><figcaption><strong>Stargazers distributed by their country of origin.</strong></figcaption></figure><p><strong>3. Exploring New Repositories</strong>: Examining the repositories your stargazers are enthusiastic about helps pinpoint emerging topics and promising ideas that resonate with your developer community. By tracking your stargazers’ engagement on GitHub, you can stay informed about the topics that matter most to your community. Here, we analyze the top 10 repositories co-starred by GPT4All and CockroachDB users. Agent frameworks top the list for GPT4all 🤩.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XsPn0q_uJA_sNIi2" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vy2XlarKRrJCKcvUIMGwIg.png" /></figure><h3>Lessons Learned</h3><ol><li><strong>GPT-4 is Super Expensive: </strong>OpenAI’s gpt-3.5 does not yield satisfactory results when extracting key attributes from the text obtained via OCR. It often results in numerous ‘n/a’ values. In contrast, gpt-4excels in extracting occupation, programming languages, and topics of interest from the messy OCR output. In theory, we could directly use gpt-4 to generate the structured output from the raw text blobs.</li></ol><blockquote>However, gpt-4’s API calls are 40 times more expensive than gpt-3.5 on average.</blockquote><p>2. <strong>Model Cascades to the Rescue:</strong> To reduce the cost, the EvaDB query first calls gpt-3.5 to process the extracted text into broader and more general topics. Then, we feed this semi-organized output from gpt-3.5 to gpt-4 to refine the outcomes.</p><p>3. <strong>Batching Optimization:</strong> Another advantage of the model cascade is that the input token lengths for the gpt-4 request are much smaller than the entire scraped text blob. For example, the semi-organized topics only comprise 20 tokens per user on average, compared to 300 tokens for the entire text blob. This allows EvaDB to process multiple batches of user data using a single prompt request, greatly reducing the number of prompt tokens used.</p><blockquote>Cascading and Batching optimizations in EvaDB lead to 11 times lower dollar cost compared to running GPT-4 on the entire dataset.</blockquote><p>4. <strong>Vision + Language Model</strong>: <a href="https://github.com/JaidedAI/EasyOCR">EasyOCR</a> outperforms <a href="https://github.com/madmaze/pytesseract">Pytesseract</a> in extracting meaningful content from user profile snapshots. It is super important to use a good vision model before analyzing the extracted text using a language model.</p><p>5. <strong>GitHub API</strong>: The API is notably slow due to GitHub’s rate limits and offers limited user information. OCR followed by LLM is a faster and more flexible alternative to extracting insights from GitHub profiles. For our analysis, the GitHub API calls were free of charge. Thanks to the cascades and batching optimizations, we could keep the cost of our analysis low.</p><h3>Let’s Dive Deep into the App!</h3><p>Here are the key steps in the app:</p><ol><li><strong>Scraping using Github API</strong>: The app begins by scraping the GitHub profiles of users who’ve starred a particular repository. This initial step is crucial as it forms the foundation for the subsequent data extraction.</li></ol><pre>--- List of Stargazers<br>CREATE TABLE gpt4all_StargazerList AS<br>  SELECT GithubStargazers(&quot;https://github.com/nomic-ai/gpt4all&quot;, &quot;GITHUB_KEY&quot;);<br><br>--- Details of Stargazers extracted using the Github API<br>CREATE TABLE gpt4all_StargazerDetails AS<br>  SELECT GithubUserdetails(github_username, &quot;GITHUB_KEY&quot;)<br>  FROM gpt4all_StargazerList;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99e8089fa064075f27c6d051a3dfc33a/href">https://medium.com/media/99e8089fa064075f27c6d051a3dfc33a/href</a></iframe><p><strong>2. OCR Magic</strong>: Once the profiles are collected, the app takes screenshots of each user’s GitHub profile page. The screenshots are processed through an OCR model. This model extracts the textual content from the images, preparing it for analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*rvsoymvGMAnGXTk9JmmowQ.png" /><figcaption><strong>Using OCR to extract text from user profiles</strong></figcaption></figure><pre>--- Text in webpages of Stargazers extracted using WebPageTextExtractor<br>CREATE TABLE gpt4all_StargazerScrapedDetails AS<br>  SELECT github_username, WebPageTextExtractor(github_username)<br>  FROM gpt4all_StargazerList;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ffa4f43ae8bbbe8aaf868a921e62cb9/href">https://medium.com/media/0ffa4f43ae8bbbe8aaf868a921e62cb9/href</a></iframe><p><strong>3. LLM Unleashed</strong>: Here’s where the real magic happens. The extracted text is fed into an LLM, for example, GPT-3.5 from OpenAI. This AI model extracts key attributes that shed light on the stargazers’ profiles, such as the user’s occupation, social media presence, and topics of interest.</p><pre>--- Prompt to GPT-35<br>You are given a block of disorganized text extracted from the GitHub user profile of a user using an automated web scraper. The goal is to get structured results from this data.<br>Extract the following fields from the text: name, country, city, email, occupation, programming_languages, topics_of_interest, social_media.<br>If some field is not found, just output fieldname: N/A. Always return all the 8 field names. DO NOT add any additional text to your output.<br>The topic_of_interest field must list a broad range of technical topics that are mentioned in any portion of the text.  This field is the most important, so add as much information as you can. Do not add non-technical interests.<br>The programming_languages field can contain one or more programming languages out of only the following 4 programming languages - Python, C++, JavaScript, Java. Do not include any other language outside these 4 languages in the output. If the user is not interested in any of these 4 programming languages, output N/A.<br>If the country is not available, use the city field to fill the country. For example, if the city is New York, fill the country as United States.<br>If there are social media links, including personal websites, add them to the social media section. Do NOT add social media links that are not present.<br>Here is an example (use it only for the output format, not for the content):<br><br>name: Pramod Chundhuri<br>country: United States<br>city: Atlanta<br>email: pramodc@gatech.edu<br>occupation: PhD student at Georgia Tech<br>programming_languages: Python, C++<br>topics_of_interest: PyTorch, Carla, Deep Reinforcement Learning, Query Optimization<br>social_media: https://pchunduri6.github.io</pre><pre>--- Using LLMs to extract insights from text<br>CREATE TABLE gpt4all_StargazerInsights AS<br>  SELECT StringToDataframe(GPT35({LLM_prompt}, extracted_text))<br>  FROM gpt4all_StargazerScrapedDetails;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ab4d6aac7ff1fa54425f1a28d49c3b0/href">https://medium.com/media/6ab4d6aac7ff1fa54425f1a28d49c3b0/href</a></iframe><p><strong>4. Going Deeper with LLM:</strong> To gain deeper insights from user profiles, we can feed the outputs from the initial analysis into a more powerful large language model like GPT-4. This advanced AI model can categorize users’ topics of interest into more granular categories like Machine Learning, Databases, and Web Development.</p><pre>--- Prompt to GPT-4<br>You are given 10 rows of input, each row is separated by two new line characters.<br>Categorize the topics listed in each row into one or more of the following 3 technical areas - Machine Learning, Databases, and Web development. If the topics listed are not related to any of these 3 areas, output a single N/A. Do not miss any input row. Do not add any additional text or numbers to your output.<br>The output rows must be separated by two new line characters. Each input row must generate exactly one output row. For example, the input row [Recommendation systems, Deep neural networks, Postgres] must generate only the output row [Machine Learning, Databases].<br>The input row [enterpreneurship, startups, venture capital] must generate the output row N/A.</pre><pre>--- Deeper insights using an expensive LLM prompt<br>CREATE TABLE IF NOT EXISTS<br>gpt4all_StargazerInsightsGPT4 AS<br>SELECT name,<br> country,<br> city,<br> email,<br> occupation,<br> programming_languages,<br> social_media,<br> GPT4(prompt,topics_of_interest)<br>FROM gpt4all_StargazerInsights;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/570c2d82435559f36965ad132281189c/href">https://medium.com/media/570c2d82435559f36965ad132281189c/href</a></iframe><h3><strong>Conclusion</strong></h3><p><a href="https://github.com/georgia-tech-db/evadb">EvaDB’s</a> vision is to make it easy to build scalable AI apps. With the power of LLM and AI-driven data extraction, we’re entering an era of unprecedented insights into the developer community. This app demonstrates technology’s ability to bridge gaps, foster connections, and empower developers to explore new horizons. As the app continues to evolve, anticipate additional features and capabilities tailored to the developer community’s requirements.</p><blockquote><a href="https://github.com/pchunduri6/stargazers-reloaded">Analyze your favorite GitHub community using the open-sourced Stargazers Reloaded!</a></blockquote><p>If you’re excited about our vision of building a database system for AI apps, show some ❤️ by giving a ⭐ for <a href="https://github.com/georgia-tech-db/evadb">EvaDB on Github</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aef9288eb8a5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/evadb-blog/stargazers-reloaded-llm-powered-analyses-of-your-github-community-aef9288eb8a5">Stargazers Reloaded: LLM-Powered Analyses of your GitHub Community</a> was originally published in <a href="https://medium.com/evadb-blog">EvaDB Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Augmenting PostgreSQL with AI using EvaDB]]></title>
            <link>https://medium.com/evadb-blog/augmenting-postgresql-with-ai-using-evadb-b3db294adf35?source=rss----b53a88a92710---4</link>
            <guid isPermaLink="false">https://medium.com/p/b3db294adf35</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Gaurav Tarlok Kakkar]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 02:10:31 GMT</pubDate>
            <atom:updated>2023-09-07T02:10:31.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="PostgreSQL + AI (Credits: Crunchydata)" src="https://cdn-images-1.medium.com/max/768/0*9lbyk-rGJtc2JDRI" /><figcaption>Photo by Crunchy Data</figcaption></figure><p>In the fast-evolving landscape of AI-driven data analytics, the gap between database systems and AI platforms slows down software developers. Switching back and forth between the database system and the AI platform not only introduces delays but also disrupts the rhythm of software development. What if there was a way to seamlessly integrate AI right into your PostgreSQL database system? That’s where <a href="https://github.com/georgia-tech-db/evadb">EvaDB</a> comes in.</p><p>In this article, we illustrate how EvaDB seamlessly integrates AI into your PostgreSQL workflows for solving complex data manipulation tasks. In particular, we demonstrate how EvaDB enables AI-powered semantic join between tables that do <strong><em>not</em></strong> directly share a column that can be joined on.</p><h3>Challenge: “AI-Powered” Join</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8WEK2UCn34Uh2zsJWPfiOw.png" /></figure><p>Consider a scenario where you have two tables — one with details about <a href="https://www.kaggle.com/datasets/jeploretizo/san-francisco-airbnb-listings">AirBnB listings in San Francisco</a> and <a href="https://www.kaggle.com/datasets/san-francisco/sf-recreation-park-department-park-info-dataset">the other providing insights into the city’s parks</a>. Our objective is to identify Airbnb listings located in neighborhoods with a high concentration of nearby parks. These tables/datasets lack a common column for a straightforward join. The Airbnb dataset includes a ‘neighborhood’ column, while the parks dataset features a ‘zip code’ column.</p><h3>“AI-Powered” Join using EvaDB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8XdYr3qMrdFoZZcafER4NQ.png" /></figure><p>EvaDB steps in to address this challenge by facilitating the merging operation using language models. Below shows the key query to create a new reference table that can be joined with other tables easily.</p><pre>CREATE TABLE reference_table AS<br>SELECT parkname, parktype, <br>       ChatGPT(<br>       &quot;Return the San Francisco neighborhood name when provided with a zipcode. The possible neighborhoods are: {neighbourhoods_str}. The response should an item from the provided list. Do not add any more words.&quot;,<br>       zipcode) <br>FROM postgres_db.recreational_park_dataset;</pre><h3>Full Tutorial for using EvaDB</h3><p>Next, we will walk through the complete process of achieving the workflow in EvaDB, and you can give it a try on <a href="https://colab.research.google.com/github/georgia-tech-db/eva/blob/staging/tutorials/15-AI-powered-join.ipynb">Google Colab</a>.</p><h4>Connect to EvaDB</h4><p>Let’s first establish a connection between EvaDB and an existing PostgreSQL database with a single EvaDB query:</p><pre>--- Connect EvaDB to an existing PostgreSQL database<br>CREATE DATABASE postgres_db<br>WITH ENGINE = &quot;postgres&quot;,<br>PARAMETERS = {<br>  &quot;user&quot;: &quot;gaurav&quot;,<br>  &quot;password&quot;: &quot;password&quot;,<br>  &quot;database&quot;: &quot;airbnb&quot;<br>};</pre><p>With this connection in place, we can leverage the power of EvaDB inside the PostgreSQL environment.</p><h4>Loading the Datasets</h4><p>Our next step involves loading the dataset CSVs into our PostgreSQL database:</p><pre>--- Create the first table<br>USE postgres_db{<br>  CREATE TABLE airbnb_listing (<br>    id INT,<br>    name VARCHAR(100),<br>    summary VARCHAR(1000),<br>    neighbourhood VARCHAR(100)<br>  )<br>}<br><br>--- Create the second table<br>USE postgres_db {<br>  CREATE TABLE recreational_park_dataset (<br>    parkName VARCHAR(100),<br>    ParkType VARCHAR(100),<br>    Zipcode INT<br>  )<br>}<br><br>--- Load the first table<br>USE postgres_db {<br>  COPY airbnb_listing(id, name, summary, neighbourhood) <br>  FROM &#39;listings.csv&#39;<br>  DELIMITER &#39;,&#39; CSV HEADER<br>}<br><br>--- Load the second table<br>USE postgres_db {<br>  COPY recreational_park_dataset(parkName, ParkType, Zipcode) <br>  FROM &#39;recreational_park.csv&#39;<br>  DELIMITER &#39;,&#39; CSV HEADER<br>}</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a087753cbe538c098e6e1678f87f6b59/href">https://medium.com/media/a087753cbe538c098e6e1678f87f6b59/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16af514b3c206f17d962331a15dd7bcc/href">https://medium.com/media/16af514b3c206f17d962331a15dd7bcc/href</a></iframe><p>Our datasets are now loaded into two tables in the PostgreSQL database, setting us up for our AI-powered data analysis.</p><h4>Use AI-Powered Queries in EvaDB</h4><p>EvaDB bridges the semantic gap between the two tables using OpenAI’s LLM model. We create a new ‘reference’ table to map San Francisco neighborhoods to their corresponding zip codes. First, we retrieve all distinct neighborhoods from our Airbnb listings, and then we use LLM to associate a zip code with each neighborhood. We use the following prompt:</p><blockquote>“Return the San Francisco neighborhood name when provided with a zipcode. The possible neighborhoods are: {neighborhoods_str}. The response should be an item from the provided list. Do not add any additional words.”</blockquote><p>“neighborhoods_str” is the aggregated distinct neighborhoods in the airbnb_listings. This table is generated using the following EvaDB query that calls ChatGPT.</p><pre>--- Get a list of neighborhoods<br>SELECT DISTINCT(neighborhood) FROM airbnb_listing;<br><br>--- Create a reference table that maps neighborhoods to zipcodes using ChatGPT<br>CREATE TABLE reference_table AS<br>SELECT parkname, parktype, <br>       ChatGPT(<br>       &quot;Return the San Francisco neighborhood name when provided with a zipcode. The possible neighborhoods are: {neighbourhoods_str}. The response should an item from the provided list. Do not add any more words.&quot;,<br>       zipcode) <br>FROM postgres_db.recreational_park_dataset;</pre><h4>Deriving insights using EvaDB</h4><p>With our reference table prepared, it’s time for the crucial step. We will now combine the reference table with the Airbnb listings to gain valuable insights into properties located nearest to the city’s parks.</p><pre>--- Map Airbnb listings to park<br>SELECT airbnb_listing.neighbourhood<br>FROM postgres_db.airbnb_listing<br>  JOIN reference_table ON airbnb_listing.neighbourhood = reference_table.response;</pre><p>This aggregated table opens the door to various analytical possibilities. Below, we present a chart illustrating the number of parks in each neighborhood. This data can inform decisions when recommending potential Airbnb locations for individuals who enjoy staying in proximity to recreational parks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2LKwtERqC6KA5GH_1z42Vg.png" /></figure><h3>Conclusion</h3><p>In this article, we started exploring how EvaDB integrates AI capabilities into PostgreSQL and helps solve challenging data analytics tasks. We will highlight additional features of EvaDB thanks to AI-centric query optimization in the coming weeks. If you’re excited about our vision of bringing AI inside database systems, show some ❤️ by:</p><ul><li>🐙 giving a ⭐ on our <a href="https://github.com/georgia-tech-db/evadb">EvaDB repo on Github</a></li><li>📟 joining our <a href="https://evadb.ai/community">Slack Community</a></li><li>🐦 following us on <a href="https://twitter.com/evadb_ai">Twitter</a></li><li>📝 following us on <a href="https://medium.com/evadb-blog">Medium</a></li></ul><p>Thanks for your time! <a href="https://emojipedia.org/smiling-face-with-smiling-eyes">😊</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3db294adf35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/evadb-blog/augmenting-postgresql-with-ai-using-evadb-b3db294adf35">Augmenting PostgreSQL with AI using EvaDB</a> was originally published in <a href="https://medium.com/evadb-blog">EvaDB Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MindsDB vs. EvaDB]]></title>
            <link>https://medium.com/evadb-blog/mindsdb-vs-evadb-9005c7a9ffd1?source=rss----b53a88a92710---4</link>
            <guid isPermaLink="false">https://medium.com/p/9005c7a9ffd1</guid>
            <category><![CDATA[text-summarization]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mindsdb]]></category>
            <category><![CDATA[hugging-face]]></category>
            <dc:creator><![CDATA[Gaurav Tarlok Kakkar]]></dc:creator>
            <pubDate>Sun, 13 Aug 2023 19:09:45 GMT</pubDate>
            <atom:updated>2023-08-13T19:10:14.030Z</atom:updated>
            <content:encoded><![CDATA[<p>We have been asked several times about the difference between MindsDB and EvaDB, as both systems provide a SQL interface to do AI inside a database system. In this article, our goal is to provide a comprehensive yet fair comparison of these two systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eseQM8h6N7Kg4UUrhxJepw.png" /><figcaption><strong>Sprinting through CNN News: MindsDB and EvaDB in a Performance Showdown </strong>🏎️💨</figcaption></figure><p>This article marks the first installment in a series of articles comparing EvaDB against similar database systems. Our goal is to help application developers pick the appropriate database system for building an AI application based on their objectives and constraints. We will explore multiple facets of these systems, including performance, system architecture, usability, integration, and more. In this article, we exclusively focus on performance — time taken to run the application’s queries.</p><h3>Performance Showdown: A CNN News Summarization Case Study 🏎️💨</h3><p>For comparing the runtime performance of these systems, we use a representative AI application that summarizes roughly 12,000 CNN news articles using Hugging Face’s text summarization model (specifically “sshleifer/distilbart-cnn-12–6”). If you are interested in checking out the dataset, here is the link to the <a href="https://www.kaggle.com/datasets/gowrishankarp/newspaper-text-summarization-cnn-dailymail">Kaggle dataset</a>. We solely used the <em>test dataset split</em> in our analysis. Our primary objective was to gauge the processing speed and efficiency of these two systems.</p><h4>MindsDB:</h4><p>In the case of MindsDB, the summarization task was achieved through a series of queries. The first query involved creating a Hugging Face model while configuring its parameters.</p><pre>CREATE MODEL mindsdb.hf_bart_sum_20<br>PREDICT PRED<br>USING<br>engine = &#39;huggingface&#39;,<br>task = &#39;summarization&#39;,<br>model_name = &#39;sshleifer/distilbart-cnn-12-6&#39;,<br>input_column = &#39;article&#39;,<br>min_output_length = 5,<br>max_output_length = 100;</pre><p>The subsequent query runs the summarization model on all the CNN news articles, generating a new table that holds the summarized content. MindsDB took <strong><em>4 hours and 45 minutes</em></strong> to complete this task.</p><pre>CREATE OR REPLACE TABLE sqlite_datasource.cnn_news_summary(<br>  SELECT PRED<br>  FROM mindsdb.hf_bart_sum_20<br>  JOIN sqlite_datasource.cnn_news_articles<br>);</pre><h4>EvaDB</h4><p>In EvaDB, we register a <em>TextSummarizer</em> function (user-defined function or UDF) and supply the corresponding Hugging Face parameters.</p><pre>CREATE UDF IF NOT EXISTS TextSummarizer<br>  TYPE HuggingFace<br>  &#39;task&#39; &#39;summarization&#39;<br>  &#39;model&#39; &#39;sshleifer/distilbart-cnn-12-6&#39;<br>  &#39;min_length&#39; 5<br>  &#39;max_length&#39; 100;</pre><p>Once the UDF, <em>TextSummarizer</em>, is registered, it can be leveraged to summaries for all the CNN articles, which are then stored in a new table. EvaDB’s performance stood out, completing the task in <strong><em>1 hour and 9 minutes</em></strong> under standard deployment conditions. Tuning a few parameters in EvaDB’s configuration to further improve GPU utilization led to a further reduction to just <strong><em>42 minutes</em></strong><em>.</em></p><pre>CREATE TABLE IF NOT EXISTS cnn_news_summary AS<br>    SELECT TextSummarizer(article) FROM cnn_news_articles;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mZRnb6cAuzyQIwVzJ_bTFQ.png" /><figcaption><strong>Performance Comparison between MindsDB and EvaDB for Text Summarization Task</strong></figcaption></figure><blockquote><strong>EvaDB runs the news summarization AI application 7 times faster than MindsDB.</strong></blockquote><h3>Model Compatibility and Flexibility</h3><p>A critical aspect of setting up these experiments involves the flexibility and compatibility of both database systems with various Hugging Face models. The necessity to specify columns during model creation can lead to the creation of multiple models for different columns or tables. In contrast, EvaDB’s architecture <strong><em>decouples models/functions from execution</em></strong>. So, you can use the same TextSummarizer model in EvaDB across multiple queries on different tables (i.e., datasets). This eliminates the need to maintain separate models for each table.</p><p>Furthermore, EvaDB’s approach to model output accommodates a wider range of output structures from Hugging Face models. While MindsDB sometimes encountered errors with models, EvaDB’s approach of returning the model’s output without restructuring facilitated better compatibility. This approach empowers users to harness the model’s output to suit their specific needs.</p><h3>Conclusion</h3><p>In this inaugural comparison of MindsDB and EvaDB, we focused on performance and support for HuggingFace models. Both platforms have the ability to easily run AI models inside your database. Due to its maturity, MindsDB offers a richer set of integrations than EvaDB. However, EvaDB clearly succeeds in performance and better utilization of GPU.</p><h3>Have Questions?</h3><p>Join our <a href="https://join.slack.com/t/eva-db/shared_invite/zt-1i10zyddy-PlJ4iawLdurDv~aIAq90Dg">Slack community</a>! We are actively engaged and eager to discuss EvaDB and your use cases.</p><h3>Try it out!</h3><p>Our <a href="https://evadb.readthedocs.io/en/latest/">documentation</a> offers numerous use cases for your reference. If you don’t find your specific use case listed, please don’t hesitate to contact us. We’re here to assist!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9005c7a9ffd1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/evadb-blog/mindsdb-vs-evadb-9005c7a9ffd1">MindsDB vs. EvaDB</a> was originally published in <a href="https://medium.com/evadb-blog">EvaDB Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI-Generated Summary of MindsDB AI Developer Convention 2023]]></title>
            <link>https://medium.com/evadb-blog/ai-generated-summary-of-mindsdb-ai-developer-convention-2023-df6fb9153f44?source=rss----b53a88a92710---4</link>
            <guid isPermaLink="false">https://medium.com/p/df6fb9153f44</guid>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[mindsdb]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Gaurav Tarlok Kakkar]]></dc:creator>
            <pubDate>Sat, 24 Jun 2023 23:48:14 GMT</pubDate>
            <atom:updated>2023-06-24T23:48:14.000Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>MindsDB recently organized an excellent <a href="https://mindsdb.com/mindsdb-con-2023">convention</a> focused on AI developers. It contained several useful insights for AI app developers. We built an <a href="https://github.com/georgia-tech-db/eva/tree/master/apps/youtube_qa">AI app for generating a blog post</a> summarizing the <a href="https://www.youtube.com/watch?v=bC5jYHO-aNk">8-hour long Youtube video</a>. We would love to hear your ideas for improving the quality of the blog post.</blockquote><p>The recent conference held by MindsDB focused on providing practical advice for developers to implement cutting edge machine learning into their applications using the latest tools. The conference highlighted the work of the MindsDB community, partners, customers, and investors, and discussed the Langchain framework for building applications with language models and interacting with tabular data.</p><h3>Langchain Framework</h3><p>The Langchain framework is a powerful tool for developers to build applications with language models and interact with tabular data. It allows developers to easily integrate machine learning models into their applications, making it easier to create intelligent applications that can learn from data.</p><h3>Hugging Face</h3><p>The conference also featured a talk by Nate Raw from Hugging Face, who discussed the company’s mission to democratize good machine learning through open source, community, and an ethics-first mentality. He demonstrated how to build machine learning demos with Gradio, a tool that allows developers to quickly create and share machine learning demos.</p><h3>Interesting Applications of Machine Learning</h3><p>The panel discussed interesting and unexpected applications of machine learning, including a language model used as a dungeon master for Dungeons and Dragons games. This highlights the versatility of machine learning and its potential to be used in a wide range of applications.</p><h3>MindsDB Virtual Assistant</h3><p>MindsDB also announced their virtual assistant, which is designed to be highly capable and customizable, with the ability to handle a wide range of tasks and workflows. It can connect to their cloud ERP system, allowing businesses to manage their data and create sales invoices more easily. Tony also discussed the importance of data privacy and security in their product, and the steps they take to ensure that customer data is protected.</p><h3>Tools and Platforms for Implementing AI in Finance</h3><p>The video discusses various tools and platforms that can be used to implement AI in the financial industry, including MindsDB, Myzibi, and Lama Index. These tools can help simplify the process of implementing AI and improve the evaluation of smaller businesses. MongoDB Atlas is also highlighted as a platform to bring AI apps to production at scale, securely, and with enterprise readiness. The video also emphasizes the importance of being a domain expert in finance to fully understand the intricacies of the industry.</p><h3>Nixla</h3><p>The video discusses Nixla, an open source time series research and deployment company that is working on generative AI for time series data. They have created a program called NXLAM to address the issue of small data sets in time series research by creating a large public data set called IMNET, exploring transferability conditions and generative capabilities of neural network methods, and developing applications for forecasting and anomaly detection.</p><h3>AI Startups and Ethics</h3><p>The video also includes discussions on AI startups, investing in AI, and the ethical implications of AI. It highlights the importance of considering the ethical implications of AI and ensuring that AI is used for the benefit of society. <br>​<br>Overall, the conference provided valuable insights into the latest tools and techniques for implementing cutting edge machine learning in applications. It highlighted the importance of data privacy and security, as well as the ethical implications of AI. Developers can use the Langchain framework and other tools and platforms to create intelligent applications that can learn from data and improve over time. <br>​<br>[Link to MindsDB Conference](<a href="https://mindsdb.com/conference/">https://mindsdb.com/conference/</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df6fb9153f44" width="1" height="1" alt=""><hr><p><a href="https://medium.com/evadb-blog/ai-generated-summary-of-mindsdb-ai-developer-convention-2023-df6fb9153f44">AI-Generated Summary of MindsDB AI Developer Convention 2023</a> was originally published in <a href="https://medium.com/evadb-blog">EvaDB Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>