From f7c780e7e6b072e7b39c2919f03c3c35c49d4f99 Mon Sep 17 00:00:00 2001 From: Talal Sharabi Date: Sun, 15 Mar 2026 01:34:09 +0400 Subject: [PATCH] Store training tip embeddings in column (attachment=False) Binary fields default to attachment storage in Odoo 19, but FAISS embedding vectors need to be loaded in bulk via direct SQL for performance. Using attachment=False stores them in the table column. Made-with: Cursor --- encoach_training/models/training_tip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoach_training/models/training_tip.py b/encoach_training/models/training_tip.py index f0b6f6f..b2cc445 100644 --- a/encoach_training/models/training_tip.py +++ b/encoach_training/models/training_tip.py @@ -24,7 +24,7 @@ class EncoachTrainingTip(models.Model): string="Category", ) content = fields.Text(required=True) - embedding = fields.Binary(string="FAISS Embedding Vector") + embedding = fields.Binary(string="FAISS Embedding Vector", attachment=False) def action_compute_embeddings(self): """Compute sentence-transformer embeddings for tips missing them."""