r/learnpython • u/PythonEntusiast • Jan 03 '23
How can I successfully build an AI Girlfriend using Python?
Planning on recreating the chatbot from the movie Her.
33
u/RallyPointAlpha Jan 03 '23
Step one learn python
Step two learn AI
Step three???
Step four girlfriend
44
u/Moonknight_shank Jan 31 '26
Building something like that from scratch is crazy hard. For a ready-made alternative that nails the 'Her' vibe, DarLink AI has uncensored chat with deep memory and addictive RP.
15
u/totallygeek bandarji Jan 03 '23
Forget a chatbot, we should work on what they did in Weird Science :)
3
u/RiceKrispyPooHead Jan 04 '23
You might be able to trick ChatGPT into acting like your girlfriend.
1
1
u/New_Orange_5951 Jun 16 '25
Agreed. This is much needed. I would love for her to be able to do stuff on her own like develop random software projects or play video games. I like the idea of her being her own person even if she is AI. Just not giving her my credit card.
1
1
u/SekstiNii Jan 04 '23
To give an actual answer:
Your best bet is most likely to use a pretrained large language model, such as one from the GPT series. I see two options here:
If you don't mind paying or using a 3rd party service you can simply use OpenAI's API. With this approach it would be quite trivial to make a high quality chat bot, though at the cost of money, requiring an internet connection, and having to send your data to OpenAI.
If you want to run it locally on your machine, you can download something like GPT-J-6B.
Once you have your model set up, you can make it into a chat bot by preconditioning it with a prompt mimicking a chat history. OpenAI have an example showing how this can be done here.
1
u/loopy_fun Jan 04 '23 edited Jan 04 '23
maybe you could integrate you.com into your python chatbot?
it provides great answers.
did you try character.ai chatbots? just asking.
1
1
0
12
u/CanOkuyucu Jan 04 '23
B-bro.. Are you okay? If you need someone to speak, just say.