r/ExperiencedDevs • • 6d ago

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones

A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.

Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.

Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.

39 Upvotes

66 comments sorted by

11

u/devsgonewild 6d ago

How do you handle environments where people don’t care about inarguably important and basic things like transactional safety, resource starvation. I’m not talking about imaginary issues either, I’m referring to issues where managers/leads/seniors are perfectly ok with losing data and inconsistency when it is definitely not acceptable. 

This has definitely gotten worse with AI but I’ve experienced this before and it hasn’t gone well in the past (horrible oncall). I don’t think I’ve ever found a way to manage it other than leaving said environments.

I’ve come to accept that I can’t control others decisions but I know for a fact this will end up with a late night page at some point and me and my team will be owning the problem. I’m wondering how others handle this situation?

10

u/polypolip 5d ago

If the business people don't care about it and if the senior technical people don't care about it then it's a battle you're unlikely to win. You need at least some support from the top to bring the topic to the table.

You could try and do a spreadsheet with the costs of the bad code. On call hours paid, lost customers if any, etc. based on the incidents during a month or two. Then use the proper channels to present it to people responsible for project budget. If the cost is high enough maybe someone starts caring.

1

u/devsgonewild 3d ago

Thanks for taking the time to reply.

Usually I would do this but I’m on a project with  an unreasonably long dev cycle and all of my team’s proof is in pre-prod, so no one is experiencing real pain yet. once we are in production we’re probably going to experience many issues at which point this technique will definitely work, but I can’t imagine it being good for the business or my team’s wellbeing

2

u/chocolateAbuser 5d ago

where did the "guilt" go in that oncall, were there managers present? were there a mail for the involved people or a meeting about it?

1

u/codeprimate 5d ago

Document your findings and make your research a part of the record.

There is context poisoning and there is context enrichment. Maybe the agents will listen to the voice of reason if leadership doesn't.

1

u/naxhh 5d ago

to protect yourself you leave papertrail of those issues and get the lead / manager to sign on them. when the page comes you deal with it and make clear the data loss, then show your papertrail.

if it's sistematic at all levels you can't fix that so maybe time to look for a better place

1

u/jkingsbery Principal Software Engineer 3d ago

  /leads/seniors are perfectly ok with losing data

Why are they ok with it? Usually, this sort of thing starts with requirements and tradeoffs. There's a chance they are taking shortcuts, but there's also a chance they have context you don't on customer needs. 

If not losing any data really is a customer requirement, than this isn't a technical debate, point back to the requirements.

1

u/devsgonewild 3d ago

  If not losing any data really is a customer requirement, than this isn't a technical debate, point back to the requirements.

I thought this went without saying, but yes it is a requirement. That’s exactly where I’m at right now, pointing to requirements, pointing to implementation/platform gaps, proposing solutions but those are being shot down by dismissing the risk. I’m not alone in this on my team, so it is especially odd.

Thanks for taking the time to reply, do appreciate the advice

6

u/Azath127 5d ago

How are you using AI to learn better? And not degrade your current skills? How do you handle memorization and deep understanding?

6

u/MichaelTheProgrammer Software Engineer - 15 YOE 5d ago

The frustrating truth is that the answer to this is the opposite of what employers are requiring:

- To learn better, write code by hand, but have the AI review it. It will find so many issues and be such a great teacher for you

- What most jobs are requiring is that you don't write at all, either read or test. This causes the deskilling issue that is occurring, and you eventually become a "meat proxy" where you become very replaceable

- If you have enough control over your job, you might be able to push for a middle ground. I've been handwriting high level architectural overviews and then having AI review that. It keeps me in control and growing rather than being just a meat proxy.

3

u/Careful_Ad_9077 5d ago

Also about doing the opposite. Instead of giving the ai more context , strip the context as much as you can from the problem, so it's more of a theoretical/generic problem . You get better replies and better understanding, but it requires more human effort.

2

u/naxhh 5d ago

there is some degradation inevitably from coding less.

consider yourself a lead of the project. use Ai to think around plans and actions bit ensure you are on control. of you don't understand something drill the Ai on why ask question and clarification.

keep reviewing code and asking questions and proposing alternatives etc...

2

