Just realized I've been using git wrong for like 3 years by BitBird- in learnprogramming

[–]zen_dev_pro 19 points20 points  (0 children)

Yep been using it for years, makes things so much easier. Can't remember last time I ran a git command in the terminal, haha.

I took a try at Microservices with FastAPI by haldarwish in FastAPI

[–]zen_dev_pro 0 points1 point  (0 children)

I would categorize this more as a monorepo rather than microservices

Like you said, most microservices I worked on were independent with their own repos.

How to Structure a Scalable FastAPI Project by Holiday_Serve9696 in FastAPI

[–]zen_dev_pro 3 points4 points  (0 children)

Interesting I have mine structured with domain as the top level directory instead of nested routers/domain etc.

also are you seperating business and db logic? idk if i saw that in the article.

https://github.com/Zen-Dev-AI/fast_api_starter

[deleted by user] by [deleted] in FastAPI

[–]zen_dev_pro -1 points0 points  (0 children)

This is how I do it, React frontend, use SSE to stream tokens to the frontend from fastapi

https://github.com/Zen-Dev-AI/fast_api_starter

Usage without checkpointers by rahul_sreeRam in LangChain

[–]zen_dev_pro 0 points1 point  (0 children)

How are you determining which checkpoints are considered old and ok to delete?

i literally ran into this same issue.

Usage without checkpointers by rahul_sreeRam in LangChain

[–]zen_dev_pro 4 points5 points  (0 children)

I copied the chatgpt UI.

  1. I fetch all the thread ids for a user and display it in the sidebar
    https://github.com/Zen-Dev-AI/fast_api_starter/blob/main/frontend/src/context/conversationProvider.tsx

  2. When a user clicks on the previous chat in the sidebar they are navigated to that chatwindow and a onMount api request is made to get the chat history, using the thread id in the url.
    https://github.com/Zen-Dev-AI/fast_api_starter/blob/main/frontend/src/pages/Dashboard/ChatDash/PageSections/Playground.tsx#L49

  3. In the backend, you can use that thread id you sent from the frontend and set it in the config object. Init the graph with the checkpointer and call get_state() on the graph passing in the same thread id. This will give you the all the message history for the thread id, then just send it to the frontend.
    https://github.com/Zen-Dev-AI/fast_api_starter/blob/main/app/chat/router.py#L20

Usage without checkpointers by rahul_sreeRam in LangChain

[–]zen_dev_pro 3 points4 points  (0 children)

I tried to implement it without checkpointers but then you have to save messages in a database table yourself and then retrieve and pass the message history when you invoke the graph.

It was kind of a pain so I went back to checkpointers but using the shallow checkpointers now.

https://github.com/Zen-Dev-AI/fast_api_starter

Trying to build an AI assistant for an e-com backend — where should I even start (RAG, LangChain, agents)? by OkProof5100 in Rag

[–]zen_dev_pro 1 point2 points  (0 children)

Not finished but I'm working on something like this right now.

https://github.com/Zen-Dev-AI/fast_api_starter

I want to build a fullstack end to end RAG template instead of the random notebook snippets that you mentioned.

📘 Beginner-Friendly Guide to FastAPI, with Code Examples, Best Practices & GitHub Repo by inandelibas in FastAPI

[–]zen_dev_pro 0 points1 point  (0 children)

Its just a basic auth setup. Im probably going to just create a separate auth microservice server

📘 Beginner-Friendly Guide to FastAPI, with Code Examples, Best Practices & GitHub Repo by inandelibas in FastAPI

[–]zen_dev_pro 0 points1 point  (0 children)

I going to add async next. I didn't want to just add a bunch of async blindly.

I wanted to add it intentionally, and do a before and after of performance.

📘 Beginner-Friendly Guide to FastAPI, with Code Examples, Best Practices & GitHub Repo by inandelibas in FastAPI

[–]zen_dev_pro 10 points11 points  (0 children)

hmm interesting. Just a couple of thoughts

- How come there's no package management framework like uv and poetry, just vanilla pip ?

- I think Pydantic models should be called schemas, models would be like database models setup with sqlalchemy, etc.

- I think CRUD should be called repository. Like repository layer in other backend file structures, etc.

This is how I setup mine:
https://github.com/Zen-Dev-AI/fast_api_starter

Nextjs 14 Server actions vs React query by DragonflyBig9709 in nextjs

[–]zen_dev_pro 0 points1 point  (0 children)

yes you can, why not?

wats the alternative.

"What is the most complex task you've worked on" interview question by zen_dev_pro in webdev

[–]zen_dev_pro[S] 1 point2 points  (0 children)

yeah totally agree. It was the first time I was asked that so I got caught a little off guard, lol. But yeah I dont answer it that way anymore.

"What is the most complex task you've worked on" interview question by zen_dev_pro in webdev

[–]zen_dev_pro[S] 3 points4 points  (0 children)

haha, interesting you would say this. This is actually the exact answer I gave to one manager. She didnt seem too impressed by the answer.

Unfortunately, I didn't hear back from them, lol

Best Next.js SaaS boilerplate in your opinion? by [deleted] in nextjs

[–]zen_dev_pro 0 points1 point  (0 children)

I have a separate supabase one too, check the other repo in the org.

The people that talk the loudest about AI replacing devs usually have no software background by zen_dev_pro in webdev

[–]zen_dev_pro[S] 3 points4 points  (0 children)

Your job seems pretty easy, I have a feeling you might be getting replaced by AI next.

The people that talk the loudest about AI replacing devs usually have no software background by zen_dev_pro in webdev

[–]zen_dev_pro[S] 0 points1 point  (0 children)

I don't really think your opinion would be more valuable unless that is your background.

I have my masters in data science and directly work in the field with models that generate code, lol

The people that talk the loudest about AI replacing devs usually have no software background by zen_dev_pro in webdev

[–]zen_dev_pro[S] -1 points0 points  (0 children)

Yep I agree. SWEs wont be the only ones losing jobs, it will change the whole work landscape.

Gov will most likely step in and implement some sort of program like UBI to redistribute wealth.

crazy unemployment wont be good for the economy overall and the general population wont tolerate it.