Answers.Body: <p>This is rather something for V&amp;L Models, training on associated texts with circuit images. Data which should be hard to come by.
  I doubt these models are yet capable of catching enough detail in pictures for producing the desired results. I mean results that dont dissolve is smoke when soldering the circuit.</p>
  <p>Mapping from natural language to some <em>formal description language of circuits</em> (lets call it fdloc) is definitively possible, but you need a lot of training data on text basis, lets say more than 1k pairs of human written texts and the corresponding fdloc expression. Do you have this data? Then machine translation networks are all you need.
  Fine-tuning a large system might be enough, depending on how your fdloc is syntactically build, e.g. does it contain many chars that a normal GPT Model would just not recognize as tokens?</p>
  <p>Alternatively, if you don't have this data and don't want to get rendered circuit images, you could try to Learn the soldering paths to the respective electric pieces by natural language understanding:</p>
  <p>Just a draft:</p>
  <ol>
  <li>Use NER (Named Entity Recognition) to spot all electric components in the text.</li>
  <li>The text between these components most probably deals with how to connect the different capacitors etc., so you need to map these relations onto &quot;paths&quot; that you register as connections between your components, e.g. now solder the negative connector of the switch S1 to the blabla of the light bulb socket B2&quot; or something comparable.</li>
  <li>Watch out! Its natural language, so even if its written in a dry and technical style, you will have to resolve co-reference, something like &quot;now connect <em>THIS</em> to the output jack ...&quot;.
  I think you could extract some sort of a directed graph, which contains the components and the path descriptions of connections to all other components.</li>
  <li>From this you then need to build a schematic of the circuit.
  Alternatively, If you have something like a fdloc some program can read in and produce the circuit for you, then you don't need to do step 4 on your own.</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-20T11:31:31.957Z
Answers.LastActivityDate: 2021-09-20T11:39:44.617Z
Answers.LastEditDate: 2021-09-20T11:39:44.617Z
Answers.UserDisplayName: Langueneers
Answers.Body: <p>As of today (9 Feb 2023) it is possible to create a HSPICE output from verbal description of an electric circuit using chatGPT.</p>
  <p>Simply describe a circuit and its element to chatGPT, and ask it to write the HSPICE code to simulate the circuit. Not only chatGPT is able to solve the circuit for you step by step, it can also create the HSPICE format correctly.</p>
  <h2><strong>Here is chatGPT's HSPICE output for a simple circuit and the description of the code:</strong></h2>
  <pre><code>* Electric Circuit with 3 elements
  V1 1 0 DC 10V
  R1 1 2 20Ohm
  R2 2 0 30Ohm
  
  * Simulation command
  .OP
  .DC V1 10 20 0.1
  .PRINT DC V(2)
  .END
  
  </code></pre>
  <blockquote>
  <p>Explanation of the code:</p>
  </blockquote>
  <blockquote>
  <p>The first two lines define the voltage source V1 with node numbers 1 and 0, and a DC voltage of 10V.
  The next two lines define the resistors R1 and R2 with node numbers and their resistance values.
  The .OP command sets the simulation to operate point analysis.
  The .DC command sets up a DC sweep analysis with the sweep variable V1 ranging from 10V to 20V in steps of 0.1V.
  The .PRINT command specifies the variables to be printed in the output, in this case, the voltage at node 2.
  The .END command marks the end of the simulation.
  This code should give you the voltage across R1 as a function of the voltage source V1.</p>
  </blockquote>
  <hr />
  <p>All I can say is that <strong>we are on the verge of a revolution</strong>! This is as big as the Internet, and can help experts to make much more rapid progress in many fields of science.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-09T14:38:12.760Z