u/Maertu 3d ago

If you are. looking into some empirical data, there's a small study from Anthropic where devs had to solve coding tasks with a library they didn't know, with or without AI, then took a quiz on it without AI. The ones who asked "why" questions or had it explain the code it wrote did about as well as the no-AI group. The ones who just copy-pasted or let it do the debugging learned way less.

1

u/Outside-Storage-1523 Software Engineer 5d ago

Can't say this is good for everyone, but this is how I learn. I limit AI to discussion, making up plans, and checking whether my TO-DOs are actionable. I very rarely send code to AI -- perhaps only when I have exhausted other venues and have thought about the whole thing for a few days.

Note that I'm learning some low-level stuffs just for fun, not for career, so maybe this is not for you.

1

u/RedLetterDay Sr. Architect 5d ago

The skills that get you to X title won't be the skills that get you to Y title. Fundamentally, you will gain some skills in some areas, and some stuff will atrophy. That's life. Think of your own school for example - do you still remember how to do calculus? Sure you could probably look it up and remember the details pretty quickly, but enough to ace the tests right off the bat? Probably not, right?

I use AI like an assistant or another employee. You hand tasks off to another employee and they will come back with questions, comments and sometimes weird shit. Review, modify, educate and let them execute. Didn't really change much, except for speed.

5

u/Incompl Senior Software Engineer 5d ago

I feel like I'm now going down the rabbit hole of trying to understand the new meta of figuring out how to distribute work properly amongst agents, how to setup skills, how to setup documentation that's easier for people to read. Completely exhausting having to retrain myself completely on the fly.

9

u/YO0110 6d ago

What skills are most relevant today? Context, I’m not a beginner, I work for a big company, but I’m always feeling that my skills are stale even though I keep refining my flow. I think I know my gaps but wonder what you think is important and helps you to be successful in what you do. Thank you 

9

u/normalmighty 6d ago

For most devs, it's the soft skills you really need to work on. The more nebulous aspects of keeping a curiosity into complex topics and learning to communicate those topics to people at a wide range of skill levels, without making them feel insulted by dumbing it down or making their eyes glaze over from the complexity.

7

u/F0tNMC Software Architect 6d ago

The ability to understand systems and communicating that understanding is the core of being a technical leader.

19

u/good_name_0 6d ago

Emotional intelligence will set you apart from 98% of other developers

5

u/chuch1234 6d ago

Communication is always important.

5

u/RedLetterDay Sr. Architect 5d ago

Being the sort of person you wanna grab drinks with.

9

u/adambkaplan Software Architect 6d ago

- Write clearly and concisely
- Problem solver mindset: ability to break a bigger problem down into smaller, discrete chunks.
- Multitasking: ability to have more than one workstream running at the same time and context switch in between them.

3

u/arlitsa 6d ago

Curiosity and taking initiative is the biggest winning trait I look for.
Not being afraid of trying something out and potentially failing.
Being creative in an effort to get things done, maybe?

Everything else comes with time.

3

u/EuanReid Technical Director 6d ago

Ability and willingness to learn is evergreen. When the next cloud/map reduce/containers/llm/{insert fresh paradigm of your choice} appears that changes how the game is played it's the people who spot the potential early, learn it, and can make effective use of it (or, conversely, justify not using it against a hype cycle) who are most valuable.

3

u/DocumentOk7579 Software Engineer 6d ago

Depends on the role like some people become manger and some individual contributer. What isn't important is coding details like simple algorithms as Claude does that better.

-1

u/RandomPantsAppear Staff Engineer | 20 YOE | Ex Founder | Startups 6d ago

Systems design is huge.

I would also say “incorporating AI into products” - not LLM chatbots, but know when and how to add AI in a way that improves the product.

0

u/pragmaticSloth Backend Engineer 6+ years 6d ago

In my opinion depends on your role. If you are asking me junior to senior. The quantity of slop code that goes to prod on big companies is over 9000 thousand. So, knowing how to do code reviews becomes a great commodity to have. Shielding your services from rogue MRs from other teams, full of non-sense became a priority. When you think of it, AI code with tests that you did not validate, become legacy code real fast.

