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 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

For any python professionals, can you tell if something has been coded with AI?

94 Upvotes

As the title asks, what differences (if any) do you get from an AI output vs human input. I would imagine that with most high effort AI models now they write purely pythonic code if a prompt is well written.

If you also use python in your job, how often do you use AI to write or plan your code and applications as a whole?


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

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 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

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

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 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 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.