by greg · 3y ago · 0 comments
1) How to communicate the circuit connections to ChatGPT in the text prompt. We ended up just using the standard netlist format. Apparently it knows about netlists from its training data. It also knows about datasheets.
2) How to get the needed accuracy and precision for questions like "calculate the resistance needed between component A and B". For that, we adopted the popular langchain framework to integrate specific "tools" into the AI for specific recognizable problems.
It then also recommends a LiPo battery with a nominal 3.7V which obviously wouldn't be compatible with its LM7805 recommendation.
It also recommends an ESP8266 which is a 3.3V part so neither of the recommended regulators, nor the battery alone, would be appropriate.
Also, it recommends a 168MHz STM ARM micro - but it already has an ESP8266 with GPIO.
I'm not sure what it's suggesting I build but it doesn't really sound like a working environmental radiation logger ;)
How should I think about this?
We've had good results by asking follow up questions like "what power supply IC could I use to power a 3.3v microcontroller from a 3.7V nominal LiPo battery over the whole battery voltage range?".
I asked that question and I got: LM3940 and AMS1117-3.3 (LDO, high drop out but probably ok for low current - one isn't in stock but it doesn't have stock info yet), and TPS62203 and ADP2108 (bucks, both seem appropriate). These answers should get better as Copilot gets access to more and more tools.
It's all very well expecting the hallucinations, but specificity beats Ludditeism every day. My gut reaction was 'ho boy, I'd better not trust this' but I didn't have the domain knowledge to understand why the GPT advice was dangerous. You did.
Some personal questions it refused to answer or give suggestions because "only you can decide" was the response.
I'm very suspicious of all this. I'm thinking the only real benefit--some may say--is the chat aspect. You can carry on a conversation rather than having to determine a proper Google search over and over again.
Which makes me think there is some hype involved.
There's _a lot_ of hype.
It's a good tool if you forget about any "intelligence" and just think of it as a tool. We don't expect search engines to be 'intelligent', we expect them to return results we are interested in, in an efficient manner.
In the case of this and similar tools, it is a text generator. It will generate _something_ based on your input. In many cases, it will make up stuff because it has to generate something. Note how it will not ask follow-up questions to 'understand' you (because it doesn't understand anything). You have to apply judgment and ask the follow up questions yourself.
One thing I found these tools to be useful is to mitigate the "blinking cursor on an empty document" paralysis. I just asked the "Pulumi AI" to generate some code that, while not really correct to my needs, is a good starting point for modification.
If you ask it to generate something from you, other than just a pre-made response that you could google, then it's more useful.
Copilot specifically asked me to provide the capacitance value for the capacitor closest to the comment pin in response to my question about optimal resistance for a resistor. Once I provided the value (by setting it in the tool, not by typing it in the chat) and asked it to try again it thanked me for the new info and gave back a good resistance value and how it arrived at it.
This isn't to say gpt-4 isn't cool or impressive or a development to watch and learn about and be excited about, but I frequently see criticism dismissed as "you must be using 3.5" while I find 4 still costs more time than it would have potentially saved.
I'm overall bullish on AI systems but I'm not sure this space has enough detailed context to train. Much if this knowledgeis in-house/proprietary. We'll see how fast these are able to improve over time.
For many applications such as talking to pdfs you can use a vectors db like pinecone
But that doesn’t work well for schematics because for of the interesting use cases you need access to the whole thing.
Here is what’s been working for us
1. Extreme compression and summarization of the data we dynamically put in the context 2. Leverage the extreme amount of world knowledge the cutting edge models have