Also, learn when to use AI. Meaning, if you must use it to generate code, you can do a iterative approach to it. Dividing your MRs in small ones, guaranteeing that they will be review fast and you know what is in the MR. You can start this approach by matching Jira ticket with MRs. 1:1.

Above senior, it is still product based development, pushing you own initiatives, knowing how influence people, politics, etc etc etc. Most people will be rewarded by results and not by good code in this step.

4

u/DBL12s 3d ago edited 3d ago

Hey guys, Junior at a pretty large company. Between the time I started and now, my companies culture has gone downhill rapidly. We went from actually discussing architecture decisions and tradeoffs to just feeding everything to an AI.

During this time, management has pushed AI first leading to a ton of developers outsourcing their brains. This has led to some developers taking on the mental slack of other engineers prompting AI mindlessly. During a multi team prod issue, other teams could not answer a single thing of how there code interacts with ours, they just kept on prompting the AI while I repeatedly corrected them on the issue at hand.

I’ve asked multiple people ‘why’ or ‘how’ to very simple asks; they then go and prompt the AI and make me read it for them, not so much as reading out what their chatbot said themselves. I feel like I am asking for the bare minimum when I am asked a question. When people ask anything, they become difficult to work with. It is making me wayyy too afraid to speak up because I will get fired, especially in this job market.

Management is also rewarding people who make nonsense AI demos and kiss ass while laying off people who are doing actual feature work. In turn, some have to pick up the slack while others get to prompt their chatbots with nonsense that will never go into prod.

Does this get any better at other companies? Are all companies operating like this?
I feel like I am completely losing my mind dealing with people genuinely have no idea what is going on. In turn, I and some others have to work long hours to keep things running. I seriously do not know how long I can keep up with correcting AI hallucinations and not getting on managements bad side for criticizing the AI. It has gotten to the point where no one will listen to you if you don’t say AI said so even if you have understanding of the problem at hand.

Literally any advice would be appreciated, thank you.

1

u/Strange-Gazelle-3207 3d ago

I think it's harder to get fired at a larger company and the mediocre devs are able to slide by. You have to remember, for a majority of people, it's just a job and their just trying to survive and play the game. If you're working long hours, I'd start looking for a new job, unless you're putting pressure on yourself to work those hours, and in that case then don't work as long but focus on becoming a better engineer and having your projects work flawlessly. I personally never liked working in corporate, too much politics and a lot of BS. That being said, a lot of it is company and team dependent.

2

u/DBL12s 2d ago

Yeah, it might just be the company. I am on top of my work for the most part, the extra time comes mostly from prod issues and nonsense meetings with people who really shouldn’t be touching code. I’ll try for a different company, to see if it is any better. Thanks

3

u/Smurfso 5d ago edited 5d ago

Hi everyone,

I'm currently a SWE w/ 3 YOE and have been on my current project for ~9 months.

My team has 10 devs of varying levels. Our lead recently accepted a position at another company and will be leaving soon. One of the senior devs was automatically made lead, but he doesn't want to do it for a multitude of reasons. My manager, to whom the senior dev/interim lead also reports to, expressed concerns over them being lead. Not because of competency, but because of stress/ overworking/their unwillingness to take on the role.

Today, my manager asked if I would be interested in the role. I was honestly pretty surprised, given my limited experience, and I turned it down, saying I didn't feel ready for it. I do think I do good work, and I have received unanimously positive feedback in every performance review, but I am concerned that I am simply too new to the project and am not familiar enough with the codebase to take on such a role. Again, I've only been on this project for 9 months, and I've only been working as a dev in general for 3 yrs, so my main concern is just a general lack of experience beyond being a lower-level IC. It also seems high stress, which I'm not 100% sure I'm willing to deal with.

I am now rethinking my answer. So I have the following questions for those who have been SW leads at some point:

- When you took on the role for the first time, did you feel "ready" for it? If yes, what kinda things were indicators that it made you conclude this was a good move?
- What kind of person is a SW lead role for and how can I gauge if this would be a good fit for me?
- What was your life like in terms of
WLB, dealing with management, managing devs, etc?
- What kind of things do you wish you knew beforehand?
- Any other advice you think would be helpful?

Thank you in advance!

5

