I was having a conversation with a programming AI assistant, trying to get advice on how…
- User
I was having a conversation with a programming AI assistant, trying to get advice on how use an obscure library. The assistant kept giving me code that did not compile and references functions that don't seem to exist. What should I do?
- Assistant
If the programming AI assistant is consistently giving you code that doesn't compile and references functions that don't exist, it's possible that there may be a bug in the AI's programming or it may not be familiar with the specific library you are trying to use. In this case, there are a few steps you could take:
-
Double-check that you have correctly communicated the name of the library and the specific functions you are trying to use. Make sure you are both on the same page in terms of what you are looking for.
-
Ask the AI assistant to explain the code it is providing and point out any errors it may have. This will help you better understand what may be causing the issue and potentially allow you to troubleshoot the problem.
-
Consider reaching out to the developers of the AI assistant and reporting the issue you are experiencing. They may be able to help troubleshoot the issue and potentially fix any bugs in the AI's programming.
-
If none of the above steps work, you may need to consider seeking help from a human programmer or consulting other resources such as online forums or documentation for the library in question.
-
- User
Is there a way to give the AI assistant updated information? Like, could you just paste in API docs if it can't access the internet?
If it can access the internet then maybe you could give it some links to read from.
Is it better to simplify the information in some way when passing it to the model?
- Assistant
It depends, as you indicated, on whether or not the AI assistant has the ability to access and read information on the internet. If so then the simplest method is to supply the AI assistant with a link to the documentation.
If that method fails, or if the AI assistant does not have access to the internet, then one of the following approaches may work to provide the AI assistant with updated information:
- You may copy the information directly from the documentation for the library and prompt the AI assistant with it. When doing so, you should ensure that the information is supplied to the AI assistant in a well formatted manner, as improper formatting may confuse the AI assistant or otherwise reduce it's performance in some manner.
- You may summarize the information yourself and present it to the AI assistant. While this takes more effort than the previous method, it may produce superior results as you will not be presenting the assistant with extraneous information.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)