feat(B-VEC): pgvector HNSW Optimierung — ef_construction=128, m=16, ef_search=40
Check Cross-Plugin Imports / check (push) Has been cancelled

B-VEC: Migration 0118 — HNSW-Indizes mit optimierten Parametern (ef_construction=128, m=16)
- 5 Tabellen: contacts, mails, files, calendar_entries, tags
- config.py: hnsw_ef_construction, hnsw_m, hnsw_ef_search, vector_index_type Settings
- base_provider.py + search_engine.py: SET LOCAL hnsw.ef_search vor Vector-Queries

B-VEC-IVF: IVFFlat als Alternative dokumentiert (vector_index_type Setting)
B-VEC-BATCH: Batch-Embedding verifiziert (generate_embeddings_batch nutzt llm_embed())
B-VEC-TEST: Performance-Tests auf Coolify-Instanz verschoben (benötigt 10k+ Datensätze)
This commit is contained in:
Agent Zero
2026-08-13 16:28:55 +02:00
parent e9164979b5
commit 211242a807
4 changed files with 102 additions and 0 deletions
+6
View File
@@ -79,6 +79,12 @@ class Settings(BaseSettings):
# Marketplace
marketplace_server_url: str = ""
# pgvector / HNSW
hnsw_ef_construction: int = 128
hnsw_m: int = 16
hnsw_ef_search: int = 40
vector_index_type: Literal["hnsw", "ivfflat"] = "hnsw"
# Rate Limiting
rate_limit_login_max: int = 5
rate_limit_login_window: int = 900 # 15 min