u/naxhh 5d ago

go to your manager now and take the job. if it's a good relationship there's always time to walk it back if you don't fit. get also money compensation for the promotion.

I didn't felt ready but I was looking forward for it. your questions are good but make them to your manager, adapt to what he needs.

you will be a lead not a contributor. you are there to unblock and, help people move forward. make sure you become a contributor when is important and needed and that you get out when is not.

ask your manager what are the priorities, where you are more effective and what can you do to help/unblock all the time.

help your team grow. give advice and praise be ready to say no and explain why.

take it slowly and will come with the experience

1

u/Smurfso 5d ago edited 5d ago

I think I will do this. Reading the replies here and doing a bit of research/ watching interviews with lead SWEs has given clarity into what the role most likely will entail. Now I have a good feel for more specific questions I can ask my manager to better understand the role in the context of my specific project. Thank you for the comment

4

u/RedLetterDay Sr. Architect 5d ago

Take the job. Even if you don't succeed, you'll have X months of experience of knowing how the role behaves and whether or not you wanna do it in the future.

To answer your questions:

  1. Yes, I felt ready - though granted, I always wanted technical leadership roles. The indicator was that my technical leadership was incompetent and even as 'junior' I cared more about about technical/project quality than them.
  2. Someone who can read the room. As far whether you're a good fit, we don't know you well enough.
  3. Management = nothing changed, PMs & POs = opened the doors that were previously closed. Devs, significant increase in work. Even if you're not doing their work, you need to be 'aware' of what they are doing (and how). I also had not an insignificant time I had to spend managing offshore delivery.
  4. Too many to count, but primary one is that Project Design is a job of a Designer (Team Lead or Arch), not PM. I was operating under wrong assumptions and it caused a lot of strife with my PMs.
  5. At the end of the day TL is the most fulfilling job, and the one that will be the first throat to choke if the project goes bad. Help everyone, be nice. No one wants to work with "Dr. House".

1

u/Smurfso 5d ago edited 5d ago

Thank you for the insight! Everything you say makes sense. I was wondering if you could elaborate on #4, are you saying architecting is part of a lead SWE’s responsibilities? This is one area of concern I have. I don’t think I have enough experience to be able to do software architecture from scratch. I’m capable of participating in discussions, but not “originating” ideas if that makes sense. I would heavily rely on the senior engineers on my team for things like this, not sure if this is normal for a lead to do or not.

3

u/RedLetterDay Sr. Architect 5d ago

Yup, totally normal, even encouraged. Leadership != expertise. They are orthogonal skills. You, as a junior leader are expected to solicit feedback of people who have been around longer. What is happening is you're being recognized as more of a 'leader' than an engineer. Hell, maybe you're a good guy/gal. Maybe you're a good looking guy/gal. Maybe you're just reliable, and trustworthy. Whatever the skill is it points to the area that is no longer solely devoted to 'shipping code'. Now it has additional responsibilities for knowing/working with others soliciting input etc.

As far as project design and technical design... Well - yes, yes those ARE your responsibilities. Project Managers are NOT designers - they are managers. The only 'real' question they are responsible for is "Is this project on time?". Everything else is bullshit. HOW the project gets designed, built etc is the field of engineering.

Now, no one expects a junior lead to do everything from scratch - this is where you work up your food chain (architects), side (with your peers) and down (with folks who rely on you). Since you're young (in YOE), I'd strongly advise "first amongst equals" type mentality. Never actually say that out loud, it's hella cringe - but you are NOT the boss of the other engineers. You are just in a role that is responsible for additional responsibilities. Act accordingly.

1

u/Smurfso 4d ago

Thank you for the advice, I will make sure to keep this all in mind!

2

u/MichaelTheProgrammer Software Engineer - 15 YOE 5d ago

Take the job. I'd rather work under a caring newbie than someone not interested in the job any day. The one thing is that you may need to work with your coworkers more than a lot of leaders, but this isn't really a bad thing.

1

u/Smurfso 5d ago

I feel the same way too. FWIW the current interim lead is very good with not letting the feeling he doesn’t want to do the role permeate the team. Hes very competent, always helpful, always working hard, and knows a lot of stuff. This is just what I heard from my manager behind closed doors. But I think it it is concerning that he may burn out and/or have a breaking point, which would not be good to have as the lead. Thank you for your perspective

