New search function et drag and drop clean

This commit is contained in:
2025-11-10 19:40:14 +01:00
parent d969b05ead
commit cd9a96c760
42 changed files with 2164 additions and 34 deletions

View File

@ -0,0 +1,29 @@
---
title: "Automatic Tagging"
date: "10-11-2025"
last_modified: "10-11-2025:19:21"
tags: ["research", "ai", "nlp"]
---
# Automatic Tagging
## Goal
Suggest tags based on note content.
## Approaches
### Rule-based
- Keyword extraction
- TF-IDF
### ML-based
- Zero-shot classification
- Fine-tuned model
### Hybrid
- Combine both approaches
## Training Data
Use existing notes with tags as training set.

View File

@ -0,0 +1,31 @@
---
title: "Semantic Search Research"
date: "10-11-2025"
last_modified: "10-11-2025:19:21"
tags: ["research", "ai", "search"]
---
# Semantic Search
## Current Search
Keyword-based with scoring.
## Semantic Search
Use embeddings for similarity:
- OpenAI embeddings API
- Local models (sentence-transformers)
- Vector database (Pinecone, Weaviate)
## Implementation
1. Generate embeddings for all notes
2. Store in vector DB
3. Query with user search
4. Return top-k similar
## Cost Analysis
OpenAI: /tmp/generate_notes.sh.0001 per 1K tokens
Local: Free but slower

View File

@ -0,0 +1,31 @@
---
title: "Typography Research"
date: "10-11-2025"
last_modified: "10-11-2025:19:21"
tags: ["research", "design", "typography"]
---
# Typography
## Current Fonts
- System fonts for UI
- Fira Code for code
## Alternatives
### Sans-serif
- Inter
- Poppins
- Public Sans
### Monospace
- JetBrains Mono
- Cascadia Code
- Source Code Pro
## Readability
- Line height: 1.6
- Max width: 65ch
- Font size: 16px base

View File

@ -0,0 +1,29 @@
---
title: "UI Design Inspiration"
date: "10-11-2025"
last_modified: "10-11-2025:19:21"
tags: ["research", "design", "ui"]
---
# UI Inspiration
## Apps to Study
- Notion - Clean, minimal
- Obsidian - Graph view
- Bear - Beautiful typography
- Craft - Smooth animations
## Design Systems
- Material Design 3
- Apple HIG
- Tailwind components
## Colors
Current: Material Darker
Consider:
- Nord theme
- Dracula
- Catppuccin

View File

@ -0,0 +1,32 @@
---
title: "Go Performance Optimization"
date: "10-11-2025"
last_modified: "10-11-2025:19:21"
tags: ["research", "tech", "performance"]
---
# Go Performance
## Current Bottlenecks
- Full re-index on file changes
- No caching of parsed front matter
## Optimizations
### Incremental Indexing
Only re-parse changed files.
### Caching
```go
type Cache struct {
entries map[string]*CachedEntry
mu sync.RWMutex
}
```
### Profiling
```bash
go test -cpuprofile=cpu.prof
go tool pprof cpu.prof
```

View File

@ -0,0 +1,34 @@
---
title: "WebSockets for Live Updates"
date: "10-11-2025"
last_modified: "10-11-2025:19:21"
tags: ["research", "tech", "websocket"]
---
# WebSockets
## Use Cases
- Live file tree updates
- Real-time collaboration
- Presence indicators
## Libraries
- `gorilla/websocket`
- `nhooyr.io/websocket`
## Architecture
```
Client <-> WebSocket <-> Hub <-> Indexer
```
## Broadcasting
```go
type Hub struct {
clients map[*Client]bool
broadcast chan []byte
}
```