New search function et drag and drop clean
This commit is contained in:
29
notes/research/ai/auto-tagging.md
Normal file
29
notes/research/ai/auto-tagging.md
Normal 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.
|
||||
31
notes/research/ai/semantic-search.md
Normal file
31
notes/research/ai/semantic-search.md
Normal 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
|
||||
31
notes/research/design/typography.md
Normal file
31
notes/research/design/typography.md
Normal 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
|
||||
29
notes/research/design/ui-inspiration.md
Normal file
29
notes/research/design/ui-inspiration.md
Normal 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
|
||||
32
notes/research/tech/go-performance.md
Normal file
32
notes/research/tech/go-performance.md
Normal 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
|
||||
```
|
||||
34
notes/research/tech/websockets.md
Normal file
34
notes/research/tech/websockets.md
Normal 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
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user