3

u/ratorobato 5d ago

Coming from a not so great 1 on 1, how do I "take initiative" when it comes to reaching out to other teams?

I've expressed interest in wanting to work on other aspects of our project multiple times with my manager and while he hasn't rejected the idea, I'm a bit anxious on making the first move. How do I actually commit to my part without being a nuisance?

I'm incredibly introverted, a junior dev, and most of the managers on our project are based in India while I'm in the US. I get my work done, and I'm able to speak for myself in standup but stuff like this needs to be spelled out for me I don't know where to start.

8

u/oupablo Principal Software Engineer 4d ago

In my experience, a manager saying "take initiative" means they don't know what needs worked on. The best thing you can do is to propose things that should be done. Just be sure to do it in a semi public place so that you can get credit for your ideas when they are selected.

3

u/fireheart337 5d ago

My 2 cents is there might be stress about stepping on other teams toes. If work isn’t plentiful your manager probably doesn’t want to seem like he’s poaching from the other.

I’d say try to find some work under your managers umbrella and see if there are pieces that could incorporate the other team to maybe get some exposure in their neck of the woods.

1

u/Ragnarork Senior software Engineer (14YOE) 4d ago

I'm incredibly introverted, a junior dev, and most of the managers on our project are based in India while I'm in the US

I'd suggest to take it step by step. Use text channels to propose changes / improvements asynchronously to other teams' members on cross-team topics. Unless you work in an incredibly silo'd organisation, there's bound to be such topics.

See what sort of responses you get. If you feel this is not working, discuss them with your manager. "I tried this, it led to that, was it good? How can I do better on that front?".

Your manager should help with that, if not that's more of the manager's issue rather than yours. I still encourage you to try. Communication & more generally soft skills are invaluable in the process of making software. It's good to work on them whenever you can.

3

u/explodingnuggets 3d ago

How do you guys deal with getting experience in technologies/frameworks that you don't have/can't use in your day to day work? For example, I have no Kafka experience because the area I work in doesn't require it. So how can I deal with this? Personal projects?

2

u/Strange-Gazelle-3207 3d ago

Why do you need specific kafka experience? Just curious.

1

u/explodingnuggets 1d ago

A lot of the job postings around me set it as a hard requirement.

1

u/CraftyCrooksie Software Architect 2d ago

Yeah, personal projects is the main way.

I'd also really recommend reading books. Something I learnt to do very early on in my career is whenever I met a developer who blew me away I asked them how they knew what they knew, almost everytime I was given a list of books to read.

I'm not an avid reader, but I do about an hour a week of reading technical books, it's not much but I covered most of the books I was recommended within the first few years of my career, and suddenly I was one of the Devs that people were impressed by.

For Kafka specifically, I would read Designing Data Intensive Applications. It covers the fundamentals of almost every modern web technology. By the end you should know not only what Kafka is, but what tradeoffs you're making by using it.

3

u/twerkacet 5d ago edited 5d ago

How do you deal with the novelty of your work diminishing?

I feel like I’ve gotten good enough at my work where I can sit back, put in a decent effort and know that I can handle all the problems coming my way. 

However, it feels like I’m not doing enough, and I start to feel like my skills are getting “soft”. This skill atrophy has been accelerated by AI. I feel like I need to do something radical like return to university full time or change roles to try and find those hard problems again.

My role is ever increasing in scope and responsibility, so it’s not like I’m just getting JIRA tickets all day. There is genuine progression happening, just not too much on the hard technical skills.

I imagine this phenomenon affects a lot of senior devs at some point. How do you handle it? Do you just tough it out?

5

u/downshiftdata 5d ago

Honestly, if I was closer to retirement, I'd be loving it. As it is, I have about 15 years to go. And I've never had as little idea of what the future looks like in this industry than I do today. I have no clue what it'll look like 5 years from now, let alone 15.

I don't know how far I need to pivot from my current area of expertise, or how much. But I can definitely hear the clock ticking.

2

u/codeprimate 5d ago edited 5d ago