Answers.LastActivityDate: 2023-02-09T14:38:12.760Z
Answers.UserDisplayName: user45498
Answers.Body: <p>The rate of progress is so impressive that this information will soon be out of date.</p>
  <p>Whatever you're doing with it (even code), turn frequency penalty and presence penalty all the way up to 2.</p>
  <p>When using something like the OpenAI playground to access GPT-3 your question and its answer will be text. So it might give a step by step description or describe the circuits connectivity with some formal language that makes that practical.</p>
  <p>Asking a question followed by a question-mark or alternatively &quot;The following is a …:&quot; seems to work well. Then a single line break.</p>
  <p>Hold its hand at first, you may need to correct the first sections of output to help it get onto the right track, however once there the reliability will improve.</p>
  <p>Recursively ask for a more detailed breakdown where needed.</p>
  <p>It's not very good at negatives when coding, this problem may occur here as well, if so avoid &quot;X but without Y&quot;, for example something that is &quot;not expensive&quot; could be &quot;cheap&quot;.</p>
  <p>It may to prefer excellent over affordable, just because somethings been invented a whole year ago doesn't mean you'll be wanting to buy 20 of them even if that would make for a really good design.</p>
  <p>It may try and solve 99% of the problem with a single component, such as welding a Raspberry PI computer onto the circuit board.</p>
  <p>There's a good chance it wont agree with you and work from there if it thinks you're wrong about something, it's very intelligent, can keep track of long arguments, and never tires of them, and it can be quite condescending which isn't always helpful. You can get round this with &quot;so hypothetically …&quot; or &quot;I managed to …, how did I do it?&quot;</p>
  <p>You can ask it to optimise/adjust its design in some specific way, with varying levels of success.</p>
  <p>It tries to repurpose existing understanding, if it already understands mechanical design for example and circuit design is relatively new to if you may see it strongly expressing that influence.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-17T18:22:44.493Z
Answers.LastActivityDate: 2022-02-17T18:30:58.567Z
Answers.LastEditDate: 2022-02-17T18:30:58.567Z
Answers.UserDisplayName: alan2here
Body: <p>I was wondering if it is possible to use GPT-3 to translate text description of a circuit to any circuit design language program, which in turn can be used to make the circuit.
  If it is possible, what approach will you suggest?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-17T04:13:33.293Z
