#I want to code my own ai butt im stuck
1 messages · Page 1 of 1 (latest)
gimme the code ill fix some
do you want to use libraries like third party LLM, NLP stuff
@shell bronze
well if you dont mind giving the code ill suggest these
Processing the text :
Models like chatgpt cant just randomly generate text out of no where so NlP comes in hand (Natural language processing) It has two main features -
NLU - Converts human language to RoBoT lAnGuAGe for example
Shopping list of 2 mangoes :
<Shopping List>
<2 mango>
</Shopping List> or something like that,
NLG -
These stuff make up the text where it understands the situation for example
<Shopping List>
<2 mango>
</Shopping List>
to
In an shopping list there is 2 mango
now time for big part, as you know the bot can speak and understand it is actually dumb at the same time.
it needs Knowledge and that is the most time consuming, you see many models use Internet to know about an topic like how chatgpt does it can have wikipedia where i made an AI that when i say What is an tree it summaries the context with remaining word tree and use it to search Wikipedia then crop out the useful with NLU and make a rework of the text using NLG, see how easy
if you want no libraries eh, you might need to make an whole NLP, or you might need to download the whole NLP if you want to work offline
NLP is basically English grammar rules following tool where NLU separates each word and see what grammar it uses and separates the useful ones for example
Make an shopping list of 2 mangoes
separate separate
Shopping list, 2 mango
Item, quantity, Fruit
with an code we can make it do this
<Item>
<quantity Fruit>
</item>
it depends on the NLU you are using and NLG oh boy
NLG is basically very hard in which we have to follow Grammar rules like what word comes after that and that but also need to aware of the text to prevent loops like this
I want apple and its sweet so I want apple and its sweet ....
and it also need to aware of its context on which topic its talking about
so in my context i use wikipedia to search information and then crop out the information and rework with NLG and thats the simplest you will get to make an small LLM
@shell bronze Tips on how to make an Chat BOT