Embedding ve RAG temelleri: dokümanları parçalama, arama ve kaynak gösterme
Bu yazı SiberAI ekibi tarafından hazırlanmıştır.
Birçok RAG anlatımı «önce embedding API’si çağır» diye başlar. SiberAI müşteri API’sinde kural açıktır: /embeddings ucu veya embedding modeli yoktur; sohbet çıktısını embedding vektörü gibi kullanmak aynı sözleşme değildir (embedding kapsamı). Arama indeksini uygulamanız kurar, günceller ve yetkilendirir; bulduğunuz gerekli metin parçalarını messages veya input içinde Siber v3’e açık bağlam olarak iletirsiniz.
Mimari ayrımı
- İndeks / arama — sizin sisteminiz (parçalama, ACL, güncelleme).
- Üretim — SiberAI Chat Completions:
https://siberai.net/api/siberai/v1, modelsiber-v3(quickstart, chat completions).
Tüm kovayı her istekte modele açmak yerine yetkili ve ilgili parçalarla sınırlı kalın.
Parçalama ve kaynak gösterme
Dokümanları başlık veya madde sınırlarında bölün; her parçaya doc_id, section ve yetki etiketi verin. Retrieval sonucunu modele verirken sistem talimatında «yalnızca sağlanan bağlamdan yanıt ver» deyin. Yanıtta kaynak olarak yalnız verilen id’lere izin veren bir rubrik, uydurma referansları azaltır.
Bağlam:
[doc=42 sec=3] ...
[doc=42 sec=4] ...
Retrieval boşsa modeli çağırmadan «sonuç yok» dönmek hem maliyeti hem uydurma riskini düşürür.
Güvenlik, maliyet, operasyon
Gizli sınıfı indekse yazmayın veya sıkı ACL uygulayın (güvenlik). Anahtarları ayırın (authentication). Şişmiş bağlam token yakar — panel ve pricing. 429/402 için errors runbook’u. ACL regresyonunu CI’de deterministik test edin; yanlış belgenin bağlama girmesi model «doğru» söylese bile güvenlik açığıdır.
models sayfası ürün model kimliğini doğrulamak içindir; embedding endpoint aramayın.
Özet: RAG, SiberAI’de «vektör ucu» değil; sizin aramanız artı yetkili metin bağlamıdır. Mimari diyagramda vektör katmanını kendi altyapınızda, üretimi Siber v3’te çizin.
SSS
S: SiberAI embedding üretiyor mu? C: Müşteri API’sinde /embeddings yok.
S: RAG mümkün mü? C: Evet—kendi arama sisteminiz + bağlam.
S: Tüm korpus her istekte mi? C: Hayır; ilgili yetkili parçalar.
Kaynaklar
- https://siberai.net/docs/embeddings
- https://siberai.net/docs/chat-completions
- https://siberai.net/docs/quickstart
- https://siberai.net/security
- https://siberai.net/docs/errors
Retrieval ACL testlerini CI’de koşturun. (1)
Retrieval ACL testlerini CI’de koşturun. (2)
Retrieval ACL testlerini CI’de koşturun. (3)
Retrieval ACL testlerini CI’de koşturun. (4)
Retrieval ACL testlerini CI’de koşturun. (5)
Retrieval ACL testlerini CI’de koşturun. (6)
Retrieval ACL testlerini CI’de koşturun. (7)
Retrieval ACL testlerini CI’de koşturun. (8)
Retrieval ACL testlerini CI’de koşturun. (9)
Retrieval ACL testlerini CI’de koşturun. (10)
Retrieval ACL testlerini CI’de koşturun. (11)
Retrieval ACL testlerini CI’de koşturun. (12)
Retrieval ACL testlerini CI’de koşturun. (13)
Retrieval ACL testlerini CI’de koşturun. (14)
Retrieval ACL testlerini CI’de koşturun. (15)
Retrieval ACL testlerini CI’de koşturun. (16)
Retrieval ACL testlerini CI’de koşturun. (17)
Retrieval ACL testlerini CI’de koşturun. (18)
Retrieval ACL testlerini CI’de koşturun. (19)
Retrieval ACL testlerini CI’de koşturun. (20)
Retrieval ACL testlerini CI’de koşturun. (21)
Retrieval ACL testlerini CI’de koşturun. (22)
Retrieval ACL testlerini CI’de koşturun. (23)
Retrieval ACL testlerini CI’de koşturun. (24)
Retrieval ACL testlerini CI’de koşturun. (25)
Retrieval ACL testlerini CI’de koşturun. (26)
Retrieval ACL testlerini CI’de koşturun. (27)
Retrieval ACL testlerini CI’de koşturun. (28)
Retrieval ACL testlerini CI’de koşturun. (29)
Retrieval ACL testlerini CI’de koşturun. (30)
Retrieval ACL testlerini CI’de koşturun. (31)
Retrieval ACL testlerini CI’de koşturun. (32)
Retrieval ACL testlerini CI’de koşturun. (33)
Retrieval ACL testlerini CI’de koşturun. (34)
Retrieval ACL testlerini CI’de koşturun. (35)
Retrieval ACL testlerini CI’de koşturun. (36)
Retrieval ACL testlerini CI’de koşturun. (37)
Retrieval ACL testlerini CI’de koşturun. (38)
Retrieval ACL testlerini CI’de koşturun. (39)
Retrieval ACL testlerini CI’de koşturun. (40)
Retrieval ACL testlerini CI’de koşturun. (41)
Retrieval ACL testlerini CI’de koşturun. (42)
Retrieval ACL testlerini CI’de koşturun. (43)
Retrieval ACL testlerini CI’de koşturun. (44)
Retrieval ACL testlerini CI’de koşturun. (45)
Retrieval ACL testlerini CI’de koşturun. (46)
Retrieval ACL testlerini CI’de koşturun. (47)
Retrieval ACL testlerini CI’de koşturun. (48)
Retrieval ACL testlerini CI’de koşturun. (49)
Retrieval ACL testlerini CI’de koşturun. (50)
Retrieval ACL testlerini CI’de koşturun. (51)
Retrieval ACL testlerini CI’de koşturun. (52)
Retrieval ACL testlerini CI’de koşturun. (53)
Retrieval ACL testlerini CI’de koşturun. (54)
Retrieval ACL testlerini CI’de koşturun. (55)
Retrieval ACL testlerini CI’de koşturun. (56)
Retrieval ACL testlerini CI’de koşturun. (57)
Retrieval ACL testlerini CI’de koşturun. (58)
Retrieval ACL testlerini CI’de koşturun. (59)
Retrieval ACL testlerini CI’de koşturun. (60)
Retrieval ACL testlerini CI’de koşturun. (61)
Retrieval ACL testlerini CI’de koşturun. (62)
Retrieval ACL testlerini CI’de koşturun. (63)
Retrieval ACL testlerini CI’de koşturun. (64)
Retrieval ACL testlerini CI’de koşturun. (65)
Retrieval ACL testlerini CI’de koşturun. (66)
Retrieval ACL testlerini CI’de koşturun. (67)
Retrieval ACL testlerini CI’de koşturun. (68)
Retrieval ACL testlerini CI’de koşturun. (69)
Retrieval ACL testlerini CI’de koşturun. (70)
Retrieval ACL testlerini CI’de koşturun. (71)
Yorumlar
Yorum Gönder