<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="281875" data-post-id="281875">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="al2o3cr" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/al2o3cr/120/3457_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  al2o3cr
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>My prediction is that it will be used to write lots of code that the author doesn’t understand, and that folks will continue to insist that a fancy autocomplete is “sentient”.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281875" data-batch-url="/posts/batch_likers">
                        8
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-281875" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281875"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="281880" data-post-id="281880">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dmitriid" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dmitriid/120/13182_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dmitriid
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>There’s a cut-off on data it was trained on. It was 2021 for GPT 3, no idea for GPT4</p>
<p>Coupled with the fact that it always tries to generate a plausible-looking answer, expect it to generate a lot of garbage, especially for something reasonably new or unpopular. I tried to ask it to generate something with Ash Framework, and it generate actual correct code… using Ash modules that have never been in existence and have never even been discussed.</p>
<p>I expect GPT4 with it’s better generative model to be even <em>worse</em> in this regard. [1]</p>
<hr>
<p>Then there’s the problem of choice. If you have many ways of doing something, you will get wildly different results for the same input.</p>
<p>Just today I was playing with it (again, v3, not v4, but I expect the outcome to be the same). The query I had was “using latest Java, and the best libraries, write a Telegram bot integrating with OpenAI”. Running this query three times gave me implementations with <code>OkHttp</code>, <code>unrest</code> and <code>httpclient</code>. It looked plausible, but I didn’t check it.</p>
<hr>
<p>So, if you’re willing to babysit it like you would a junior dev, and code review every step of the way, and use rather outdated libraries for some common boilerplate code… then it’s pretty good.</p>
<p>[1] This is true for programming and significantly worse for anything outside programming. Basically, as long as it’s popular, non-technical, and in English, the results will often blow your mind. Since the modern world (especially online world) is becoming so predominantly English-speaking, LLMs have an insanely large trove of data to pull from. For anything else the results they produce will very quickly become invalid garbage even if there’s at least some data on the subject available in English. E.g. try asking it about relatively non-popular non-English literature. Same goes for programming languages and technical topics.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281880" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-281880" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281880"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="281907" data-post-id="281907">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="n0gg1n" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/n0gg1n/120/18271_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  n0gg1n
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="dmitriid" data-post="13" data-topic="54572">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dmitriid/48/13182_2.png" class="avatar"> dmitriid:</div>
<blockquote>
<p>There’s a cut-off on data it was trained on. It was 2021 for GPT 3, no idea for GPT4</p>
<p>Coupled with the fact that it always tries to generate a plausible-looking answer, expect it to generate a lot of garbage, especially for something reasonably new or unpopular. I tried to ask it to generate something with Ash Framework, and it generate actual correct code… using Ash modules that have never been in existence and have never even been discussed.</p>
<p>I expect GPT4 with it’s better generative model to be even <em>worse</em> in this regard. [1]</p>
</blockquote>
</aside>
<p>Since the input size of GPT4 is ~25000 words you can put the current library into the prompt and ask specific questions. I think this can be a great learning resource. I already created a draft <a href="https://github.com/elixir-lang/ex_doc/pull/1681" rel="noopener nofollow ugc">PR</a> to ex_doc to directly create a single file from the docs.<br>
I’m curious what you guys think <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281907" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-281907" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281907"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="281916" data-post-id="281916">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dmitriid" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dmitriid/120/13182_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dmitriid
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The issue of outdated info still remains. Quick googling shows that even GPT-4 is rained on data up to September 2021. So it’s useless for any info in the past 2.5 years which includes some of the biggest announcements and releases in Elixir: the vast majority of Nx, Livebook, etc.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281916" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-281916" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281916"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="282102" data-post-id="282102">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="fceruti" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fceruti/120/28850_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  fceruti
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I guess there’s plenty that can be done without AI.</p>
<p>Just basic ad-hoc documentation and examples would be amazing!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="282102" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-282102" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="282102"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="282133" data-post-id="282133">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="regex.sh" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/regex.sh/120/17382_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  regex.sh
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>True, outdated training data is a challenge, but GPT-4 can still be useful in many situations. Combining AI with ad-hoc documentation, examples, and community-driven content could provide a more comprehensive solution for developers. Excited to see GPT-4’s evolution and its impact on the developer community.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="282133" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-282133" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="282133"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="282320" data-post-id="282320">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Hmaddocks" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Hmaddocks
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>My experience so far has been that GPT has been fine, or even quite good, for more “mainstream” languages, JavaScript, Python, maybe Rust, but useless for Elixir. The Elixir code it produces is almost always garbage. I don’t mean bad code but, not Elixir. It usually writes weird hybrid of Elixir and Ruby.</p>
<p>My expectation of 4 is pretty much the same unless they have used a much broader training set.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="282320" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/expectations-for-gpt-4/54572/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-282320" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="282320"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>