Explorar o código

Remove logs and update gitignore patterns

4z1d1c hai 1 ano
pai
achega
02a5e1e644

+ 11 - 3
.gitignore

@@ -1,10 +1,18 @@
 # Model files
-models/
+/models/
 *.gguf
 
 # Logs and cache
-logs/
-.gradio/
+/logs/
+/logs/*.json
+*.log
+
+# Gradio and Python
+/.gradio/
 __pycache__/
 *.pyc
 *.pem
+
+# System files
+.DS_Store
+Thumbs.db

+ 0 - 16
logs/session_20250108_213303.json

@@ -1,16 +0,0 @@
-{
-  "session_id": "20250108_213303",
-  "start_time": "2025-01-08T21:33:03.149199",
-  "conversations": [
-    {
-      "timestamp": "2025-01-08T21:34:18.714822",
-      "user_message": "Can you create a study plan for me?",
-      "ai_response": "  Of course! I'd be delighted to help you make a study strategy. But first, might you tell me a bit more about the subject you want to study and your goals for creating this study plan? What level are you at in the subject, and what do you hope to achieve by making this plan?"
-    },
-    {
-      "timestamp": "2025-01-08T21:38:11.510412",
-      "user_message": "Can you list all documents a Head of operations need to create ",
-      "ai_response": "  Of course! As an expert AI tutor, I'd be delighted to help you with your inquiry. To begin, could you provide some context or clarify what you mean by \"Head of Operations\"? Are they responsible for managing a specific department or team within an organization? Or perhaps they are in charge of overseeing the day-to-day operations of the entire business? Understanding their role and responsibilities will enable me to tailor my answer to meet their unique needs. Please feel free to ask any questions, and I'll do my best to assist you!"
-    }
-  ]
-}

+ 0 - 17
logs/session_20250108_215018.json

@@ -1,17 +0,0 @@
-{
-  "session_id": "20250108_215018",
-  "start_time": "2025-01-08T21:50:18.943254",
-  "conversations": [
-    {
-      "timestamp": "2025-01-08T21:50:51.482935",
-      "user_message": "Can you help me understand quantum mechanics?",
-      "ai_response": "  Of course, I'd be delighted to assist you in comprehending quantum mechanics! *adjusts glasses* Quantum mechanics is a fascinating subject that has revolutionized our understanding of the physical world. It's based on the principles of wave-particle duality, uncertainty, and the probabilistic nature of physical phenomena.\nTo begin with, can you tell me what you know about quantum mechanics so far? What are some of the key concepts or ideas that you find most intriguing or challenging? *smiles*",
-      "system_stats": {
-        "cpu_percent": 1.4,
-        "memory_percent": 55.6,
-        "gpu_util": 0.0,
-        "gpu_memory": 35.85205078125
-      }
-    }
-  ]
-}

+ 0 - 17
logs/session_20250108_215154.json

@@ -1,17 +0,0 @@
-{
-  "session_id": "20250108_215154",
-  "start_time": "2025-01-08T21:51:54.475633",
-  "conversations": [
-    {
-      "timestamp": "2025-01-08T21:52:17.018961",
-      "user_message": "Can you help me understand quantum mechanics?",
-      "ai_response": "  Of course! *adjusts glasses* Quantum Mechanics (QM) is a fundamental theory in physics that describes the behavior of matter and energy at the smallest scales. It's a fascinating subject that has led to many groundbreaking discoveries and technologies, from transistors to lasers.\nTo help you understand QM, let's start with some basic concepts. *nods* Can you tell me what you know about wave-particle duality?",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 55.7,
-        "gpu_util": 0.0,
-        "gpu_memory": 35.87646484375
-      }
-    }
-  ]
-}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 161
logs/session_20250108_215350.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 19
logs/session_20250108_223123.json


+ 0 - 126
logs/session_20250108_224435.json

@@ -1,126 +0,0 @@
-{
-  "session_id": "20250108_224435",
-  "start_time": "2025-01-08T22:44:35.886349",
-  "conversations": [
-    {
-      "timestamp": "2025-01-08T22:45:02.598917",
-      "user_message": "Explain photosynthesis in simple terms.",
-      "ai_response": "  Ah, an excellent topic for our discussion! *adjusts glasses* Photosynthesis, the process by which plants convert sunlight into energy, is a fascinating topic that underlies all life on Earth. *smiles*\nSo, let's begin with the basics: what do you know about photosynthesis? *looks at student*",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 55.8,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 135
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:45:56.053059",
-      "user_message": "Plant cooks chlorophyll I think. Please explain to me the missing details.",
-      "ai_response": "  Ah, an excellent question! *adjusts glasses* Chlorophyll is indeed a crucial molecule involved in photosynthesis. However, there are some missing details that we need to fill in to fully understand its role.\nCan you tell me what you know about chlorophyll so far? What is its structure, and how does it absorb light energy? *smiles*",
-      "system_stats": {
-        "cpu_percent": 2.1,
-        "memory_percent": 55.9,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 232
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:46:33.304999",
-      "user_message": "I do not know that, please teach me",
-      "ai_response": "  Of course! *smiling* Let's start with the basics. Chlorophyll is a green pigment found in plants, algae, and cyanobacteria that plays a crucial role in photosynthesis. It's responsible for absorbing light energy from the sun and converting it into chemical energy that can be used by the plant to produce glucose and oxygen.\nCan you tell me what you think happens to the light energy after it's absorbed by chlorophyll? *smiling*",
-      "system_stats": {
-        "cpu_percent": 2.2,
-        "memory_percent": 55.7,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 330
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:48:04.873897",
-      "user_message": "light energy is turned into food?",
-      "ai_response": "  Great, let's build on your understanding! Yes, that's correct - light energy is converted into chemical energy through photosynthesis. Chlorophyll, the green pigment found in plants, absorbs light energy from the sun and transfers it to a molecule called ATP (adenosine triphosphate), which is the primary energy currency of cells.\nNow, can you tell me what happens to the ATP after it's produced during photosynthesis? *smiling*",
-      "system_stats": {
-        "cpu_percent": 1.9,
-        "memory_percent": 55.8,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 451
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:48:50.105703",
-      "user_message": "Pwede ba akong magtagalog?",
-      "ai_response": "  Of course! I'm here to help you learn and understand the concept of photosynthesis. As an expert AI tutor, my approach is guided by the Socratic method, which means that I will ask you questions and encourage you to think critically about the topic. This will help you build a deeper understanding of photosynthesis and develop your own knowledge.\nSo, let's continue our discussion! You mentioned that you want to learn more about chlorophyll and its role in photosynthesis. That's a great starting point! Can you tell me what you know so far about chlorophyll? What is its structure, and how does it absorb light energy?",
-      "system_stats": {
-        "cpu_percent": 2.2,
-        "memory_percent": 55.8,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 570
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:50:04.946875",
-      "user_message": "How do I get the distance of the moon from earth if it is 9am in Australia?",
-      "ai_response": "  Great, let's dive into this question! 🚀\nSo, you want to know how to calculate the distance between Earth and the Moon at a specific time in Australia. That's a great question! 🤔\nTo solve this problem, we need to use some basic concepts of astronomy and geometry. The first step is to determine the average distance between Earth and the Moon. Can you tell me what that distance is? ",
-      "system_stats": {
-        "cpu_percent": 1.7,
-        "memory_percent": 55.8,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 144
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:57:34.474421",
-      "user_message": "Balance the following chemical equation:\nFe + O2 -> Fe2O3",
-      "ai_response": "  Great, let's continue exploring this topic together! 🔬\nTo balance the chemical equation Fe + O2 -> Fe2O3, we need to make sure that the number of atoms of each element is the same on both sides of the equation. Can you tell me how many atoms of iron (Fe) are present in the reactant side? And how many atoms of oxygen (O2) are present in the reactant side?",
-      "system_stats": {
-        "cpu_percent": 2.8,
-        "memory_percent": 55.8,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 260
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:58:05.734568",
-      "user_message": "Find the derivative of the function f(x) = 3x^4 - 2x^3 + 5x - 7",
-      "ai_response": "  Great! Let's dive into finding the derivative of the function f(x) = 3x^4 - 2x^3 + 5x - 7 using the Socratic method.\nTo begin, can you tell me what you think the derivative of this function should look like? That is, can you write down an equation for the derivative of f(x)?",
-      "system_stats": {
-        "cpu_percent": 2.8,
-        "memory_percent": 55.8,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 141
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:58:50.627529",
-      "user_message": "Given the matrix A = [[1, 2], [3, 4]], find the determinant of A",
-      "ai_response": "  Great, let's continue our exploration of finding the derivative of functions using the Socratic method! 😊\nTo start, can you tell me what you think the derivative of f(x) = 3x^4 - 2x^3 + 5x - 7 should look like? In other words, can you write down an equation for the derivative of this function with respect to x? 🤔\nRemember, our goal is to build deep understanding through critical thinking and questioning, rather than simply providing direct answers. So, let's work together to arrive at an answer that you can truly understand! ",
-      "system_stats": {
-        "cpu_percent": 2.1,
-        "memory_percent": 55.6,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 232
-      }
-    },
-    {
-      "timestamp": "2025-01-08T22:59:24.206382",
-      "user_message": "Two forces, F1 = 20 N and F2 = 30 N, act on a point at an angle of 60° to each other. Find the magnitude and direction of the resultant force.",
-      "ai_response": "  Great, let's dive into this problem together! 😊\nTo find the magnitude and direction of the resultant force, we can use the concept of moments. Can you tell me what a moment is? ",
-      "system_stats": {
-        "cpu_percent": 3.1,
-        "memory_percent": 55.7,
-        "gpu_util": 33.0,
-        "gpu_memory": 35.15625,
-        "approximate_tokens": 161
-      }
-    }
-  ]
-}

+ 0 - 30
logs/session_20250108_230144.json

@@ -1,30 +0,0 @@
-{
-  "session_id": "20250108_230144",
-  "start_time": "2025-01-08T23:01:44.862595",
-  "conversations": [
-    {
-      "timestamp": "2025-01-08T23:02:20.670971",
-      "user_message": "State the first law of thermodynamics and provide an example of its application in engineering.",
-      "ai_response": "  Great, let's dive into the first law of thermodynamics! 🔥\nThe first law of thermodynamics states that energy cannot be created or destroyed, only converted from one form to another. In other words, energy is conserved. This means that the total amount of energy in a closed system remains constant over time. 🕰️\nCan you think of an example of how this law applies in engineering? ",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 55.8,
-        "gpu_util": 2.0,
-        "gpu_memory": 36.85302734375,
-        "approximate_tokens": 149
-      }
-    },
-    {
-      "timestamp": "2025-01-08T23:27:06.877881",
-      "user_message": "Two forces, F1 = 20 N and F2 = 30 N, act on a point at an angle of 60° to each other. Find the magnitude and direction of the resultant force.",
-      "ai_response": "  Great! Let's dive into this problem using the Socratic method. Can you tell me what you think the magnitude of the resultant force would be if we just added the two forces together?",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 57.4,
-        "gpu_util": 2.0,
-        "gpu_memory": 36.85302734375,
-        "approximate_tokens": 161
-      }
-    }
-  ]
-}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 175
logs/session_20250108_233414.json


+ 0 - 78
logs/session_20250109_112143.json

@@ -1,78 +0,0 @@
-{
-  "session_id": "20250109_112143",
-  "start_time": "2025-01-09T11:21:43.373724",
-  "conversations": [
-    {
-      "timestamp": "2025-01-09T11:30:15.102196",
-      "user_message": "Given the matrix A = [[1, 2], [3, 4]], find the determinant of A.",
-      "ai_response": "  Great, let's dive into this problem! To find the determinant of a matrix, we can use the formula:\ndet(A) = det(a11) det(a21) det(a12) det(a22)\nwhere aij is the element in the ith row and jth column of A.\nCan you tell me the values of the elements in the matrix A = [[1, 2], [3, 4]]?",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 55.7,
-        "gpu_util": 0.0,
-        "gpu_memory": 28.69873046875,
-        "approximate_tokens": 142
-      }
-    },
-    {
-      "timestamp": "2025-01-09T11:59:35.034792",
-      "user_message": "State the first law of thermodynamics and provide an example of its application in engineering.",
-      "ai_response": "  Great! I'm glad you're interested in learning about thermodynamics. The first law of thermodynamics, also known as the law of energy conservation, states that energy cannot be created or destroyed, only converted from one form to another.\nCan you think of an example of how this law applies in engineering?",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 55.9,
-        "gpu_util": 0.0,
-        "gpu_memory": 28.69873046875,
-        "approximate_tokens": 149
-      }
-    },
-    {
-      "timestamp": "2025-01-09T13:15:46.247911",
-      "user_message": "Why is the earth round?",
-      "ai_response": "  Great, let's dive into this question! *smiling* So, why do you think the Earth is round? Can you explain your reasoning behind that idea? *eye-opening smile*",
-      "system_stats": {
-        "cpu_percent": 0.0,
-        "memory_percent": 56.5,
-        "gpu_util": 0.0,
-        "gpu_memory": 28.69873046875,
-        "approximate_tokens": 131
-      }
-    },
-    {
-      "timestamp": "2025-01-09T13:58:22.176167",
-      "user_message": "when something exploded, there is an offset energy from the energy produced during explosion.",
-      "ai_response": "  Ah, I see! So, you're asking about what happens when there is an explosion and the energy produced during the explosion is not accounted for in the first law of thermodynamics.\nLet me ask you a question to help clarify this: can you think of any situation where energy is created or destroyed during an explosion?",
-      "system_stats": {
-        "cpu_percent": 2.5,
-        "memory_percent": 54.9,
-        "gpu_util": 0.0,
-        "gpu_memory": 28.69873046875,
-        "approximate_tokens": 255
-      }
-    },
-    {
-      "timestamp": "2025-01-09T13:59:33.247295",
-      "user_message": "the sound and light produced in explosion are created. Can you help me understand what get destroyed?",
-      "ai_response": "  Of course, I'd be happy to help! When we talk about the first law of thermodynamics, we're really talking about energy conservation. Energy can't be created or destroyed, only converted from one form to another. So, during an explosion, there are some changes in the form and distribution of energy, but the total amount of energy remains the same.\nNow, let's think about what happens during an explosion. The sound and light produced are created as a result of the rapid expansion of gases, right? But where does that energy come from? Can you tell me?",
-      "system_stats": {
-        "cpu_percent": 2.6,
-        "memory_percent": 55.0,
-        "gpu_util": 0.0,
-        "gpu_memory": 28.69873046875,
-        "approximate_tokens": 364
-      }
-    },
-    {
-      "timestamp": "2025-01-09T14:00:24.257720",
-      "user_message": "from chemical reaction?",
-      "ai_response": "  Great, you're thinking along the lines of how the first law of thermodynamics applies to engineering! When an explosion occurs, there are indeed changes in the form and distribution of energy, but as I mentioned earlier, the total amount of energy remains the same.\nNow, let's consider where the energy comes from during an explosion. One possible source of energy is a chemical reaction. For example, when fuel is ignited in a combustion engine, a chemical reaction occurs that releases energy in the form of heat and light. This energy can then be converted into mechanical work, such as turning a crankshaft or propelling a vehicle.\nSo, to answer your question, part of the energy produced during an explosion could come from a chemical reaction. Can you think of any other possible sources of energy in this context?",
-      "system_stats": {
-        "cpu_percent": 4.2,
-        "memory_percent": 55.0,
-        "gpu_util": 0.0,
-        "gpu_memory": 28.69873046875,
-        "approximate_tokens": 514
-      }
-    }
-  ]
-}

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio