You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Compare these results with the previous Direct LLM queries
358
358
* The default *similarity_top_k* values is 3. However, I set it up to 5 to have more exhaustive answers.
359
359
* We expect more accurate and truthful answers. Anyway, when asked about London Equations, they are wrong. Also in the first query, direct LLM provides only few scientists but do not quote "Josephson" in any case (even after multiple generation).
@@ -385,6 +385,7 @@ for i, resp in enumerate(rag_responses):
385
385
386
386
387
387
<spanstyle="font-size:1.5em;font-weight:700"> Which scientists contributed the most to superconductivity? </span>
@@ -411,6 +412,7 @@ The text emphasizes the importance of understanding the microscopic mechanism of
411
412
412
413
413
414
<spanstyle="font-size:1.5em;font-weight:700"> Which are the differences between Type-I and Type-II superconductors? Describe magnetical properties and show formulas. </span>
@@ -497,8 +500,8 @@ The provided text highlights the historical development of superconductivity the
497
500
498
501
499
502
500
-
501
503
<spanstyle="font-size:1.5em;font-weight:700"> Solve this problem: Consider a bulk superconductor containing a cylindrical hole of 0.1 mm diameter. There are 7 magnetic flux quanta trapped in the hole. Find the magnetic field in the hole.</span>
@@ -540,9 +543,9 @@ Substitute the values of Φ0, d, and π into the equation to obtain the numerica
540
543
541
544
Let me know if you have any further questions.
542
545
546
+
---
543
547
544
-
545
-
## 8. Conclusion
548
+
## 10. Conclusion
546
549
This implementation demonstrates the power of RAG in combining the strengths of large language models with the ability to retrieve and utilize specific, relevant information. By using FAISS for efficient similarity search and a state-of-the-art language model like Gemma-2-9b, this system can provide informed, context-aware responses to complex queries about superconductivity.
547
550
The comparison between direct LLM responses and RAG responses would likely show the benefits of RAG in providing more detailed, accurate, and source-backed information. This approach is particularly valuable in domains requiring up-to-date or specialized knowledge, where the LLM's pre-trained knowledge might be insufficient or outdated.
</span></span></code></pre></div><p><spanstyle="font-size:1.5em;font-weight:700"> Which scientists contributed the most to superconductivity? </span></p>
@@ -841,8 +841,8 @@ <h2 id="6-vector-store-and-index-creation">6. Vector Store and Index Creation</h
841
841
<li><strong>John Cooper:</strong> His work on electron pairing in superconductors was crucial for the development of the BCS theory.</li>
842
842
</ul>
843
843
<p>The text emphasizes the importance of understanding the microscopic mechanism of superconductivity, highlighting the contributions of Cooper and the development of the BCS theory. It also provides some insights into why certain materials, like noble metals, do not become superconductors.</p>
844
-
<p><spanstyle="font-size:1.5em;font-weight:700"> Which are the differences between Type-I and Type-II superconductors? Describe magnetical properties and show formulas. </span>
<p><spanstyle="font-size:1.5em;font-weight:700"> Which are the differences between Type-I and Type-II superconductors? Describe magnetical properties and show formulas. </span></p>
<p>Superconductors can be divided into two groups, Type-I and Type-II, characterized by their different responses to external magnetic fields. This classification is crucial in understanding the behavior of superconductors in various applications.</p>
847
847
<p><strong>Type-I Superconductors:</strong></p>
848
848
<ul>
@@ -893,8 +893,8 @@ <h2 id="6-vector-store-and-index-creation">6. Vector Store and Index Creation</h
893
893
</li>
894
894
</ul>
895
895
<p>Let me know if you have any other questions.</p>
896
-
<p><spanstyle="font-size:1.5em;font-weight:700"> What are the London Equation? Why are they important? </span>
@@ -930,8 +930,8 @@ <h2 id="6-vector-store-and-index-creation">6. Vector Store and Index Creation</h
930
930
</ul>
931
931
<p><strong>Contextual Connection:</strong></p>
932
932
<p>The provided text highlights the historical development of superconductivity theory, culminating in the BCS theory. The London equations, while a simplified model, played a crucial role in laying the groundwork for these later, more sophisticated theories. They provided the first concrete explanation for the phenomenon of perfect diamagnetism and zero resistance, paving the way for a deeper understanding of superconductivity.</p>
933
-
<p><spanstyle="font-size:1.5em;font-weight:700"> Solve this problem: Consider a bulk superconductor containing a cylindrical hole of 0.1 mm diameter. There are 7 magnetic flux quanta trapped in the hole. Find the magnetic field in the hole.</span>
<p><spanstyle="font-size:1.5em;font-weight:700"> Solve this problem: Consider a bulk superconductor containing a cylindrical hole of 0.1 mm diameter. There are 7 magnetic flux quanta trapped in the hole. Find the magnetic field in the hole.</span></p>
<p>To solve this problem, we can use the concept of magnetic flux quantization in superconductors.</p>
936
936
<p><strong>1. Magnetic Flux Quantization:</strong></p>
937
937
<p>Each flux quantum (Φ0) is given by:</p>
@@ -954,7 +954,8 @@ <h2 id="6-vector-store-and-index-creation">6. Vector Store and Index Creation</h
954
954
<p><strong>3. Numerical Calculation:</strong></p>
955
955
<p>Substitute the values of Φ0, d, and π into the equation to obtain the numerical value of the magnetic field in the hole.</p>
956
956
<p>Let me know if you have any further questions.</p>
957
-
<h2id="8-conclusion">8. Conclusion</h2>
957
+
<hr>
958
+
<h2id="10-conclusion">10. Conclusion</h2>
958
959
<p>This implementation demonstrates the power of RAG in combining the strengths of large language models with the ability to retrieve and utilize specific, relevant information. By using FAISS for efficient similarity search and a state-of-the-art language model like Gemma-2-9b, this system can provide informed, context-aware responses to complex queries about superconductivity.
959
960
The comparison between direct LLM responses and RAG responses would likely show the benefits of RAG in providing more detailed, accurate, and source-backed information. This approach is particularly valuable in domains requiring up-to-date or specialized knowledge, where the LLM’s pre-trained knowledge might be insufficient or outdated.</p>
960
961
@@ -1121,13 +1122,13 @@ <h5 class="text-center ps-3">Table of Contents</h5>
0 commit comments