IdeaCredIdeaCred

amirshq/personal-chatbot

71

Personal AI assistant chatbot and RAG built with FastAPI, SQLAlchemy, and Hugging Face LLMs. Clean architecture, rate limiting, and vector database support.

What's novel

Personal AI assistant chatbot and RAG built with FastAPI, SQLAlchemy, and Hugging Face LLMs. Clean architecture, rate limiting, and vector database support.

Code Analysis

25 files read · 5 rounds

A personal chatbot with an agentic ReAct loop (tool-calling LLM), three-tier memory (Redis/ChromaDB/SQLite), and a complete RAG pipeline over locally-parsed PDFs (Docling → chunk → embed → Chroma → cross-encoder re-rank → generate), served via a layered FastAPI backend with rate limiting, Prometheus

Strengths

Consistent ABC+factory abstraction across every external dependency (LLM, embedder, vector store, memory) makes the system genuinely swappable and testable; the re-ranker's layered design (interface → scorer → orchestrator → policy-based fallback) and the three-tier memory with proactive semantic prefetch show real architectural thoughtfulness beyond boilerplate.

Weaknesses

Tests cover only the re-ranker orchestration (3 test files) while the chatbot, RAG pipeline, memory, and API layers are entirely untested; several bugs exist (LocalHFModel uses max_input_tokens for generation length, process_chat_message hardcodes model_used and returns None for tokens, LongTermMemory._build_id can collide on rapid calls).

Score Breakdown

Innovation
5 (25%)
Craft
62 (35%)
Traction
6 (15%)
Scope
77 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci-1
Tests+5
Polish+0
Releases+0
Has License+0
Code Quality+21
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+5
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+7
Languages+3
Subsystems+13
Bloat Penalty+0
Completeness+6
Contributors+5
Authored Files+12
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

38

Contributors

1

Files

58

Active weeks

10

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License