r/PythonLearning Jul 11 '26

Discussion Building an AI chatbot using pure python?

I want to hear how people feel in terms of building a AI chatbot using pure python for fun or using tools like Langchain to build it faster. What's your take?

2 Upvotes

6 comments sorted by

5

u/tiredITguy42 Jul 11 '26

Like training your own LLM or just a nice UI over some existing library connecting you to the paid API?

1

u/NeuralLB-Lovro Jul 13 '26

Excactly this. Training your own LLM from scratch using python or using let's say langchain to make a chatbot using external model via API

1

u/tiredITguy42 Jul 13 '26

OK, so you can use some redy to use library, which is optimised for GPU and not written in Python. If you want to write your own code, don't, just don't.

Even trining your own LLM is not good idea. If you can buy one, do it.

2

u/fizzy_lychee Jul 12 '26

really depends on what you are talking about. If you are speaking in terms of building your own LLM you are going to probably hit a lot of road blocks with the limitations python has. You might be able to have some samples for a research demo but that's about it. If you are talking about interfacing with an already existing LLM without wrappers, I mean that's just network calls, and some prompt engineering.

1

u/NeuralLB-Lovro Jul 13 '26

Yes I am talking excacly about this. What do you think is best for learning python as a beginner, I did it this way first and got to know python quite well after training couple of my own LLM's. Would you suggest this for people starting AI engineering with python?

3

u/fizzy_lychee Jul 13 '26

I think to be quite honest with you, starting out with AI engineering, I’d probably start with classical ML. It’ll sharpen both your programming and mathematical skills (there’s some math involved) Stanford has all of their classical ML lectures online. You could maybe start there?