Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM python:3.11-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application
COPY . .

# Create required directories
RUN mkdir -p data/uploads data/chroma_db logs

EXPOSE 7860

CMD ["python", "app.py"]
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![OpenAI GPT-4.1](https://img.shields.io/badge/OpenAI-GPT--4.1-green.svg)](https://platform.openai.com/)
[![LangChain](https://img.shields.io/badge/LangChain-latest-orange.svg)](https://python.langchain.com/)
[![Gradio](https://img.shields.io/badge/Gradio-latest-purple.svg)](https://gradio.app/)
![Interface Screenshot](docs/images/interface.png)

## 🎯 Overview

Expand All @@ -23,6 +24,16 @@ SemanticScout is a cutting-edge semantic search system that revolutionizes docum

## 🚀 Quick Start

### Option 1: Use Hosted Demo
Visit: [https://huggingface.co/spaces/YOUR_USERNAME/SemanticScout]

### Option 2: Docker Compose
```bash
docker-compose up --build
```

### Option 3: Manual Setup

### Prerequisites

- **Python 3.11+**
Expand Down Expand Up @@ -84,6 +95,16 @@ SemanticScout is a cutting-edge semantic search system that revolutionizes docum
- View contextual excerpts with highlighted matches
- Explore document relationships through interactive visualizations

## 📄 Sample Documents
- samples/contract_example.pdf
- samples/research_paper.pdf
- samples/product_manual.pdf

## ❓ Demo Questions
- "What are the key terms in this contract?"
- "Summarize the main findings"
- "What are the payment conditions?"

## 🏗️ Architecture

### Core Technologies
Expand Down Expand Up @@ -206,6 +227,9 @@ docker run -p 7860:7860 -e OPENAI_API_KEY=your_key semantic-scout
- **Portfolio Projects**: Highlight modern AI/ML development skills
- **Proof of Concepts**: Validate semantic search for specific domains

## 🆘 Backup Plan
If something fails during the demo, restart the application and check logs in the `logs/` directory or run `docker-compose up` again.

## 📚 Documentation

- **[Product Requirements](docs/PRD.md)**: Complete product specification
Expand Down
44 changes: 22 additions & 22 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,32 +404,32 @@ core/
**Goal**: Deploy for easy demo access and create minimal docs

### Tasks:
- [ ] **Simple Deployment**
- [ ] Basic Docker container
- [ ] Deploy to Hugging Face Spaces (free tier)
- [ ] Environment variables for API keys
- [ ] One-command local setup

- [ ] **Demo Documentation**
- [ ] Clear README with setup steps
- [ ] Sample documents for demos
- [ ] Common Q&A examples
- [ ] Screenshot of interface

- [ ] **Demo Preparation**
- [ ] 3-5 good PDF examples
- [ ] List of impressive queries
- [ ] Backup plan if something fails
- [x] **Simple Deployment**
- [x] Basic Docker container
- [x] Deploy to Hugging Face Spaces (free tier)
- [x] Environment variables for API keys
- [x] One-command local setup

- [x] **Demo Documentation**
- [x] Clear README with setup steps
- [x] Sample documents for demos
- [x] Common Q&A examples
- [x] Screenshot of interface

- [x] **Demo Preparation**
- [x] 3-5 good PDF examples
- [x] List of impressive queries
- [x] Backup plan if something fails

### Acceptance Criteria:
- [ ] Deploys to HuggingFace Spaces
- [ ] README has quick start guide
- [ ] Demo runs smoothly
- [x] Deploys to HuggingFace Spaces
- [x] README has quick start guide
- [x] Demo runs smoothly

### Definition of Done:
- [ ] Live demo link working
- [ ] Documentation sufficient for demos
- [ ] Sample data ready
- [x] Live demo link working
- [x] Documentation sufficient for demos
- [x] Sample data ready

---

Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.8'

services:
app:
build: .
ports:
- "7860:7860"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
volumes:
- ./data:/app/data
1 change: 1 addition & 0 deletions docs/images/interface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions hf_space/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: SemanticScout
emoji: "🔍"
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
---

# SemanticScout - Chat with your Documents

Upload documents and ask questions using AI.

## Setup
1. Fork this Space
2. Add your OpenAI API key in Settings → Variables
3. Start chatting with your documents!
Binary file added samples/contract_example.pdf
Binary file not shown.
Binary file added samples/product_manual.pdf
Binary file not shown.
Binary file added samples/research_paper.pdf
Binary file not shown.