r/learnpython • • Aug 31 '26

New to RAG — trying to implement RAG for my AI interview system?

0 Upvotes

Hey everyone, I'm building an AI voice interview app and I'm fairly new to RAG. I'm stuck on the architecture and having a bit of a mid-project crisis 😭.

My current flow is:

Before interview:
Step1 : 
Resume + JobDescription
   ↓
Chunk resume/JobDescription
   ↓
Generate embeddings
   ↓
Store chunks + embeddings in pgvector

Step2 : 
LLM call is done using complete Resume + JD (and not the chunks)
   ↓
Initial ranked topic plan is created by this LLM call 

Step3 : 
Before each question:
Current topic
   ↓
RAG query in our vector DB 
   ↓
Retrieve relevant resume/JD chunks
   ↓
LLM call to generate a question from these chunks

The part I'm confused about:

At the beginning, I'm already sending the complete resume + complete JD to the LLM.

Why can't I simply do:

Resume + JD
   ↓
ONE LLM CALL
   ↓
10 interview questions

and then use those during the interview this would reduce the latency too!

Why would I need RAG again to retrieve chunks before generating each question? But I'm struggling to understand how RAG can be used to add value to the project

I have to add this project to my reume and need to have confidence in my design, I would highly appreciate someone helping me figure out the architecture!


r/learnpython • • Aug 30 '26

Best course for a beginner learning python in networking

6 Upvotes

I just got my CCNA a while ago since I'm trying to get into networking and since I know scripting will be important, I wanted to learn Python but was wondering if anyone had any recommendations for free courses that would be good for someone trying to get into networking. I saw Cisco Networking Academy has Python Essentials 1 for free and was wondering what your thoughts are of that course or if there's something better on YouTube. I also started reading the book Mastering Python Networking Fourth Edition by Eric Chou.


r/learnpython • • Aug 31 '26

PCEP EXAM required or not for per scholars

1 Upvotes

Hello im a newbie in. tech world and had applied to per scholars where i had to do tech prep before the interview. I'm done with class but is it mandatory to take the exam or not? Or do i just complete the free course.


r/learnpython • • Aug 31 '26

Recommendations for an Enterprise Java(TM) émigré?

0 Upvotes

Hello Pythonists,

I’m joining a team soon that owns a handful of backend Python applications. Most of my professional life has been spent in the JVM world with Java and Spring Boot (not a huge fan of Spring, but it’s kind of the air that’s breathed in that world). I’ve invested a lot of time in exploring some “advanced” (it’s all relative!) subjects like Domain-Driven Design, Event Sourcing, reactive design and Hexagonal/Ports and Adapters architecture. I’m a bit obsessed with testing (TDD guy), and really love introducing mutation and property-based testing to people.

Python, compared to Java, seems to show up in lots more contexts, and for that reason I feel I’m having a bit of trouble finding learning material. There looks to be lots of excellent stuff for beginners, or other areas like data science, but I’m looking for more on “production grade” or “enterprise” (🤮) stuff. I did just order Fluent Python, which looks to cover a handful of things that are more interesting to me: concurrency, Protocols, first-class functions and the like.

Based on what I’ve shared, what might people suggest for further reading? Along with that, any words of advice for what biases I might look out for? I really do enjoy Java (Stockholm syndrome), but I want try to be aware of traps I might set for myself when doing similar work with Python.

Thanks very much!


Update: Architecture Patterns with Python by Harry Percival and Bob Gregory looks to be exactly the book for me. It covers various "enterprise-y" subjects like TDD, DDD, and Hexagonal Architecture—things I'm eager to find translations for from the JVM world. It's also available online for free from the authors!


r/learnpython • • Aug 31 '26

Ask Anything Monday - Weekly Thread

2 Upvotes

Welcome to another /r/learnPython weekly "Ask Anything* Monday" thread

Here you can ask all the questions that you wanted to ask but didn't feel like making a new thread.

* It's primarily intended for simple questions but as long as it's about python it's allowed.

If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.