I am expanding my experience developing software in different problem domains. I've been doing web SaaS my whole career.

AI provides the means to learn new concepts extremely quickly, and more importantly explore the best practices and footguns that impact development.

This week I am working on my deterministic rule-based music arrangement engine, and separately creating a from scratch MP3 encoder implementation along with all the measurement harnesses necessary to evaluate it. Before psychoacoustic modeling for 320kbps it's currently 7x faster than LAME and nearly transparent for most of my samples...the interesting part is creating and tuning the psychoacoustic model from first principles. Lower bitrates will be the true test. Yeah, the code is from Claude, but the point for me is learning the shape of the landscape. I haven't liked an MP3 encoder since Fraunhofer's, so this scratches an itch I've had for at least 20y and never considered even touching. If I fail to create something better, I still consider the effort worthwhile.

Just T-shaped generalist things.

2

u/RedLetterDay Sr. Architect 5d ago

Novelty? I find it my novelty has not diminished at all. In fact I have to deal with less boilerplate problems than I had to deal with 2 years ago.

I have a personal theory that the whole AI push just bumped everyone up an 'org' level. Developers now are doing Tech Lead jobs, Tech Leads are doing Arch jobs, and Archs are doing Sales/Principle/Enterprise stuff.

The type of work you do has changed, but you're still engineering - now just with something (or someone) you delegate your work to. Seems kinda natural progression, I wouldn't sweat it too much. Invest in these skills and then seek a promo.

2

u/SeaMeasurement1886 5d ago

I’m questioning what we should appreciate in today’s companies. I proposed using work hours for upskilling, but my team insisted on doing it after work. I see this as a major red flag; adding 5–10 hours of learning to a 40-hour work week leads to burnout and a work-centric life. Learning should be part of the job, not a post-work obligation.

I’m thinking of looking for other jobs, but I know this is a common industry problem. I should probably appreciate that I have job security, a good salary, and management that, while not actively helpful, at least doesn’t criticize our heavy workload

1

u/RedLetterDay Sr. Architect 5d ago

"Upskilling" should be part of your natural job flow. When you do research/prep before starting your work.

No one is going to be too keen about giving an employee 5-10 hours to fuck around with nothing to show for it. The question I'd reverse to you - how can you demonstrate that your 'study' time is valuable to your boss?

As far as company appreciation - imo:

  1. One that pays competitive salary
  2. One that values your time
  3. One whose people don't make you wanna jump into a wood chipper

1

u/SeaMeasurement1886 4d ago

Thanks for presenting this opinion, I appreciate it. I think I got used to have less pressure to rush when we had time to fuck around 2-3 days to investigate about new trends and whether we could implement any of them in our software.

Now at this company, we are forced to clean all the incoming tickets as we have tighter deadlines and I have a feeling that we miss some opportunities and we could be faster and more efficient in the long run.

I believe you are right about convincing them and demonstrating why it will be valuable to the team, I was just surprised how everyone in my team expected me to do that after work.

1

u/jkingsbery Principal Software Engineer 3d ago

It's usually a mix of the two. The outside-of-work learning is usually for things that you don't get a chance to look at in your day job, and that you find interesting in its own right. Inside work, there's things you learn in the context of a particular task ("I've never done X in Java before, let me read how this is supposed to work"). There's also attending conferences for learning, which many employers will sponsor. At larger companies, they often have internal conferences and courses. 

So I wouldn't dismiss it as all one or all the other. It's about figuring out what thing you want to learn, and how to best allocate time for it. 

1

u/So_Rusted Software Engineer 11h ago edited 11h ago

Depends how related it is to work. Research for direct task is ok on company time.

Reading something online like studying documentation or github or some blogpost usually fine. Reading something a bit in the morning or evening for 30 mins when nothing is going on is fine and you shouldnt even ask for it just do what you got to do..

Watching full on udemy tutorials or taking certificate courses that were not agreed on will usually look weird and thats the difference.

-1

u/Available_Serve_6364 2d ago

Hi all,

I'm building my first serious product alone and would really appreciate feedback from people who have shipped things like this before. I'm early (Sprint 0), so now is the cheapest time to change direction.

What it is

