<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Narender Reddy</title>
    <description>The latest articles on DEV Community by Narender Reddy (@narender_reddy_0fa71a7ec8).</description>
    <link>https://dev.to/narender_reddy_0fa71a7ec8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3885670%2F03c1c066-05c3-4cd9-a6ad-6bc70e525565.jpg</url>
      <title>DEV Community: Narender Reddy</title>
      <link>https://dev.to/narender_reddy_0fa71a7ec8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/narender_reddy_0fa71a7ec8"/>
    <language>en</language>
    <item>
      <title>AI Staffing Partner</title>
      <dc:creator>Narender Reddy</dc:creator>
      <pubDate>Sat, 31 Oct 2026 11:06:25 +0000</pubDate>
      <link>https://dev.to/narender_reddy_0fa71a7ec8/ai-staffing-partner-1keg</link>
      <guid>https://dev.to/narender_reddy_0fa71a7ec8/ai-staffing-partner-1keg</guid>
      <description>&lt;p&gt;Build an AI-powered Resume and Job Description Assistant that analyzes uploaded PDFs, identifies matching and missing skills, compares experience, answers questions, and calculates candidate fit scores using document-based AI retrieval to ensure accurate, evidence-based results through a simple Streamlit interface.&lt;/p&gt;

&lt;p&gt;aiStaffingPartner is a Resume and Job Description Assistant.&lt;br&gt;
**Follow these rules:&lt;/p&gt;

&lt;p&gt;**1. Answer only the specific question asked by the user.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use only the provided resume and job-description context.&lt;/li&gt;
&lt;li&gt;Give a fit score only when the user specifically asks for:

&lt;ul&gt;
&lt;li&gt;a fit score&lt;/li&gt;
&lt;li&gt;resume match percentage&lt;/li&gt;
&lt;li&gt;candidate suitability&lt;/li&gt;
&lt;li&gt;overall fit analysis&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;For all other questions, provide only the requested information.&lt;/li&gt;
&lt;li&gt;Do not invent skills, experience, qualifications or figures.&lt;/li&gt;
&lt;li&gt;If the information is unavailable, say:
"I don't see this information in the documents."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When a fit score is requested, compute it using this exact rubric.&lt;br&gt;
Do not deviate from these categories or weights, and do not use your own&lt;br&gt;
judgment to invent a different scoring scheme:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Required skills match: 0-40 points
(award points proportionally to how many required/must-have skills in the
job description are demonstrably present in the resume)&lt;/li&gt;
&lt;li&gt;Experience / years relevance: 0-25 points
(compare years and relevance of prior roles to the job description)&lt;/li&gt;
&lt;li&gt;Education / certifications match: 0-15 points&lt;/li&gt;
&lt;li&gt;Domain / industry relevance: 0-10 points&lt;/li&gt;
&lt;li&gt;Soft skills / extras (leadership, tools, nice-to-haves): 0-10 points&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Show each sub-score explicitly, then sum them for the total (out of 100).&lt;br&gt;
This total is the Fit Score. After the rubric breakdown, provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fit score: X/100&lt;/li&gt;
&lt;li&gt;Verdict (Strong Fit / Moderate Fit / Weak Fit)&lt;/li&gt;
&lt;li&gt;Matching skills&lt;/li&gt;
&lt;li&gt;Missing skills or gaps&lt;/li&gt;
&lt;li&gt;Final recommendation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Source Code [&lt;a href="https://github.com/nboyapally/aiStaffingPartner" rel="noopener noreferrer"&gt;https://github.com/nboyapally/aiStaffingPartner&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;As developer/user, &lt;br&gt;
1.update generate "open AI API Key" using [&lt;a href="https://platform.openai.com/api-keys" rel="noopener noreferrer"&gt;https://platform.openai.com/api-keys&lt;/a&gt;] and update in ".env" file.&lt;/p&gt;

&lt;p&gt;2.Run these commands in VS Code Terminal&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;python3 -m venv venv&lt;/li&gt;
&lt;li&gt;source venv/bin/activate&lt;/li&gt;
&lt;li&gt;pip install -U streamlit langchain langchain-openai langchain-community langchain-text-splitters faiss-cpu pypdf&lt;/li&gt;
&lt;li&gt;streamlit run app.py&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;Visual Studio Code IDE:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
Visual Studio Code&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxgzlbmsfi540291bx4b1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxgzlbmsfi540291bx4b1.png" alt=" " width="800" height="446"&gt;&lt;/a&gt;&lt;br&gt;
Execute Commands&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8woi33k26on5v24igfn9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8woi33k26on5v24igfn9.png" alt=" " width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyxi63iv52b7sjwial7d0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyxi63iv52b7sjwial7d0.png" alt=" " width="800" height="317"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftev4tbd8yf0dl3wlx97k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftev4tbd8yf0dl3wlx97k.png" alt=" " width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4znh77qxk6npoph1w7uc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4znh77qxk6npoph1w7uc.png" alt=" " width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4zvhumh0gh5enmjm56ht.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4zvhumh0gh5enmjm56ht.png" alt=" " width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>streamlit</category>
      <category>python</category>
      <category>langchain</category>
    </item>
    <item>
      <title>🧅 Onion Architecture Explained Quickly</title>
      <dc:creator>Narender Reddy</dc:creator>
      <pubDate>Sat, 18 Apr 2026 07:35:24 +0000</pubDate>
      <link>https://dev.to/narender_reddy_0fa71a7ec8/onion-architecture-explained-quickly-4ccj</link>
      <guid>https://dev.to/narender_reddy_0fa71a7ec8/onion-architecture-explained-quickly-4ccj</guid>
      <description>&lt;p&gt;Modern software systems often become hard to maintain as they grow. Business logic gets mixed with UI, databases, and external services, making changes risky and expensive.&lt;br&gt;
This is where &lt;strong&gt;Onion Architecture&lt;/strong&gt; comes in.&lt;br&gt;
It helps developers build applications that are clean, testable, scalable, and easier to maintain.&lt;/p&gt;




&lt;h2&gt;
  
  
  1)   What is Onion Architecture?
&lt;/h2&gt;

&lt;p&gt;Onion Architecture is a software design pattern that organizes your application into layers, like an onion 🧅.&lt;br&gt;
The &lt;strong&gt;core business logic stays at the center&lt;/strong&gt;, while external concerns such as databases, APIs, and UI remain in outer layers.&lt;br&gt;
&lt;strong&gt;Core Goal&lt;/strong&gt;&lt;br&gt;
• Separation of concerns &lt;br&gt;
• Loose coupling &lt;br&gt;
• Dependency inversion &lt;br&gt;
• Clean maintainable code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqrs1oaiy0wkmkt0korq4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqrs1oaiy0wkmkt0korq4.png" alt=" " width="800" height="486"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The core idea:&lt;/strong&gt;&lt;br&gt;
Keep business rules independent from:&lt;br&gt;
• Database &lt;br&gt;
• UI &lt;br&gt;
• Frameworks &lt;br&gt;
• External APIs &lt;br&gt;
That means your business logic can survive even if technology changes.&lt;/p&gt;




&lt;h2&gt;
  
  
  2.🧱 Layers of Onion Architecture
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Domain Layer (Core) &lt;/li&gt;
&lt;li&gt; Application Layer &lt;/li&gt;
&lt;li&gt; Infrastructure Layer &lt;/li&gt;
&lt;li&gt; Presentation Layer (API/UI)
And in pictorial representation as below.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdb6m10m7g0zvrrrjwe2j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdb6m10m7g0zvrrrjwe2j.png" alt=" " width="444" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  a.   🧠 Domain Model (Core)
&lt;/h2&gt;

&lt;p&gt;This is the &lt;strong&gt;heart of the application.&lt;/strong&gt;&lt;br&gt;
Contains:&lt;br&gt;
• Business entities (e.g., Order, Customer)&lt;br&gt;
• Core business rules&lt;br&gt;
• Domain logic&lt;br&gt;
• Interfaces&lt;br&gt;
• Value Objects&lt;br&gt;
• Business Rules&lt;br&gt;
✔ No dependency on database, UI, or frameworks&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;b. 📦 Application Services Layer&lt;/strong&gt;&lt;br&gt;
Acts as a bridge between UI and domain.&lt;br&gt;
Responsibilities:&lt;br&gt;
• Use cases (business workflows)&lt;br&gt;
• Coordinating domain objects&lt;br&gt;
• Calling repositories&lt;br&gt;
Contains&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Services &lt;/li&gt;
&lt;li&gt; DTOs &lt;/li&gt;
&lt;li&gt; Interfaces &lt;/li&gt;
&lt;li&gt; Use Cases
_________________________________&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;c. 🌐 Infrastructure Layer&lt;/strong&gt;&lt;br&gt;
Handles external concerns:&lt;br&gt;
• Database&lt;br&gt;
• APIs&lt;br&gt;
• File systems&lt;br&gt;
Contains:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Entity Framework Core &lt;/li&gt;
&lt;li&gt; Repository Implementations &lt;/li&gt;
&lt;li&gt; External Services&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;strong&gt;d. 🖥️ Presentation Layer (UI)&lt;/strong&gt;&lt;br&gt;
This is what users interact with:&lt;br&gt;
• Web APIs&lt;br&gt;
• MVC Controllers&lt;br&gt;
• Frontend apps&lt;br&gt;
• Contains:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; ASP.NET Core Web API &lt;/li&gt;
&lt;li&gt; Controllers &lt;/li&gt;
&lt;li&gt; UI&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  3.🔄 Dependency Rule (Golden Rule)
&lt;/h2&gt;

&lt;p&gt;The golden rule of Onion Architecture:&lt;br&gt;
Dependencies always point inward&lt;br&gt;
• Outer layers depend on inner layers&lt;br&gt;
• Inner layers NEVER depend on outer layers&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Presentation → Infrastructure → Application → Domain&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4.💡 Why Use Onion Architecture?
&lt;/h2&gt;

&lt;p&gt;✅ Benefits&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Separation of Concerns
• Business logic is clean and independent&lt;/li&gt;
&lt;li&gt;Testability
• You can test domain logic without database or UI&lt;/li&gt;
&lt;li&gt;Flexibility
• Easily swap database, UI, or frameworks&lt;/li&gt;
&lt;li&gt;Maintainability
• Changes in one layer don’t break others
________________________________________&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  5.🏁 When Should You Use It?
&lt;/h2&gt;

&lt;p&gt;Use Onion Architecture when:&lt;br&gt;
• Building enterprise applications&lt;br&gt;
• Long-term maintainability is important&lt;br&gt;
• Multiple teams work on the system&lt;br&gt;
Avoid it when:&lt;br&gt;
• Small/simple apps&lt;br&gt;
• Quick prototypes&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Solution Structure:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ljoqcampwuw3n25skjo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ljoqcampwuw3n25skjo.png" alt=" " width="285" height="276"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sample source code @&lt;a href="https://github.com/nrboyapally/OnionArchitecture" rel="noopener noreferrer"&gt;https://github.com/nrboyapally/OnionArchitecture&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. 🛠️ Common Design Patterns Used
&lt;/h2&gt;

&lt;p&gt;• &lt;strong&gt;Dependency Inversion Principle (DIP)&lt;/strong&gt;:The foundation of Onion Architecture. It ensures that high-level modules (the Core) do not depend on low-level modules (Infrastructure) . Instead, both depend on abstractions (interfaces) defined in the inner layers. &lt;br&gt;
• &lt;strong&gt;Dependency Injection (DI):&lt;/strong&gt; Used to provide concrete implementations of interfaces at runtime. In C#, this is typically configured in the Startup.cs or Program.cs file to inject services and repositories into controllers.&lt;br&gt;
Example:&lt;br&gt;
o   builder.Services.AddScoped();&lt;br&gt;
o   builder.Services.AddScoped(); &lt;br&gt;
• &lt;strong&gt;Repository Pattern:&lt;/strong&gt; Creates an abstraction between the domain and the data access layer. It treats data as an in-memory collection, allowing the business logic to remain agnostic of the underlying database technology. &lt;br&gt;
Example:&lt;br&gt;
public interface IProductRepository&lt;br&gt;
{&lt;br&gt;
    Task&amp;gt; GetAll();&lt;br&gt;
}&lt;br&gt;
• &lt;strong&gt;Service Pattern:&lt;/strong&gt; Organizes business logic into distinct services. A Service Layer sits between the UI and Repository layers , holding business rules and coordinating tasks. &lt;/p&gt;

&lt;h2&gt;
  
  
  Domain &amp;amp; Data Patterns
&lt;/h2&gt;

&lt;p&gt;• &lt;strong&gt;Domain-Driven Design (DDD) Patterns:&lt;/strong&gt; Onion Architecture is heavily influenced by DDD. Key patterns include Entities (objects with unique identity), Value Objects (immutable objects without identity), and Domain Services&lt;br&gt;&lt;br&gt;
• &lt;strong&gt;Data Transfer Object (DTO):&lt;/strong&gt; Used to pass data between layers (e.g., from the Application layer to the Presentation layer) without exposing internal domain entities directly to the external world. &lt;br&gt;
• &lt;strong&gt;Unit of Work:&lt;/strong&gt; Often used alongside the Repository pattern to group multiple data operations into a single transaction, ensuring data integrity across different repositories. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advanced &amp;amp; Behavioural Patterns&lt;/strong&gt;&lt;br&gt;
• &lt;strong&gt;CQRS (Command Query Responsibility Segregation):&lt;/strong&gt; Frequently combined with Onion Architecture to separate read operations (Queries) from write operations (Commands), often using the Mediator Pattern (via libraries like MediatR). &lt;br&gt;
• &lt;strong&gt;Abstract Factory Pattern:&lt;/strong&gt; Sometimes used to dynamically create instances of repositories or services, further decoupling the application from specific implementations. &lt;br&gt;
• &lt;strong&gt;Adapter Pattern:&lt;/strong&gt; The infrastructure layer essentially acts as a set of adapters that convert external technical details (like SQL or Web APIs) into formats the internal Core can understand. &lt;/p&gt;

</description>
      <category>onionarchitecture</category>
      <category>designpatterns</category>
      <category>dependencyinversion</category>
      <category>netcore</category>
    </item>
  </channel>
</rss>