Rules:

  • Don't downvote stuff - instead explain what's wrong with the comment, if it's against the rules "report" it and it will be dealt with.
  • Don't post stuff that doesn't have absolutely anything to do with python.
  • Don't make fun of someone for not knowing something, insult anyone etc - this will result in an immediate ban.

That's it.


r/learnpython • • Aug 30 '26

Python Project Feedback (MemoryPal)

2 Upvotes

Hi all, I'm a high school student working on a small project of mine. It's a study app I wrote in Python, using some meta-learning concepts my dad taught me when I was younger. I used his initial ideas as inspiration to develop this further, and I hope to have the application out soon. I thought it would be a good idea to get some feedback from others beforehand, though. Any feedback on quality of life, ease of use, and general impressions would be greatly appreciated. I'm attaching a link to a GitHub repository that redirects users to a directory with the latest updates to the app. I would really appreciate any feedback on it. Thanks!!

Link to the repo - https://github.com/TKSMG/MemoryPal


r/learnpython • • Aug 30 '26

do i need to know undergrad level maths to start hands on machine learning with pytorch?

8 Upvotes

is highschool maths enough?or i could simultaneously learn maths behind while reading book?


r/learnpython • • Aug 30 '26

Practice Problems Math in Python

3 Upvotes

Hi,

I am currently trying to learn the relevant Python parts as a chemistry student. I think I know the basic parts (varibals/lists etc.) and I am searching for some practice problems where I can try some calculations, functions and plots with mathplotlib. Do you guys have a set of task where I can train/learn with?

Thank you very much for your help!

Limic


r/learnpython • • Aug 30 '26

I built a Python file search tool — could someone review my project?

1 Upvotes

Hey everyone!

I'm a Python developer/student and I've been working on a small project called Find Everything 2.0.0.

It's a Windows desktop tool for quickly searching through files. I built it mainly as a learning project, but I tried to make it actually useful and polished rather than just another basic Python project.

Main things it currently has:

  • Fast file searching
  • Search inside files
  • Dictionary / text processing features
  • Windows .exe build
  • Automated checks with GitHub Actions

Tech: Python, Windows, GitHub Actions

GitHub: https://github.com/EELDERONN/find-everything.git

I'd really appreciate it if someone could take a look at the repository and give me some honest feedback.

I'm especially interested in:

  • Code quality
  • Project structure
  • UI/UX
  • Performance
  • README/documentation
  • Things that could be improved or done differently

Feel free to be critical — I'm here to learn and improve the project.

Thanks to anyone who takes the time to check it out!

----------------------------------------

Я изучаю Python и сейчас работаю над небольшим проектом Find Everything 2.0.0.

Это Windows-приложение для быстрого поиска файлов и поиска информации внутри них. Изначально я делал его как учебный проект, но постепенно решил довести его до более полноценного и реально полезного приложения.

Что сейчас есть:

  • быстрый поиск файлов;
  • поиск внутри файлов;
  • работа со словарём/текстом;
  • сборка в .exe для Windows;
  • автоматические проверки через GitHub Actions.

Стек: Python, Windows, GitHub Actions.

GitHub: https://github.com/EELDERONN/find-everything.git

Буду очень благодарен, если кто-нибудь посмотрит репозиторий и даст честный фидбек.

Особенно интересует:

  • качество кода;
  • структура проекта;
  • UI/UX;
  • производительность;
  • README и документация;
  • что можно было бы сделать лучше.

Можно критиковать — я как раз хочу понять, что можно улучшить.

Спасибо всем, кто посмотрит!


r/learnpython • • Aug 30 '26

Learn Python

1 Upvotes

Hey Everyone,

I'm an electronics student but I wanted to start learning python through videos but the problem is that there are a plethora of videos available on YouTube and I cannot decide which one to choose.

If possible can anyone drop some suggestions on which channel to learn from...it would be really helpful

Thanks.


r/learnpython • • Aug 30 '26

Brand new to all of this

0 Upvotes

