Skip to Content
Bryfo Docsv0.2.1

Hybrid Search, AI Shield & 0-Credit BYOK

Structured query operators, local attachment indexing, bidirectional PII redaction, personal voice, and Bring Your Own Key.

Hybrid Search & Query Operators

Press / anywhere in the workspace to combine deterministic filters with Reciprocal Rank Fusion (k=60) across pg_trgm lexical matching and pgvector HNSW semantic similarity:

OperatorExampleMatches
from:from:alice@example.com from:"Alice Chen"Sender address or display name
to:to:finance@example.comTo or Cc recipients
subject:subject:"Q4 Forecast"Subject line substring
has:attachmenthas:attachment (files)Threads with non-inline file attachments
is:is:unread, is:read, is:starred, is:unstarredRead or starred status
after: / before:after:2026-01-01 before:2026-12-31Thread activity date window
"...""signed master services agreement"Exact multi-word phrase

Non-inline local attachments up to 2 MiB (.txt, .csv, .html, .docx, .xlsx, .pptx, .pdf) undergo pure-Go streaming text extraction (8 MiB zip-bomb guard, 4,000-character cap) so document contents are searchable automatically.

Bidirectional PII Privacy Shield

  1. Mandatory Site Baseline: Outbound AI prompts and tool outputs pass through 7 validators (EMAIL, PHONE, checksum ID_CARD, Luhn BANK_CARD, context-gated OTP, SECRET tokens/JWT/PEM/DB URIs, and IP).
  2. Personal Privacy Overlay (Settings → Personal Privacy): Add custom regex patterns (project codenames, internal IDs) and test them live in the Interactive Redaction Sandbox (POST /api/v1/privacy/try-it).
  3. Streaming Rehydration: Placeholders map to AES-256-GCM encrypted Valkey entries (privacy:sess:*) and restore seamlessly via StreamUnmasker as tokens stream back.

Personal Voice, Opt-In Pre-Drafts & 0-Credit BYOK

  • Personal Writing Style (Settings → My AI): Samples your Sent mail (>= 3 messages), strips quotes/signatures, applies mandatory PII masking, and extracts an editable tone profile.
  • Opt-In Auto Pre-Drafts: Off by default (auto_predraft_enabled = false). When enabled, prepares voice-matched replies for actionable Inbox threads strictly as unsent drafts (is_ai_predraft = true — never sent automatically).
  • Plain-English Mail Rules (Settings → Rules): Compiles natural-language prompts into validated deterministic MailRuleInput filters.
  • 0-Credit BYOK: Connect your own public HTTPS OpenAI-compatible key in Settings → My AI (KeyRing-encrypted, ForcePublicOnly: true SSRF guard, 0 platform credits charged).

On this page