Skip to content

GarvonGit/notebooklm-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 NotebookLM Clone

A lightweight web-based application that allows users to upload and interact with PDF documents through a chat interface powered by a local TinyLLaMA model via Ollama. Built using React (Frontend), FastAPI (Backend), and Ollama (LLM runtime).


πŸš€ Project Setup

1. Clone the Repository

git clone https://github.com/your-username/notebooklm-clone.git
cd notebooklm-clone

2. Frontend Setup

cd frontend
npm install
npm run dev

3. Backend Setup

cd ../backend
python -m venv venv
# For Windows:
venv\Scripts\activate
# For macOS/Linux:
source venv/bin/activate

pip install -r requirements.txt
uvicorn main:app --reload --port 8000

4. Start TinyLLaMA (via Ollama)

Install Ollama from: https://ollama.com

Then run:

ollama pull tinyllama
ollama run tinyllama

🌐 Deployment on Render

  • Frontend: Deploy the static build from frontend/dist
  • Backend: Deploy FastAPI server from the backend folder
  • TinyLLaMA: Must run locally or on a GPU-enabled cloud instance (Render does not support GPU inference)

πŸ“ Folder Structure

notebooklm-clone/
β”œβ”€β”€ backend/
β”‚   └── main.py
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   └── public/
β”œβ”€β”€ README.md

βœ… Features

  • Upload and view PDF documents
  • Chat with PDFs using TinyLLaMA
  • Clean UI without download/print distractions
  • Works entirely locally

⚠️ Notes

  • Ollama must be running for the chatbot to work.
  • LLM is currently supported only for local inference.

πŸ™ Push to GitHub

git init
git add .
git commit -m "Initial commit with frontend, backend, and README"
git branch -M main
git remote add origin https://github.com/your-username/notebooklm-clone.git
git push -u origin main

About

Upload PDF and find insight of it

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published