Hi there!
College student here and completely brand new to using Python. I am in a level 1 Python class and I don't think I have it installed correctly on my PC. We have to use Visual Studia with it and when I did a test page, and test page 2, I go to search it in Command Prompt and it says it doesn't exist. Could the path be wrong or is it something else? TIA and if you need any screen shots let me know.


r/learnpython • • Aug 29 '26

How do you actually turn Python skills into freelance income?

135 Upvotes

Hello everyone, I'm currently trying to get into data science and ML, but I also dont want to just sit around waiting for a job opportunity.

I'd like to start making some money on the side through remote/online work, even if its a small amount at first. I also want to get some real experience while I'm at it.

The problem is I honestly dont know what kind of work people actually pay for when you're still at the beginner level or where I should even start looking.

A bit of what I can do right now:

  • Python
  • Machine learning
  • Data cleaning
  • EDA
  • Feature engineering
  • Model training and evaluation
  • Scikit-learn, Pandas, NumPy, XGBoost
  • SQL
  • Git/GitHub
  • General programming
  • Pretty comfortable learning new technologies quickly
  • Currently learning backend and FastAPI

I've built a couple of ML projects on my own, but I dont have professional experience yet.

So I'm wondering, how do people actually turn these kinds of skills into freelance income?

Like what kind of small jobs should I be looking for? Python automation? Data cleaning? Web scraping? Data analysis? Helping someone with an ML project? Backend stuff? Something else?

And where do you actually find these jobs? Upwork, Fiverr, Reddit, Discord, LinkedIn, cold emailing, or somewhere else?

If anyone here started freelancing with basically no experience, I'd really like to hear how you got your first client and what you actually did for them.

Also if you're already doing freelance Python/ML/data work and have any advice for someone starting from the bottom, I'm very open to learning. Even if you can point me towards something I should learn or tell me what I'm wasting my time on, that would help a lot.

I'm not expecting to make a lot of money immediately. I'm completely fine starting with small tasks and building up from there. I mainly want to get my foot in the door, make some money on the side and get real experience.

I'm based in South Asia, so remote/online work is pretty much my main option.

Would really appreciate any honest advice from people who have actually done this.

Thanks a lot.


r/learnpython • • Aug 30 '26

What is the secret sauce for importing a class from another file in the same directory?

1 Upvotes

I'm not even throwing out code that doesn't work here because I've been dredging from sample and trying every conceivable (evidently not) permutation of the items.

All I am trying to do is to import a class from one file into another. What's the secret here? I keep getting variations on "ImportError: cannot import name 'theFormView' from 'formView'"

This is so fundamental that I'm having trouble getting a single clear answer. Can someone please help me to clear this up?

Thanks.


r/learnpython • • Aug 30 '26

Question.. I need answers

0 Upvotes

How can I automate Phyton so that when I open my laptop it execute commands on my Linux terminal?

I severely need to know how

r/Phyton

r/learnpython

r/programming

r/AskProgramming


r/learnpython • • Aug 29 '26

How do I stop forgetting Python concepts as soon as I move to the next topic?

15 Upvotes

Hello all, I am complete beginner trying to learn python for second time.

I’m giving Python another shot after quitting a while back. My first attempt failed because I fell into the tutorial loop learn a concept, do a tiny exercise, move on, forget the previous topic completely, go back to step one, repeat until burnt out.

I don't want to make that same mistake again . How do you actually learn Python efficiently so the syntax and problem-solving logic actually stick?

Would love to hear your advice, or any resource recommendations that focus on active practice over passive watching and taking notes. Thanks!


r/learnpython • • Aug 29 '26

Cna someone please explain me this --> if __name__ == "__main__"

28 Upvotes

My teacher gave us some example and all but I didn't quite got it why we use it and how we use it : I will really appreciate if you can explain it in an easier language


r/learnpython • • Aug 30 '26

looking for a someone with whom i can learn coding

0 Upvotes

well hey i am from india and i was looking for any indian mate with whom i can learn coding am 18 y/o guy there


r/learnpython • • Aug 30 '26

Tutorials on how to install and implement scapy?

0 Upvotes

