{"id":489181,"date":"2026-07-30T11:56:57","date_gmt":"2026-07-30T11:56:57","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=489181"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2026-07-30T11:56:57","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=489181","title":{"rendered":"\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0418\u0418 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f, MiniLM-L6 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u0438: \u0441\u0442\u0440\u043e\u0438\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 RAG \u0434\u043b\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u043b\u0433\u043e \u0432\u044b\u043d\u0430\u0448\u0438\u0432\u0430\u043b\u0441\u044f \u0438, \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432, \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0414\u0436\u0435\u0439\u043d \u0420\u043e\u0431\u0435\u0440\u0442\u0441 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0435 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043e\u0433\u043e \u0432\u0435\u043a\u0430.<\/p>\n<p>\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0449\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0418\u0418 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0438\u0445 \u201c\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u043e\u0432\u201d \u043f\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435. \u041d\u043e, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430, \u043e\u043d\u0438 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0441 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0431\u043b\u0435\u0441\u0442\u044f\u0449\u0435! \u0422\u043e \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0444\u0430\u043a\u0442\u044b \u0438\u0437 \u043e\u0431\u0449\u0438\u0445 \u0437\u043d\u0430\u043d\u0438\u0439, \u0442\u043e \u0443\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u0432 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0432\u043e\u0438\u0445 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u043e\u0432.<\/p>\n<p>\u041d\u0443 \u0447\u0442\u043e, \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435: \u043f\u0438\u043b\u0438\u0442\u044c RAG \u043d\u0430 \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435. \u0410 \u0442.\u043a. \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u0440\u043f\u0443\u0441\u043e\u0432 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u0440\u0430\u0442\u044c \u0441\u044b\u0440\u044b\u0435 \u0441\u043a\u0430\u043d\u044b, \u0432\u044b\u0447\u0438\u0449\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0445 \u0432 XML, \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u044b\u0439 \u0434\u043b\u044f \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0430.<\/p>\n<p>\u041d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b. \u0421\u043e\u0437\u0434\u0430\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043b\u043e\u0433\u0430, \u043a\u0443\u0434\u0430 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u044b\u0440\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043f\u0440\u0435\u0434\u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 ChromaDB \u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0430 \u0431\u0430\u0437\u0435 Qwen2.5 + LM Studio.<\/p>\n<p>\u0417\u0430\u0447\u0435\u043c \u044f \u044d\u0442\u043e \u043f\u0438\u0448\u0443? \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0443\u0434\u0438\u0442 \u043e\u0442 \u0442\u0435\u0445, \u043a\u0442\u043e \u0433\u043b\u0443\u0431\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u043c\u0438 \u0431\u0430\u0437\u0430\u043c\u0438 \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u0432. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430:<\/p>\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430: \u043a\u0430\u043a \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u0435\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432 Chroma?<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0430: \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0435\u0437 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u043a\u0435\u043d-\u0431\u044e\u0434\u0436\u0435\u0442\u0430?<\/p>\n<p>\u0420\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0434\u0430\u0447\u0438: \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 reranker (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, cross-encoder) \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445? \u0418 \u0441 \u043a\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u044d\u0442\u0443 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e?<\/p>\n<hr\/>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u0441\u0430\u043c\u044b\u0445 \u0442\u0440\u0443\u0434\u043e\u0451\u043c\u043a\u0438\u0445 \u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u0447 &#8212; \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 txt -&gt; xml.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043a\u0430\u043d\u043e\u0432 \u0438\u043d\u043e\u0439 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043a\u0430\u0448\u0443 \u0438\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432. \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438, \u043d\u043e \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0438\u0431\u043e \u044d\u0442\u0438 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0438 (\u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430) \u043c\u043e\u0433\u0443\u0442 \u043b\u0438\u0431\u043e \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u201c\u043f\u043e\u0434\u0437\u0430\u0431\u044b\u0442\u044c\u201d, \u043b\u0438\u0431\u043e \u201c\u043d\u0430\u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c\u201d \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0438\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u044e \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430<\/h2>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0442\u043e\u0440\u0430\u044f \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0442\u0440\u0443\u0434\u043e\u0451\u043c\u043a\u0438\u0445 \u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<p>\u0418\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u0442\u0430\u043a\u043e\u0432\u0430: \u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u044b \u043d\u0430 \u0441\u043f\u0438\u043a\u0435\u0440\u043e\u0432 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u0430\u0442\u044c \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0448\u0430\u043d\u0441\u0430 \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438. \u0422\u0443\u0442 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0434\u0435\u043b\u044c \u0447\u0451\u0442\u043a\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043b\u0430 \u0447\u0435\u0439 \u0442\u0435\u043a\u0441\u0442, \u0442.\u043a. \u0432\u0430\u0436\u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0430 \u043d\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0434\u043e\u0433\u0430\u0434\u043a\u0438 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445 \u043b\u044e\u0434\u0435\u0439. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a.<\/p>\n<p>\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0432\u044b\u043c\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 (\u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043c\u043e\u0433\u0443 \u0437\u0430\u043f\u043e\u0441\u0442\u0438\u0442\u044c), \u0431\u044b\u043b\u0430 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 qwen2.5-coder-14b. \u041d\u043e (\u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430) \u0441 \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0442\u0435\u0433\u043e\u0432 \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u0441\u043c\u044b\u0441\u043b \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u043d \u043e\u0448\u0438\u0431\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u201c\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b\u201d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0441\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \u0434\u0435\u043b\u0430\u043b\u0438\u0441\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u201c\u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0438\u0442\u043a\u043e\u0439\u201d \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f xml.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;session book=\"Seth Speaks\" session_number=\"SESSION 511\" date=\"JANUARY 21, 1970\"&gt;  &lt;dialogue&gt;    &lt;utterance speaker=\"Seth\" type=\"statement\"&gt;      &lt;text&gt;Ruburt may write an introduction if he likes.&lt;\/text&gt;    &lt;\/utterance&gt;    &lt;utterance speaker=\"Seth\" type=\"delivery\"&gt;    &lt;text&gt;(Pause.)&lt;\/text&gt;&lt;\/utterance&gt;    &lt;utterance speaker=\"Seth\" type=\"chapter_start\" chapter=\"1\"&gt;      &lt;text&gt;Chapter One&lt;\/text&gt;    &lt;\/utterance&gt;  &lt;\/dialogue&gt;&lt;\/session&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 stage directions (Pause) \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f delivery \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u0445 \u0438\u0437 \u043f\u043e\u0438\u0441\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043d\u0435 \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u043b\u0438 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0443 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439.<\/p>\n<\/div>\n<\/details>\n<h2>\u0427\u0430\u043d\u043a\u0438\u043d\u0433, \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e<\/h2>\n<p>\u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0432\u0441\u044f \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u044d\u0442\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u043b\u0435\u0436\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043c\u043e\u043d\u043e\u043b\u043e\u0433\u0430\u0445 \u0430\u0432\u0442\u043e\u0440\u0430, \u0447\u0430\u043d\u043a\u0438\u043d\u0433 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0430\u043c\u0438 \u043f\u043e \u0441\u043f\u0438\u043a\u0435\u0440\u0443.<\/p>\n<p>\u0414\u043b\u044f \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0430 \u0432\u044b\u0431\u0440\u0430\u043d multilingual-e5-large.<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 all-MiniLM-L6-v2 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0441 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u0421\u0435\u0442\u0430, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044f \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0440\u0435\u0439\u0444 (OOD), \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a E5 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u0439.<\/p>\n<p>\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">import jsonfrom chromadb import Clientfrom chromadb.config import Settingsfrom sentence_transformers import SentenceTransformerinput_file = \"seth_chunks.jsonl\"db_dir = \".\/chroma_db_v3\"model = SentenceTransformer(\"C:\/SP\/Workbook\/models\/multilingual-e5-large\")client = Client(Settings(persist_directory=db_dir, is_persistent=True))collection = client.get_or_create_collection(\"seth_speaks\")chunks = []with open(input_file, \"r\", encoding=\"utf-8\") as f:    for line in f:        chunks.append(json.loads(line))texts = [\"passage: \" + c[\"text\"] for c in chunks]ids = [f\"chunk_{i}\" for i in range(len(chunks))]metadatas = [{\"session\": c[\"session\"], \"chapter\": c[\"chapter\"], \"type\": c[\"type\"]} for c in chunks]embeddings = model.encode(texts).tolist()collection.add(embeddings=embeddings, documents=texts, ids=ids, metadatas=metadatas)print(f\"Done. {len(chunks)} chunks indexed with multilingual-e5-large.\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430:<\/p>\n<p>\u041e\u0431\u043e\u0433\u0430\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430: \u043f\u0440\u0435\u0444\u0438\u043a\u0441 &#171;passage: &#187; \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u0435\u043d \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 E5 \u2014 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043a\u0430\u043a \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0442\u0435\u0440\u044f\u0435\u0442 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0443 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0430\u0431\u0437\u0430\u0446\u0435\u0432.<\/p>\n<p>\u041c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435: \u0432\u044b\u043d\u043e\u0441 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0433\u043b\u0430\u0432\u044b \u0432 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0434\u0430\u0447\u0443 SQL-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 Chroma.<\/p>\n<\/div>\n<\/details>\n<h2>Retrieval \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u00ab\u0433\u043e\u043b\u043e\u0441\u043e\u043c\u00bb \u043c\u043e\u0434\u0435\u043b\u0438<\/h2>\n<p>\u041d\u0430\u0439\u0442\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u2014 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043a\u0430\u043a \u0421\u0435\u0442, \u0441\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0446\u0438\u0442\u0430\u0442 \u0438 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">import jsonimport requestsfrom chromadb import Clientfrom chromadb.config import Settingsfrom sentence_transformers import SentenceTransformerdb_dir = \".\/chroma_db_v3\"model = SentenceTransformer(\"C:\/SP\/Workbook\/models\/multilingual-e5-large\")client = Client(Settings(persist_directory=db_dir, is_persistent=True))collection = client.get_collection(\"seth_speaks\")LMSTUDIO_URL = \"http:\/\/localhost:1234\/v1\/chat\/completions\"SYSTEM_PROMPT = \"\"\"You are Seth... You MUST answer based ONLY on the provided quotes...Always speak in Seth's voice: wise, direct, with gentle humor.Always respond in the same language as the user's question.\"\"\"while True:    query = input(\"\\nYou: \")    if query.lower() == \"exit\":        break    query_embedding = model.encode([\"query: \" + query]).tolist()    results = collection.query(query_embeddings=query_embedding, n_results=7)    context_parts = []    for doc, meta in zip(results[\"documents\"][0], results[\"metadatas\"][0]):        if meta.get(\"type\") == \"delivery\":            continue        session = meta[\"session\"]        chapter = meta.get(\"chapter\", \"-\")        context_parts.append(f\"[{session}, Ch.{chapter}]\\n{doc}\")    context = \"\\n\\n---\\n\\n\".join(context_parts)    # \u0414\u0435\u0431\u0430\u0433-\u0432\u044b\u0432\u043e\u0434 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432    print(\"\\n--- Found chunks ---\")    for i, (doc, meta) in enumerate(zip(results[\"documents\"][0], results[\"metadatas\"][0])):        if meta.get(\"type\") == \"delivery\": continue        print(f\"\\n[{i+1}] {meta['session']}, Ch.{meta.get('chapter', '-')}:\")        print(doc[:200])    print(\"--- End chunks ---\\n\")    prompt = f\"\"\"Quotes from my book (use ONLY these to answer):\\n\\n{context}\\n\\nQuestion: {query}\\n\\nAnswer as Seth...\"\"\"    response = requests.post(LMSTUDIO_URL, json={        \"messages\": [            {\"role\": \"system\", \"content\": SYSTEM_PROMPT},            {\"role\": \"user\", \"content\": prompt}        ],        \"temperature\": 0.7,        \"max_tokens\": 1024    })    data = response.json()    answer = data[\"choices\"][0][\"message\"][\"content\"]    print(f\"\\nSeth: {answer}\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f:<\/p>\n<p>\u0414\u0432\u043e\u0439\u043d\u043e\u0435 \u043e\u0431\u043e\u0433\u0430\u0449\u0435\u043d\u0438\u0435: \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u0430\u044e\u0442\u0441\u044f \u0438 \u044d\u043c\u0431\u0435\u0434\u0434\u0435\u0440\u0443 (query:), \u0438 LLM (Quotes from my book\u2026).<\/p>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0448\u0443\u043c\u0430: \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 delivery \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 &#171;\u0448\u0443\u043c\u0430&#187; \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0439 (Pause).<\/p>\n<p>\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c: \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u044f\u0437\u044b\u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u044f\u0437\u044b\u043a\u0435, \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u044b.<\/p>\n<p>\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c: \u0431\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 Found chunks \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u2014 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u044b\u0434\u0430\u0447\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0431\u0430\u0433\u0438.<\/p>\n<\/div>\n<\/details>\n<hr\/>\n<h2>\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043a \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443<\/h2>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u043e \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:<\/p>\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 Chroma: \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u0441\u0451 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u041f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u0431\u0430\u0437\u044b \u0434\u043e 10+ \u0442\u043e\u043c\u043e\u0432 \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043b\u0438 \u043f\u043e\u0438\u0441\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0448\u0443\u043c\u043d\u044b\u043c? \u0421\u0442\u043e\u0438\u0442 \u043b\u0438 \u0434\u0440\u043e\u0431\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u043f\u043e \u043a\u043d\u0438\u0433\u0430\u043c\/\u0441\u0435\u0441\u0441\u0438\u044f\u043c, \u0438\u043b\u0438 \u043e\u0434\u0438\u043d \u043c\u043e\u043d\u043e\u043b\u0438\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0437\u0430 \u0441\u0447\u0451\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f?<\/p>\n<p>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0430: \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u00ab\u0432 \u0432\u0430\u043a\u0443\u0443\u043c\u0435\u00bb. \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0447\u0430\u0442\u0430 \u0432 \u043a\u043e\u043d\u0435\u0446 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 prompt \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0436\u0440\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043e\u043a\u043d\u043e Qwen2.5-32B. \u0415\u0441\u0442\u044c \u043b\u0438 \u0441\u043c\u044b\u0441\u043b \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 \u0434\u0435\u043b\u0430\u0442\u044c Retrieval \u0443\u0436\u0435 \u043f\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c?<\/p>\n<p>\u0420\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0434\u0430\u0447\u0438: \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0451\u043c top-7 \u0438\u0437 Chroma. \u041c\u043e\u0436\u0435\u0442 \u043b\u0438 reranker (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, cross-encoder) \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0434\u0430\u0447\u0438 \u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445, \u0438\u043b\u0438 \u0434\u043b\u044f 911 \u0447\u0430\u043d\u043a\u043e\u0432 \u044d\u0442\u043e \u043f\u0440\u0435\u0436\u0434\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f?<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0445 \u0431\u0430\u0437 \u0438\u043b\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u2014 welcome!<\/p>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0440\u0438\u0434\u043c\u0438 \u0435\u0441\u0442\u044c \u043c\u0430\u043d\u0443\u0430\u043b \u043d\u0430 \u043a\u0432\u0438\u043a\u0441\u0442\u0430\u0440\u0442. \u0416\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435. [<a href=\"https:\/\/github.com\/Joseph-m-l\/seth_material_rag\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/Joseph-m-l\/seth_material_rag<\/a>]<\/p>\n<hr\/>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u043b\u043e\u0433\u043e\u043c. \u041d\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0440\u0435\u0448\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438 \u043f\u0430\u043c\u044f\u0442\u0438, \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0430\u043c \u0414\u0436\u0435\u0439\u043d \u0420\u043e\u0431\u0435\u0440\u0442\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 22 \u0433\u043b\u0430\u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0434\u0438\u0430\u043b\u043e\u0433\u0430.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1064936\/\">https:\/\/habr.com\/ru\/articles\/1064936\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u043b\u0433\u043e \u0432\u044b\u043d\u0430\u0448\u0438\u0432\u0430\u043b\u0441\u044f \u0438, \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432, \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0414\u0436\u0435\u0439\u043d \u0420\u043e\u0431\u0435\u0440\u0442\u0441 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0435 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043e\u0433\u043e \u0432\u0435\u043a\u0430.\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0449\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0418\u0418 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0438\u0445 \u201c\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u043e\u0432\u201d \u043f\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435. \u041d\u043e, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430, \u043e\u043d\u0438 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0441 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0431\u043b\u0435\u0441\u0442\u044f\u0449\u0435! \u0422\u043e \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0444\u0430\u043a\u0442\u044b \u0438\u0437 \u043e\u0431\u0449\u0438\u0445 \u0437\u043d\u0430\u043d\u0438\u0439, \u0442\u043e \u0443\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u0432 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0432\u043e\u0438\u0445 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u043e\u0432.\u041d\u0443 \u0447\u0442\u043e, \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435: \u043f\u0438\u043b\u0438\u0442\u044c RAG \u043d\u0430 \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435. \u0410 \u0442.\u043a. \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u0440\u043f\u0443\u0441\u043e\u0432 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u0440\u0430\u0442\u044c \u0441\u044b\u0440\u044b\u0435 \u0441\u043a\u0430\u043d\u044b, \u0432\u044b\u0447\u0438\u0449\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0445 \u0432 XML, \u043f\u0440\u0438\u0433\u043e\u0434\u043d\u044b\u0439 \u0434\u043b\u044f \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0430.\u041d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b. \u0421\u043e\u0437\u0434\u0430\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043b\u043e\u0433\u0430, \u043a\u0443\u0434\u0430 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u044b\u0440\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043f\u0440\u0435\u0434\u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 ChromaDB \u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0430 \u0431\u0430\u0437\u0435 Qwen2.5 + LM Studio.\u0417\u0430\u0447\u0435\u043c \u044f \u044d\u0442\u043e \u043f\u0438\u0448\u0443? \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0443\u0434\u0438\u0442 \u043e\u0442 \u0442\u0435\u0445, \u043a\u0442\u043e \u0433\u043b\u0443\u0431\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u043c\u0438 \u0431\u0430\u0437\u0430\u043c\u0438 \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u0447\u0430\u0442-\u0431\u043e\u0442\u043e\u0432. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430:\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430: \u043a\u0430\u043a \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u0435\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432 Chroma?\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0430: \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0435\u0437 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u043a\u0435\u043d-\u0431\u044e\u0434\u0436\u0435\u0442\u0430?\u0420\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0434\u0430\u0447\u0438: \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 reranker (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, cross-encoder) \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445? \u0418 \u0441 \u043a\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u044d\u0442\u0443 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e?\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u041f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u0441\u0430\u043c\u044b\u0445 \u0442\u0440\u0443\u0434\u043e\u0451\u043c\u043a\u0438\u0445 \u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u0447 &#8212; \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 txt -&gt; xml.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441\u043a\u0430\u043d\u043e\u0432 \u0438\u043d\u043e\u0439 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043a\u0430\u0448\u0443 \u0438\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432. \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438, \u043d\u043e \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0438\u0431\u043e \u044d\u0442\u0438 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0438 (\u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430) \u043c\u043e\u0433\u0443\u0442 \u043b\u0438\u0431\u043e \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u201c\u043f\u043e\u0434\u0437\u0430\u0431\u044b\u0442\u044c\u201d, \u043b\u0438\u0431\u043e \u201c\u043d\u0430\u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c\u201d \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0438\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u044e \u0440\u0430\u0431\u043e\u0442\u0443.\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0442\u043e\u0440\u0430\u044f \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0442\u0440\u0443\u0434\u043e\u0451\u043c\u043a\u0438\u0445 \u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u0447.\u0418\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u0442\u0430\u043a\u043e\u0432\u0430: \u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u044b \u043d\u0430 \u0441\u043f\u0438\u043a\u0435\u0440\u043e\u0432 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u0430\u0442\u044c \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0448\u0430\u043d\u0441\u0430 \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438. \u0422\u0443\u0442 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0434\u0435\u043b\u044c \u0447\u0451\u0442\u043a\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043b\u0430 \u0447\u0435\u0439 \u0442\u0435\u043a\u0441\u0442, \u0442.\u043a. \u0432\u0430\u0436\u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0430 \u043d\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0434\u043e\u0433\u0430\u0434\u043a\u0438 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445 \u043b\u044e\u0434\u0435\u0439. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a.\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0432\u044b\u043c\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430 (\u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043c\u043e\u0433\u0443 \u0437\u0430\u043f\u043e\u0441\u0442\u0438\u0442\u044c), \u0431\u044b\u043b\u0430 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 qwen2.5-coder-14b. \u041d\u043e (\u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430) \u0441 \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0442\u0435\u0433\u043e\u0432 \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u0441\u043c\u044b\u0441\u043b \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u043d \u043e\u0448\u0438\u0431\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u201c\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b\u201d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0441\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \u0434\u0435\u043b\u0430\u043b\u0438\u0441\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441 \u201c\u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0438\u0442\u043a\u043e\u0439\u201d \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f xml.\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b:\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&lt;?xml version=&#187;1.0&#8243; encoding=&#187;UTF-8&#8243;?&gt;&lt;session book=&#187;Seth Speaks&#187; session_number=&#187;SESSION 511&#8243; date=&#187;JANUARY 21, 1970&#8243;&gt;  &lt;dialogue&gt;    &lt;utterance speaker=&#187;Seth&#187; type=&#187;statement&#187;&gt;      &lt;text&gt;Ruburt may write an introduction if he likes.&lt;\/text&gt;    &lt;\/utterance&gt;    &lt;utterance speaker=&#187;Seth&#187; type=&#187;delivery&#187;&gt;    &lt;text&gt;(Pause.)&lt;\/text&gt;&lt;\/utterance&gt;    &lt;utterance speaker=&#187;Seth&#187; type=&#187;chapter_start&#187; chapter=&#187;1&#8243;&gt;      &lt;text&gt;Chapter One&lt;\/text&gt;    &lt;\/utterance&gt;  &lt;\/dialogue&gt;&lt;\/session&gt;\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 stage directions (Pause) \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f delivery \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u0445 \u0438\u0437 \u043f\u043e\u0438\u0441\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043d\u0435 \u0440\u0430\u0437\u043c\u044b\u0432\u0430\u043b\u0438 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0443 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439.\u0427\u0430\u043d\u043a\u0438\u043d\u0433, \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e\u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0432\u0441\u044f \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u044d\u0442\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u043b\u0435\u0436\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043c\u043e\u043d\u043e\u043b\u043e\u0433\u0430\u0445 \u0430\u0432\u0442\u043e\u0440\u0430, \u0447\u0430\u043d\u043a\u0438\u043d\u0433 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0430\u043c\u0438 \u043f\u043e \u0441\u043f\u0438\u043a\u0435\u0440\u0443.\u0414\u043b\u044f \u044d\u043c\u0431\u0435\u0434\u0434\u0438\u043d\u0433\u0430 \u0432\u044b\u0431\u0440\u0430\u043d multilingual-e5-large.\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 all-MiniLM-L6-v2 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0441 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u0421\u0435\u0442\u0430, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044f \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0440\u0435\u0439\u0444 (OOD), \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a E5 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u0439.\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438:\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442import jsonfrom chromadb import Clientfrom chromadb.config import Settingsfrom sentence_transformers import SentenceTransformerinput_file = &#171;seth_chunks.jsonl&#187;db_dir = &#171;.\/chroma_db_v3&#8243;model = SentenceTransformer(&#171;C:\/SP\/Workbook\/models\/multilingual-e5-large&#187;)client = Client(Settings(persist_directory=db_dir, is_persistent=True))collection = client.get_or_create_collection(&#171;seth_speaks&#187;)chunks = []with open(input_file, &#171;r&#187;, encoding=&#187;utf-8&#8243;) as f:    for line in f:        chunks.append(json.loads(line))texts = [&#171;passage: &#187; + c[&#171;text&#187;] for c in chunks]ids = [f&#187;chunk_{i}&#187; for i in range(len(chunks))]metadatas = [{&#171;session&#187;: c[&#171;session&#187;], &#171;chapter&#187;: c[&#171;chapter&#187;], &#171;type&#187;: c[&#171;type&#187;]} for c in chunks]embeddings = model.encode(texts).tolist()collection.add(embeddings=embeddings, documents=texts, ids=ids, metadatas=metadatas)print(f&#187;Done. {len(chunks)} chunks indexed with multilingual-e5-large.&#187;)\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u044d\u0442\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430:\u041e\u0431\u043e\u0433\u0430\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430: \u043f\u0440\u0435\u0444\u0438\u043a\u0441 &#171;passage: &#187; \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u0435\u043d \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 E5 \u2014 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043a\u0430\u043a \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0442\u0435\u0440\u044f\u0435\u0442 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0443 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0430\u0431\u0437\u0430\u0446\u0435\u0432.\u041c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435: \u0432\u044b\u043d\u043e\u0441 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0433\u043b\u0430\u0432\u044b \u0432 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0434\u0430\u0447\u0443 SQL-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 Chroma.Retrieval \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u00ab\u0433\u043e\u043b\u043e\u0441\u043e\u043c\u00bb \u043c\u043e\u0434\u0435\u043b\u0438\u041d\u0430\u0439\u0442\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u2014 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043a\u0430\u043a \u0421\u0435\u0442, \u0441\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0446\u0438\u0442\u0430\u0442 \u0438 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442import jsonimport requestsfrom chromadb import Clientfrom chromadb.config import Settingsfrom sentence_transformers import SentenceTransformerdb_dir = &#171;.\/chroma_db_v3&#8243;model = SentenceTransformer(&#171;C:\/SP\/Workbook\/models\/multilingual-e5-large&#187;)client = Client(Settings(persist_directory=db_dir, is_persistent=True))collection = client.get_collection(&#171;seth_speaks&#187;)LMSTUDIO_URL = &#171;http:\/\/localhost:1234\/v1\/chat\/completions&#187;SYSTEM_PROMPT = &#171;&#187;&#187;You are Seth&#8230; You MUST answer based ONLY on the provided quotes&#8230;Always speak in Seth&#8217;s voice: wise, direct, with gentle humor.Always respond in the same language as the user&#8217;s question.&#187;&#187;&#187;while True:    query = input(&#171;\\nYou: &#171;)    if query.lower() == &#171;exit&#187;:        break    query_embedding = model.encode([&#171;query: &#187; + query]).tolist()    results = collection.query(query_embeddings=query_embedding, n_results=7)    context_parts = []    for doc, meta in zip(results[&#171;documents&#187;][0], results[&#171;metadatas&#187;][0]):        if meta.get(&#171;type&#187;) == &#171;delivery&#187;:            continue        session = meta[&#171;session&#187;]        chapter = meta.get(&#171;chapter&#187;, &#171;-&#171;)        context_parts.append(f&#187;[{session}, Ch.{chapter}]\\n{doc}&#187;)    context = &#171;\\n\\n&#8212;\\n\\n&#187;.join(context_parts)    # \u0414\u0435\u0431\u0430\u0433-\u0432\u044b\u0432\u043e\u0434 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432    print(&#171;\\n&#8212; Found chunks &#8212;&#171;)    for i, (doc, meta) in enumerate(zip(results[&#171;documents&#187;][0], results[&#171;metadatas&#187;][0])):        if meta.get(&#171;type&#187;) == &#171;delivery&#187;: continue        print(f&#187;\\n[{i+1}] {meta[&#8216;session&#8217;]}, Ch.{meta.get(&#8216;chapter&#8217;, &#8216;-&#8216;)}:&#187;)        print(doc[:200])    print(&#171;&#8212; End chunks &#8212;\\n&#187;)    prompt = f&#187;&#187;&#187;Quotes from my book (use ONLY these to answer):\\n\\n{context}\\n\\nQuestion: {query}\\n\\nAnswer as Seth&#8230;&#187;&#187;&#187;    response = requests.post(LMSTUDIO_URL, json={        &#171;messages&#187;: [            {&#171;role&#187;: &#171;system&#187;, &#171;content&#187;: SYSTEM_PROMPT},            {&#171;role&#187;: &#171;user&#187;, &#171;content&#187;: prompt}        ],        &#171;temperature&#187;: 0.7,        &#171;max_tokens&#187;: 1024    })    data = response.json()    answer = data[&#171;choices&#187;][0][&#171;message&#187;][&#171;content&#187;]    print(f&#187;\\nSeth: {answer}&#187;)\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f:\u0414\u0432\u043e\u0439\u043d\u043e\u0435 \u043e\u0431\u043e\u0433\u0430\u0449\u0435\u043d\u0438\u0435: \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u0430\u044e\u0442\u0441\u044f \u0438 \u044d\u043c\u0431\u0435\u0434\u0434\u0435\u0440\u0443 (query:), \u0438 LLM (Quotes from my book\u2026).\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0448\u0443\u043c\u0430: \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 delivery \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 &#171;\u0448\u0443\u043c\u0430&#187; \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0439 (Pause).\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c: \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u044f\u0437\u044b\u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u044f\u0437\u044b\u043a\u0435, \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u044b.\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c: \u0431\u043b\u043e\u043a \u0432\u044b\u0432\u043e\u0434\u0430 Found chunks \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u2014 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u044b\u0434\u0430\u0447\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0431\u0430\u0433\u0438.\u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043a \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u043e \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432:\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 Chroma: \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u0441\u0451 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u041f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u0431\u0430\u0437\u044b \u0434\u043e 10+ \u0442\u043e\u043c\u043e\u0432 \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043b\u0438 \u043f\u043e\u0438\u0441\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0448\u0443\u043c\u043d\u044b\u043c? \u0421\u0442\u043e\u0438\u0442 \u043b\u0438 \u0434\u0440\u043e\u0431\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u043f\u043e \u043a\u043d\u0438\u0433\u0430\u043c\/\u0441\u0435\u0441\u0441\u0438\u044f\u043c, \u0438\u043b\u0438 \u043e\u0434\u0438\u043d \u043c\u043e\u043d\u043e\u043b\u0438\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0437\u0430 \u0441\u0447\u0451\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f?\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0430: \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u00ab\u0432 \u0432\u0430\u043a\u0443\u0443\u043c\u0435\u00bb. \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0447\u0430\u0442\u0430 \u0432 \u043a\u043e\u043d\u0435\u0446 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 prompt \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0436\u0440\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043e\u043a\u043d\u043e Qwen2.5-32B. \u0415\u0441\u0442\u044c \u043b\u0438 \u0441\u043c\u044b\u0441\u043b \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438 \u0434\u0435\u043b\u0430\u0442\u044c Retrieval \u0443\u0436\u0435 \u043f\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c?\u0420\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0434\u0430\u0447\u0438: \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0451\u043c top-7 \u0438\u0437 Chroma. \u041c\u043e\u0436\u0435\u0442 \u043b\u0438 reranker (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, cross-encoder) \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0434\u0430\u0447\u0438 \u043d\u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445, \u0438\u043b\u0438 \u0434\u043b\u044f 911 \u0447\u0430\u043d\u043a\u043e\u0432 \u044d\u0442\u043e \u043f\u0440\u0435\u0436\u0434\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f?\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0445 \u0431\u0430\u0437 \u0438\u043b\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u2014 welcome!\u0412\u043d\u0443\u0442\u0440\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u0440\u0438\u0434\u043c\u0438 \u0435\u0441\u0442\u044c \u043c\u0430\u043d\u0443\u0430\u043b \u043d\u0430 \u043a\u0432\u0438\u043a\u0441\u0442\u0430\u0440\u0442. \u0416\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435. [https:\/\/github.com\/Joseph-m-l\/seth_material_rag]\u041f\u0440\u043e\u0435\u043a\u0442 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u043b\u043e\u0433\u043e\u043c. \u041d\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0440\u0435\u0448\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438 \u043f\u0430\u043c\u044f\u0442\u0438, \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0430\u043c \u0414\u0436\u0435\u0439\u043d \u0420\u043e\u0431\u0435\u0440\u0442\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 22 \u0433\u043b\u0430\u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0434\u0438\u0430\u043b\u043e\u0433\u0430.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1064936\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-489181","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/489181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=489181"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/489181\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}