nooksandcrannieslgb937/ai-chatbot
๐ค Automate document indexing and enable intelligent Q&A with this real-time Telegram bot using OpenAI GPT-4 and Pinecone for enhanced user interaction.
What's novel
๐ค Automate document indexing and enable intelligent Q&A with this real-time Telegram bot using OpenAI GPT-4 and Pinecone for enhanced user interaction.
Code Analysis
19 files read ยท 4 roundsA RAG-based Telegram bot and REST API that indexes local documents (TXT, PDF, DOCX) into Pinecone vector database and answers user questions using OpenAI, with real-time file watching via watchdog.
Strengths
Clean separation of concerns with distinct service layers (knowledge, LLM, memory, vectorstore), proper use of async patterns, and a working file-watching pipeline that handles create/modify/delete events with hash-based deduplication.
Weaknesses
Critical embedding dimension mismatch (3072-dim vectors truncated to 2048) silently degrades retrieval quality, conversation memory is implemented but never actually used in the LLM prompt, and the README describes commands and features that don't exist in the code.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
6
Contributors
2
Files
52
Active weeks
3
Repository
Language
Python
Stars
1
Forks
0
License
MIT