Comments.Text: I'm sorry, I don't know much about circuits. Could you provide an example of a circuit text description? Or a simple example of the expected result?
Comments.UserDisplayName: Andre Goulart
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-30T15:47:02.057Z
Comments.Text: Circuit text description: "Please design a buck converter with 12V input and 5V 3A output." Have fun finding an output format that represents circuits.
Comments.UserDisplayName: Criticize SE actions means ban
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-02-17T20:28:40.163Z
Comments.Text: This needs to be viewed as a code generation problem where a textfile is output.
Comments.UserDisplayName: FourierFlux
Tags: <generative-adversarial-networks><applications><text-generation><gpt-3>
Title: How can GPT-3 be used for designing electronic circuits from text descriptions?
UserDisplayName: Aether
ThreadText: # How can GPT-3 be used for designing electronic circuits from text descriptions?
  
  (Asked by: username_0 on 2021-08-13)
  
  I was wondering if it is possible to use GPT-3 to translate text description of a circuit to any circuit design language program, which in turn can be used to make the circuit.
  If it is possible, what approach will you suggest?
  
  **Tags:** generative-adversarial-networks, applications, text-generation, gpt-3
  > **Comments:**
  > **username_1**: I'm sorry, I don't know much about circuits. Could you provide an example of a circuit text description? Or a simple example of the expected result?  
  > **username_2**: Circuit text description: "Please design a buck converter with 12V input and 5V 3A output." Have fun finding an output format that represents circuits.  
  > **username_3**: This needs to be viewed as a code generation problem where a textfile is output.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_4 on 2021-09-20. Score: 1 | Accepted answer
  
  This is rather something for V&L Models, training on associated texts with circuit images. Data which should be hard to come by.
  I doubt these models are yet capable of catching enough detail in pictures for producing the desired results. I mean results that dont dissolve is smoke when soldering the circuit.
  
  Mapping from natural language to some *formal description language of circuits* (lets call it fdloc) is definitively possible, but you need a lot of training data on text basis, lets say more than 1k pairs of human written texts and the corresponding fdloc expression. Do you have this data? Then machine translation networks are all you need.
  Fine-tuning a large system might be enough, depending on how your fdloc is syntactically build, e.g. does it contain many chars that a normal GPT Model would just not recognize as tokens?
  
  Alternatively, if you don't have this data and don't want to get rendered circuit images, you could try to Learn the soldering paths to the respective electric pieces by natural language understanding:
  
  Just a draft:
  
  1. Use NER (Named Entity Recognition) to spot all electric components in the text.
  2. The text between these components most probably deals with how to connect the different capacitors etc., so you need to map these relations onto "paths" that you register as connections between your components, e.g. now solder the negative connector of the switch S1 to the blabla of the light bulb socket B2" or something comparable.
  3. Watch out! Its natural language, so even if its written in a dry and technical style, you will have to resolve co-reference, something like "now connect *THIS* to the output jack ...".
     I think you could extract some sort of a directed graph, which contains the components and the path descriptions of connections to all other components.
  4. From this you then need to build a schematic of the circuit.
     Alternatively, If you have something like a fdloc some program can read in and produce the circuit for you, then you don't need to do step 4 on your own.
  
  
  ---
  
  ### Answer by username_5 on 2023-02-09. Score: 2
  
  As of today (9 Feb 2023) it is possible to create a HSPICE output from verbal description of an electric circuit using chatGPT.
  Simply describe a circuit and its element to chatGPT, and ask it to write the HSPICE code to simulate the circuit. Not only chatGPT is able to solve the circuit for you step by step, it can also create the HSPICE format correctly.
  Here is chatGPT's HSPICE output for a simple circuit and the description of the code:
  * Electric Circuit with 3 elements
  V1 1 0 DC 10V
  R1 1 2 20Ohm
  R2 2 0 30Ohm
  
  * Simulation command
  .OP
  .DC V1 10 20 0.1
  .PRINT DC V(2)
  .END
  
  
  
  Explanation of the code:
  
  
  The first two lines define the voltage source V1 with node numbers 1 and 0, and a DC voltage of 10V.
  The next two lines define the resistors R1 and R2 with node numbers and their resistance values.
  The .OP command sets the simulation to operate point analysis.
  The .DC command sets up a DC sweep analysis with the sweep variable V1 ranging from 10V to 20V in steps of 0.1V.
  The .PRINT command specifies the variables to be printed in the output, in this case, the voltage at node 2.
  The .END command marks the end of the simulation.
  This code should give you the voltage across R1 as a function of the voltage source V1.
  
  
  All I can say is that we are on the verge of a revolution! This is as big as the Internet, and can help experts to make much more rapid progress in many fields of science.
  
  
  ---
  
  ### Answer by username_6 on 2022-02-17. Score: 0
  
  The rate of progress is so impressive that this information will soon be out of date.
  
  Whatever you're doing with it (even code), turn frequency penalty and presence penalty all the way up to 2.
  
  When using something like the OpenAI playground to access GPT-3 your question and its answer will be text. So it might give a step by step description or describe the circuits connectivity with some formal language that makes that practical.
  
  Asking a question followed by a question-mark or alternatively "The following is a …:" seems to work well. Then a single line break.
  
  Hold its hand at first, you may need to correct the first sections of output to help it get onto the right track, however once there the reliability will improve.
  
  Recursively ask for a more detailed breakdown where needed.
  
  It's not very good at negatives when coding, this problem may occur here as well, if so avoid "X but without Y", for example something that is "not expensive" could be "cheap".
  
  It may to prefer excellent over affordable, just because somethings been invented a whole year ago doesn't mean you'll be wanting to buy 20 of them even if that would make for a really good design.
  
  It may try and solve 99% of the problem with a single component, such as welding a Raspberry PI computer onto the circuit board.
  
  There's a good chance it wont agree with you and work from there if it thinks you're wrong about something, it's very intelligent, can keep track of long arguments, and never tires of them, and it can be quite condescending which isn't always helpful. You can get round this with "so hypothetically …" or "I managed to …, how did I do it?"
  
  You can ask it to optimise/adjust its design in some specific way, with varying levels of success.
  
  It tries to repurpose existing understanding, if it already understands mechanical design for example and circuit design is relatively new to if you may see it strongly expressing that influence.
  
  
  ---
  
  