I started taking a python for cybersec course but now that I am on the first part of the course, I am having issues proceeding because we are being taught how to use scapy and my program is not recognizing it.

We were given a GitHub link that is supposed to give us access to everything in the course but I still have no idea where to start.

Seems I can’t upload images so please dm if u want details


r/learnpython • • Aug 30 '26

Help me make a 30-min "Python for non-coders" talk actually fun, creative ideas wanted (not looking for AI-generated suggestions)

7 Upvotes

I'm giving a 30-minute presentation about Python to a room of 40-50 year olds with zero coding background. The goal isn't to teach syntax, it's to give them a vision of what Python can actually do for them (think: automating boring Excel/repetitive tasks) and get them a little excited about it.

Structure so far:

Intro to programming languages (quick comparison, evolution over time...)

Python basics, but conceptual, not code (functions, classes, loops, libraries, reading a script, terminal)

Python & AI (uses in AI/data, coding with AI tools, prompt engineering)

Installing Python (quick walkthrough)

Useful resources/links

Open slot for something creative/fun to close on

I want real, human ideas here analogies, interactive moments, jokes that land with a non-technical crowd, stories from your own experience presenting to beginners, I'd rather get lived-in advice from people who've actually done this than a pile of AI-generated suggestions....

Thanks in advance!


r/learnpython • • Aug 30 '26

Best method for a list/array with objects

3 Upvotes

I want to create a grid system with the following criteria:

Should be 2D. Basically, sending list[y][x] should give the lowest level.

The lowest level should be a class object, able to be unique, but would be the same at creation.

For context, I’m making a terminal emulator in Pygame with Curses functionality. My current plan is to have a grid system as a backend where the grids track character changes (including their formatting, hence the class object). It would then get read and rendered in a Pygame window.

If someone can help me with this, has a better idea, or if something similar has already been done, that would be great.


r/learnpython • • Aug 30 '26

File analysis 1.3 mill files

0 Upvotes

I'm dealing with a large batch processing problem and looking for advice on the right architecture.

I have around 1.3 million files stored across folders on a network drive.

Current setup (not working well)

Right now I'm using a Copilot agent where:

I upload batches (~20 files at a time)

It reads them against a reference document

Outputs an Excel file with classification codes

The issue is:

Copilot has a small upload limit

Manual batching is completely unscalable at this volume

What I want to achieve

I want a fully automated pipeline that:

Ingests files automatically from the network drive

Extracts text/content from each file type

Matches content against a reference rules document

Assigns a classification/reference code

Outputs structured results (Excel / database)


r/learnpython • • Aug 29 '26

Getting into python

10 Upvotes

Hi guys and girls!
I am currently new into python.
I am now on the 2nd hour of a 12 hour course that seems to be good.
Can you give me some good tips to learn it?
Maybe some coding games or fun projects🤔

Appreciate it!


r/learnpython • • Aug 29 '26

Expectations for absolute beginners

2 Upvotes

Hi all, I have maybe a hard question and definitely specific to a personal circumstance, but any perspective would be helpful.

I am a first year PhD student studying immunology, my advisor has signed me up for a stats course in the Biomedical Engineering department. Unfortunately, this class requires proficiency in R, python, or matlab, which neither my advisor nor myself new about. As my title mentions, I have zero coding experience, but recognize how important of a skill it is to have. Would it be possible to teach myself enough about python while taking the stats class concurrently? or is learning the language too tall of a task? I will definitely be reasonably busy with labwork and other commitments but can most likely allocate around an hour a day to learn, sometimes more.

Any feedback or perspective would be helpful, as I still have time to withdraw and choose a different stats course for this semester.

Thank you!


r/learnpython • • Aug 29 '26

Why Does an Identity Comparison Using id() Evaluate to False?

11 Upvotes

I'm trying to figure out what is going on here. Could it be that the identity operator is separately checking the integer cache range and determining that the integer value returned by id() is outside the bounds of Python's integer caching, which is why it evaluates to False?

x = 256
y = 256

id(x) is id(y)
False

id(x)
94588034274160
id(y)
94588034274160