#Ai
1 messages ยท Page 1 of 1 (latest)
<@&987246964494204979> please have a look, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
You can store an AI's memory by using various data storage methods such as databases, files, or in-memory data structures. The key is to save the AI's knowledge and experiences in a format that allows it to learn and adapt over time.
One common approach is to use a database like MySQL or MongoDB to store the AI's memory. This allows you to easily query and retrieve information for the AI to learn from. You can also use files to store the AI's memory, either in plain text or serialized format for easy reading and writing.
In-memory data structures like hashmaps or lists can also be used to store the AI's memory temporarily during runtime. This can be useful for quick access and manipulation of data, but may not be suitable for long-term storage.
It's important to consider the size of the memory you want to store, as well as the frequency of updates and retrievals. Using a combination of different storage methods may be necessary depending on your specific requirements.
Overall, by implementing a robust storage system for your AI's memory, you can ensure that it has access to relevant information for learning and improving its performance over time.
I recommend reading up on the basics of AI first.
well i know the basics i just cant figure out how to make a database
What data do you want to store in the database, is this project monolithic (single instance of your program)
Basically right now i am trying to make a grid with a square that has to move to the other square, i already have the scoring system for reinforcement learning, but if i refresh the page i lose all the training so i want to be able to save it somewhere, i was able to save it but i would have to manually press save i want it to automatically save.
It's a web app, and you want to store a 2d array ?
So right now the only thing i could get to work to actually code is the notepad in my files lol so its running on a browser from my files if that makes sense idk how to explain it
I'm not sure what you mean exactly, are you running your java code on an online code editor?
no from a notepad in files
do you have windows 11?
cause if you open a notepad write down your code in that then turn it into a .html file you can run it as if it was a website
Wait so is this java or javascript?
java script
I'm not too familiar with javascript but you can look at stuff like localStorage
k thanks
You're also seemingly not talking about learning, but more about storing a conversation/context?
i just want to be able to store the data because whenever i refresh the page it resets, basically i made a 75x75 grid with one corner there is bob the cube on the other corner there is a red cube the end goal, bob has to get to the red cube by moving up or down left or right or diagonally
Ok, but that's not really what people consider AI. I'd just use local storage.
its not ai used for like asking questions but it is still just an artificial intelegence used to solve problems in this case how to get to point a to point b, i am just using this as basically a simple stepping stool before i do something harder, in the end i want to make an ai to speadrun games or even simmulate games
I get that, but phrasing your question correctly is important to get the right answer.
k, thanks for the advice
how should i phrase it than?
In this case AI was a red herring, what you actually wanted to know was how to store data in your browser.
k, thx