Creating a Better StackOverflow with ChatGPT
Tags: chatgpt, openai, machinelearning
Published: 2023-07-10 10:29:12

By now you've probably heard the news about [OpenAI turning off internet search on ChatGPT](https://help.openai.com/en/articles/8077698-how-do-i-use-chatgpt-browse-with-bing-to-search-the-web). At AINIRO we believe that software evolution by itself is a higher purpose, so we created [AINIRO Oracle, the Search Engine that uses ChatGPT to answer questions](https://oracle.ainiro.io).

To understand our motivation, imagine the following use case where you want to find the answer to the following question:

> Who was the 35th President of the US' wife?

The process of finding an answer to the above question with a traditional search engine tends to be ridiculously complex with a lot of manual unnecessary work.

1. Find out who was the 35th President. This typically including finding all Presidents, for then to wade through this list until you're at number 35.
2. Find the WikiPedia article for the 35th President, for then to scan it for his wife.

The above question is a simple one, but more complex questions can easily take up 10 to 20 minutes of your time. With our [Oracle engine](https://oracle.ainiro.io/) the process takes 30 seconds, and is 100% automatic. Here's the answer to the question: [Who Was The 35th President Of The US' Wife](https://oracle.ainiro.io/articles/who-was-the-35th-president-of-the-us--wife-hvrrbqufgo). Below is another example article it automatically produced given the specified question.

[![Who was Ronald Reagan](https://ainiro.io/assets/images/oracle-wikipedia.png)](https://oracle.ainiro.io/articles/who-was-ronald-reagen-eujn8br2hy)

We've only played with it for a couple of days, obviously, since we released it yesterday. But in general, I'd say this _"feels"_ one million times better than WikiPedia, StackOverflow, and Google. No need to scroll through endless data of irrelevant content to find the answer to your question, and no need to click 5 links in Google before a relevant article pops up. If you're a software developer you can probably relate to the following after having played with it for a while ...

> It's the AI equivalent of StackOverflow

## How the Oracle Machine works?

First it takes your query and sends it to [DuckDuckGo](https://duckduckgo.com/). Then it scrapes the top 5 results in parallel, and creates a context. This context is sent to [ChatGPT](https://chat.openai.com) with instructions to answer the original question. Due to a [kick ass web scraper](https://ainiro.io/blog/have-chatgpt-scrape-your-website), combined with some [intelligent prompt engineering](https://ainiro.io/blog/how-to-jailbreak-chatgpt), we're able to make sure it always puts the answer to your question at the _top of the generated article_, while adding additional relevant content further down.

The result becomes a search engine, or an Oracle answering machine, that _"cuts through the crap"_, and answers your questions with the most significant parts of its answer at the top - Significantly simplifying the task of having your questions answered.

* [Try our Oracle machine](https://oracle.ainiro.io/)

One crucial difference between our Oracle engine and ChatGPT, is that our Oracle engine arguably has access to _"a bajillion times as much data"_, in addition to of course _real time data_. The last point is kind of important if you're searching for information related to contemporary information such as for instance _"Who Won US Open in 2023"_. If you ask ChatGPT who won US Open it will have no idea. If you ask our Oracle engine who won US Open in 2023, it will provide a perfect answer for you, often adding images that are relevant to your answer.

* [Who won US Open in 2023](https://oracle.ainiro.io/articles/who-won-us-open-in-2023-gw9ft76ble)

## The Better StackOverflow

Claiming to have invented a better StackOverflow in 2 days is a pretty strong statement. However, I will prove it by doing a site search on Google for 3 keywords towards StackOverflow, for then to reproduce the same queries towards our Oracle Machine. All my searches at StackOverflow are done with a _"site search"_ and I chose the first article Google could find.

### StackOverflow

* [StackOverflow - What is OOP?](https://stackoverflow.com/questions/24270/whats-the-point-of-oop)
* [StackOverflow - What is dependency injection?](https://stackoverflow.com/questions/130794/what-is-dependency-injection)
* [StackOverflow - What are the original 23 design patterns from GoF?](https://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns-in-javas-core-libraries)

### Oracle Machine

* [Oracle - What is OOP?](https://oracle.ainiro.io/articles/what-is-oop-in-software-development-rhosst1yo3)
* [Oracle - What is dependency injection?](https://oracle.ainiro.io/articles/what-is-dependency-injection-dwb1ecxxut)
* [Oracle - What Are The Original 23 Design Patterns From GoF?](https://oracle.ainiro.io/articles/what-are-the-original-23-design-patterns-from-gof-osrjqn7cit)

Besides from that it didn't have a large enough context to list all 23 design patterns, I'd say at least two of the above three questions are far better answered by our Oracle Machine.

## Social Media Argument Machine

In addition to the above obvious use cases for finding answers to questions extremely fast and extremely accurate, it also seconds as _"a social media answer machine"_, implying if somebody asks you about anything in some social media context, you can write it out as a question to our Oracle Machine, and provide a highly accurate answer to the question in some few seconds.

The Oracle Machine will do its best to try to preserve its sources, and also allow you to reproduce its DuckDuckGo query. In addition it creates a permanent high quality article you can share and send to others on email, use as Facebook comments, Twitter replies, etc. The Oracle Machine will also cache its answers, such that if another user asks a questions that has more than 95% similarity with a question it has previously answered, it will return this answer instead of generating a new answer. However, this is only true for 5 days, since otherwise it would become stale over time, incapable of answering questions about recent events.

All of these traits makes it (I hope) a highly valuable addition to your internet tooling, delivering a somewhat unique value proposition, simplifying your life in general.

## Wrapping up

For the record, we're an AI expert software development company, focusing exclusively on AI and Machine Learning. We're helping small and large companies to embrace AI and automation. If you're interested in talking to us about our [ChatGPT chatbot](https://ainiro.io/chatgpt-website-chatbot), our [AI Website Search](https://ainiro.io/ai-website-search) product, or whatever needs you've got related to AI - We would [love to hear from you](https://ainiro.io/contact-us#demo).

The proof is in the pudding. Below is a question I phrased to our Oracle system. I think you can appreciate how it runs in circles around StackOverflow :)

* [Can you show me the Python code required to create an HTTP endpoint that stores customer name and email into crm database?](https://oracle.ainiro.io/articles/can-you-show-me-the-python-code-required-to-create-an-http-endpoint-that-stores-customer-name-and-email-into-an-sqlite-database-called-crm-fewy7kgako)