Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • About
Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • About
  • Artificial Intelligence
  • Software Engineering

Fixing ChatGPT’s Limitations For Coding

  • March 7, 2023
  • relay

Recently I found myself using ChatGPT a lot, I was at a point where I even left Google and Stackoverflow (my two best coding friends). But ChatGPT has two problems:

  1. If I don’t provide my source code as context to ChatGPT, it behaves like a large language model and provides some random answers from its brain, which mostly aren’t useful and meaningful. So I’ve to make it pretend like “ChatGPT, you are now a software engineer” by writing some prompts curated by awesome people at awesome-chatgpt-prompts.
  2. Even if I provide my source code to ChatGPT, then write my query or code error which I want ChatGPT to solve, most of the time my source code is too big it just exceeds the ChatGPT input limit.

Solution 💡

After thinking about this problem I came up with a plan to build a VS Code extension which can directly extract source code from IDE, so I don’t have to copy paste the code every time I’ve to ask ChatGPT for the answer of errors in my code, and I use vector database as an index to store embeddings for my source code, which basically do an approximately nearest neighbors similarity search to just pick those snippets from my code which are the causing the error, in this way I’m able to input only a small chunk of source code into the GPT model which performs well and provide accurate solution for the errors without exceeding the OpenAI GPT input limit.

I made the VS Code extension publicly available for free on GitHub. It’s currently in Alpha stage, and I would appreciate your Pull Requests/Contributions to this open source tool. Before diving into the extension, let’s understand why we need it.

Read More  Securing AI Systems With Adversarial Robustness

What are the existing solutions? 🤔

Today’s Gen AI dev tools, such as Copilot, are missing the mark. Yes, they help with code completion, but every developer knows that programming is really 20% coding and 80% debugging. I asked myself, how can LLMs help with the crucial, time-sensitive, frustrating, and just incredibly intense task of debugging?

Introducing 👋

Quickfix AI, an extension for VS Code that provides you instant solutions for errors in your code within the code editor using AI.

With quickfix.ai, you can:

  • 🧠 Get instant solution for error in real-time
  • 💡 Increase your coding understanding and efficiency
  • ⏳ Save time and minimize frustration with clear code solutions
  • 🔍 Improve your coding skills with in-depth code analysis

Demo 📽

Installation 📦

Quickfix AI is in its Alpha phase, if you would like to use and explore it at this stage, you can follow the steps below to set it up. However, if you prefer to wait for a more reliable version with an easy installation process through VS Code Marketplace, you can Join the Waitlist for the Stable release.

Prerequisite:

  • Python v3.10 + Poetry
  • Node v16 + Yarn

Setup:

  1. Clone Quickfix AI repo
  2. Build the vscode-extension make install-vscode-extension
  3. Build the backend make install-backend
  4. Update the environment variables in both folders, /vscode-extension/src/env.ts (you probably don’t need to update this file if your backend will be running in the localhost or 127.0.0.1) and /backend/.env
  5. Run the backend make run-backend

How to Use Quickfix AI 🛠

  1. Open a workspace/folder in VS Code
  2. Open the Command Palette (press Ctrl + Shift + P or Cmd + Shift + P on Mac)
  3. Type “Quickfix AI” and select the command from the list
  4. Paste/enter your error or question.
  5. Wait for the response and the solution will be displayed in a “solution-by-quickfix-ai markdown” file in your VS Code editor
Read More  BOOK: AI IS COOL, BUT NOWHERE NEAR HUMAN CAPACITY

Enjoy the instant and comprehensive error solutions with Quickfix AI! 🎉

Also published here.

By: Musab Shakil
Published at Hackernoon

Source: Cyberpogo

relay

Related Topics
  • AI
  • Artificial Intelligence
  • Chatgpt
  • Hackernoon
  • Quickfix AI
You May Also Like
View Post
  • Artificial Intelligence
  • Machine Learning

6 ways Google AI Is Helping You Sleep Better

  • March 21, 2023
View Post
  • Artificial Intelligence
  • Machine Learning

AI Could Make More Work For Us, Instead Of Simplifying Our Lives

  • March 21, 2023
View Post
  • Artificial Intelligence
  • Platforms

Microsoft To Showcase Purpose-Built AI Infrastructure At NVIDIA GTC

  • March 21, 2023
View Post
  • Artificial Intelligence
  • Engineering
  • Tools

The Next Generation Of AI For Developers And Google Workspace

  • March 21, 2023
View Post
  • Artificial Intelligence
  • Technology

Limits To Computing: A Computer Scientist Explains Why Even In The Age Of AI, Some Problems Are Just Too Difficult

  • March 17, 2023
View Post
  • Artificial Intelligence
  • Machine Learning
  • Platforms
  • Technology

Using ML To Predict The Weather And Climate Risk

  • March 16, 2023
View Post
  • Artificial Intelligence
  • Platforms
  • Technology

Google Is A Leader In The 2023 Gartner® Magic Quadrant™ For Enterprise Conversational AI Platforms

  • March 16, 2023
View Post
  • Artificial Intelligence
  • Technology

The Future Of AI Is Promising Yet Turbulent

  • March 16, 2023
Stay Connected!
LATEST
  • 1
    6 ways Google AI Is Helping You Sleep Better
    • March 21, 2023
  • 2
    AI Could Make More Work For Us, Instead Of Simplifying Our Lives
    • March 21, 2023
  • 3
    Microsoft To Showcase Purpose-Built AI Infrastructure At NVIDIA GTC
    • March 21, 2023
  • 4
    The Next Generation Of AI For Developers And Google Workspace
    • March 21, 2023
  • 5
    Sumitovant More Than Doubles Its Research Output In Its Quest To Save Lives
    • March 21, 2023
  • 6
    How Osmo Is Digitizing Smell With Google Cloud AI Technology
    • March 20, 2023
  • 7
    Built With BigQuery: How Sift Delivers Fraud Detection Workflow Backtesting At Scale
    • March 20, 2023
  • 8
    Building The Most Open And Innovative AI Ecosystem
    • March 20, 2023
  • 9
    Understand And Trust Data With Dataplex Data Lineage
    • March 17, 2023
  • 10
    Limits To Computing: A Computer Scientist Explains Why Even In The Age Of AI, Some Problems Are Just Too Difficult
    • March 17, 2023

about
About
Hello World!

We are liwaiwai.com. Created by programmers for programmers.

Our site aims to provide materials, guides, programming how-tos, and resources relating to artificial intelligence, machine learning and the likes.

We would like to hear from you.

If you have any questions, enquiries or would like to sponsor content, kindly reach out to us at:

[email protected]

Live long & prosper!
Most Popular
  • 1
    The Benefits And Core Processes Of Data Wrangling
    • March 17, 2023
  • 2
    We Cannot Even Agree On Dates…
    • March 17, 2023
  • 3
    Financial Crisis: It’s A Game & We’re All Being Played
    • March 17, 2023
  • 4
    Using ML To Predict The Weather And Climate Risk
    • March 16, 2023
  • 5
    Google Is A Leader In The 2023 Gartner® Magic Quadrant™ For Enterprise Conversational AI Platforms
    • March 16, 2023
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
  • About

Input your search keywords and press Enter.