عرض عملي: بحث دلالي في مقالات مركز مساعدة Shop
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
build the semantic and hybrid search endpoint that prepares MID-067-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Create the
help_chunktable and the pgvector extension in a Flyway migration. - Embed 20 articles with the embedding model and insert vectors with the model name and content hash.
- Add
GET /help/search?q=: embed the query, run the top-5 cosine query. - Planned mistake: the table was filled with one embedding model and the query embedded with another; results look random. Fix: compare the
modelcolumn and re-embed one side. - Add the HNSW index; measure recall against the exact query and record latency and index size.
- Add
mode=hybridwith full-text plus RRF and compare on a few questions.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.