Welcome to Jake Cosme's personal AI chatbot! This RAG (Retrieval-Augmented Generation) chatbot is trained on "The Recipe" - Jake's inspiring life story and journey. Ask questions about Jake's experiences, insights, and wisdom.
This is Jake Cosme's Personal RAG Chatbot trained on "The Recipe" - his life story book.
RAG = Retrieval-Augmented Generation
- Retrieval: Find relevant information from Jake's life story
- Augmented: Combine that information with AI knowledge
- Generation: Create helpful answers about Jake's journey and insights
Think of it like having a conversation with Jake himself about his experiences, challenges, and the wisdom he's gained along the way!
- What it does: Complete RAG chatbot you can chat with
- What you'll learn: How AI retrieves and uses information
- Try it:
python3 simple_rag_chatbot.py
- What it does: Reads and processes your documents
- What you'll learn: How AI "understands" text
- Features: Handles PDF, TXT, and other text files
- What it contains: "The Recipe" - Jake Cosme's life story book and other documents
- What you'll learn: How Jake's experiences and insights are processed for AI conversations
- What it does: Lists all the AI libraries we need
- Install with:
pip install -r requirements.txt
Don't want to pay for OpenAI? Use our completely free version!
pip3 install -r requirements.txt
python3 free_rag_chatbot.py
Free Version Features:
- ✅ Completely free - no API keys needed
- ✅ Runs entirely on your computer
- ✅ Uses open-source sentence-transformers
- ✅ Same document processing capabilities
- ✅ Vector search and retrieval
Want smarter AI responses? Check out UPGRADE_GUIDE.md
for free AI model options like Ollama and Hugging Face!
You can easily add your own documents to the chatbot:
python3 free_rag_chatbot.py
# Then type: upload /path/to/your/document.pdf
python3 upload_document.py /path/to/your/document.pdf
python3 free_rag_chatbot.py
cp /path/to/your/document.pdf sample_documents/
python3 free_rag_chatbot.py
Supported file formats: PDF, TXT, DOCX Large files: The system handles large documents (100+ pages) by automatically chunking them for optimal search.
For the most advanced AI responses, use the OpenAI version:
pip3 install -r requirements.txt
pip3 install openai
- Get an API key from OpenAI (openai.com)
- Create a
.env
file in this folder - Add:
OPENAI_API_KEY=your_key_here
- Put any text files or PDFs in the
sample_documents/
folder - The chatbot will learn from these documents
python3 simple_rag_chatbot.py
- Document Processing: Your documents are split into chunks
- Embedding Creation: Each chunk gets a "fingerprint" (vector)
- Vector Storage: All fingerprints are stored in a database
- Question Processing: Your question gets its own fingerprint
- Similarity Search: Find document chunks similar to your question
- LLM Generation: GPT uses the relevant chunks to answer
- Smart Document Search: Finds the most relevant information
- Context-Aware Answers: Uses your specific documents
- Multiple File Types: Works with PDF, TXT, DOCX files
- Conversation Memory: Remembers your chat history
- Source Citations: Shows which documents were used
- "Tell me about Jake's journey"
- "What is The Recipe about?"
- "What challenges did Jake face?"
- "What are Jake's key insights about life?"
- "What lessons can I learn from Jake's experiences?"
- "How did Jake overcome obstacles in his life?"
- "What advice would Jake give about pursuing dreams?"
- "What are the main themes in The Recipe?"
- Personal AI Assistant: Chat with an AI trained on Jake's life story
- Semantic Search: Find relevant parts of Jake's journey based on your questions
- Life Insights: Discover wisdom and lessons from Jake's experiences
- Document Processing: See how a 128-page book becomes searchable AI knowledge
- RAG Architecture: Experience the same technology used by ChatGPT and Claude
- Install Ollama: Get local LLM models (see
UPGRADE_GUIDE.md
) - Try Hugging Face models: Various free AI models
- Add more documents: PDFs, Word docs, web pages
- Create topic-specific chatbots: Focus on specific subjects
- Add a web interface
- Implement conversation memory
- Add document summarization
- Create multi-language support
- Export conversation history
Remember: You're building the same technology used by ChatGPT, Claude, and other AI assistants!
- Start with the free version:
python3 free_rag_chatbot.py
- Add your own documents: Put files in
sample_documents/
- Upgrade when ready: Check
UPGRADE_GUIDE.md
for free AI models - Experiment and learn: This is professional-level AI technology!
🚀 You're chatting with Jake Cosme's life story through cutting-edge AI technology!