Skip to content

slowloris-98/SageAI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌿 SAGE AI: System for Automatic Gyan Extraction

SAGE AI Chrome Extension Screenshot

A powerful voice-augmented AI assistant for developers and researchers, built for UCBerkeleyHackathon2025.
SAGE AI helps users converse and brainstorm on the content they browse online. It combines real-time web summarization, semantic memory, and natural voice interaction.


🚀 Inspiration

We set out to build an interactive tool that developers and researchers can use to talk with their own web browsing history—to reflect, analyze, or brainstorm using AI.
SAGE AI is powered by:

  • Vapi for real-time voice interaction
  • Gemini API for smart summarization
  • Pinecone for semantic vector storage and retrieval
  • Google Cloud Storage (GCS) for scalable backend data handling

✨ Features

  • 🧠 Chrome Extension — Capture and summarize webpage content with one click
  • 🔎 AI Summarization — Generate concise, meaningful summaries via Gemini API
  • 🧭 Semantic Memory — Embed summaries into Pinecone for context-aware search
  • 🎤 Voice Assistant — Interact with your saved context via voice, powered by Vapi
  • 🔗 API Integration — Send summaries to external APIs or download as .txt files

🧩 Getting Started

1️⃣ Chrome Extension

  1. Navigate to chrome://extensions/ and enable Developer mode
  2. Click Load unpacked and select the dom-extension folder
  3. Click the extension icon to extract and summarize content from any webpage

SAGE AI Chrome Extension Screenshot

2️⃣ FastAPI Vector Server

  1. Install dependencies:
pip install fastapi uvicorn pinecone-client
  1. Set API keys:
export PINECONE_API_KEY=your_pinecone_key
export GEMINI_API_KEY=your_gemini_key
  1. Run the backend server:
uvicorn main:app --reload
  1. Available API Endpoints:
  • POST /vectorize — Store a summary as a vector
  • POST /search — Search for semantically similar summaries

3️⃣ Vapi Voice Assistant

  • The Chrome extension or web app integrates with Vapi for conversational interaction
  • See popup.js or your frontend code for integration details

🔧 Example API Usage

Vectorize a summary:

curl -X POST http://localhost:8000/vectorize   -H "Content-Type: application/json"   -d '{"text": "Your summary text here"}'

Semantic search:

curl -X POST http://localhost:8000/search   -H "Content-Type: application/json"   -d '{"query": "What are the benefits of apples?"}'

🎨 Customization

  • Download summaries as .txt files or send to external APIs
  • Voice Assistant toggle available directly in the extension popup
  • Easily tweak styles in style.css to match your UI theme

🙌 Credits


📜 License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 50.9%
  • Python 29.5%
  • CSS 12.5%
  • HTML 5.6%
  • Dockerfile 1.5%