A web app (mobile later) for professionals who work with formal paperwork every day. The data comes from a public archive portal that holds about 14,500 official documents (decisions, records, written opinions).

Three features:

  1. Similar document search. The user types a sentence or keywords and picks filters (issuing institution, category, date, document type). They get ranked similar documents, each with a short AI summary (maybe with this AI summary, I am not sure whether this is necessary) of why it matches and a link to the original.
  2. AI assistant chat. It answers questions using only retrieved documents, always with citations and links.
  3. Drafting. The user uploads their own documents. The app finds similar archive documents and writes an outline or full draft of a formal submission, citing the sources.

Approach: RAG, not fine-tuning

Documents are chunked, embedded and stored in pgvector. Retrieval is hybrid (vector + Postgres full-text), and the retrieved documents go to an LLM through an API. Hard rule: the model may never cite a document that wasn't retrieved from our database.

Stack

  • Next.js on Vercel (Expo / React Native later)
  • Supabase: Postgres + pgvector, auth, storage, row-level security on every user table
  • One provider layer for LLMs, so I can switch between Claude and GPT with one setting. Cheap model for summaries and search, stronger model for drafting. Token and cost logging on every call
  • Queue for background jobs (Inngest or Trigger.dev, not decided)
  • Multilingual embedding model (not chosen yet)

Process

Two-week sprints. A task is done only when its test passes. One task = one branch = one PR, CI on every push. Sprint 0 goal: fetch 1 real document and save it to the database. That's done now.

Problems I hit, and what I did

  1. Getting the data. The portal has no official export. I found the JSON API the frontend uses (search, details, file download, filter lists). I also emailed the maintainers to ask for bulk access and terms of use. Meanwhile the scraper is deliberately polite: max 1 request/second, retries with backoff, resumable, upsert by id (no duplicates), and a local raw copy of everything (JSON + original PDF/DOCX).
  2. Scrape order. About 5,800 documents in the main collection, spread from 2001 to 2026, with the bulk in 2018–2023. Plan: newest year first, one year at a time. Full run is about 11,700 requests, roughly 3.3 hours.
  3. The source has no categories for the main collection. The portal has a category tree (areas → sub-areas → about 3,400 descriptors), but the main documents aren't tagged with it, so every filter shows (0). Plan: import their tree as my taxonomy and classify each document with a cheap LLM at ingest time. A type code in the metadata gives a free first-level guess.
  4. Full text is only in attached files. The API gives metadata; the text is in an anonymised PDF/DOCX per document. Text extraction comes next sprint.
  5. Dates. The API sends UTC epoch ms set to local midnight, so naive conversion puts every date one day early. I convert to the local timezone and have tests for summer and winter time.
  6. Privacy. The source's anonymisation isn't perfect: some newer titles contain full personal names. I treat titles as personal data and store only the anonymised description field. User uploads are private with RLS. Public archive data is read-only for app users, and only the scraper (service role) can write.
  7. Data model. One cases table keyed by the source id as text (the source has two id formats). It has typed columns for filters and the full raw API response as JSONB, so nothing is lost. Empty columns are ready for my own classification and the extracted text.
  8. Vendor lock-in. A single ai/provider layer; nothing calls a model SDK directly.

Where I'd love your opinion

  • Is pgvector in Supabase fine at this scale (around 15k docs, maybe 300k–500k chunks), or should I plan for a dedicated vector DB?
  • Chunking long formal documents (10–40 pages, clear sections): fixed size, by section, or hierarchical (summary + sections)?
  • Hybrid search in Postgres for a language with no built-in dictionary: is simple config + unaccent enough? How would you weight vector vs keyword scores (RRF?)
  • Embedding model recommendations for european languages, including mixed wiriting such as Latin and Cyrillic?
  • Is LLM classification at ingest reliable enough, or should I hand-label a sample and measure first?
  • How do you evaluate retrieval quality for a solo project? A small golden set of queries?
  • Monorepo (web + mobile + scraper) now, or later?
  • Anything in this plan that looks like a trap?

It would mean a lot to me if an expert could let me now what they think about this. The software should have over 10.000 users daily.

1

u/burggraf2 1d ago

Pgvector should be fine at that scale. And having the vectors right in your main database should perform very well for you.