تخطى إلى المحتوى الرئيسي

تكوين المخزن

بعد إضافة مزودي التخزين ومزودي النماذج ومزودي التضمين، يمكننا تكوين المخزن

1. إضافة مخزن جديد

تُستخدم المخازن لدمج مزودي التخزين والنماذج والتضمين في Casibase. يمكنك إضافتها باتباع الخطوات التالية:

انقر على زر Stores في الصفحة الرئيسية، ثم انقر على زر Add لإضافة مخزن.

"	إضافة المخازن-Casibase"

ملء تفاصيل المخزن

املأ تفاصيل المخزن وانقر على زر Save & Exit.

	زر تحديث-المخازن-Casibase

Select the storage provider, model provider, embedding provider, text-to-speech provider and speech-to-text provider you added before.

	زر تحديث-المخازن-Casibase

انقر على زر Save & Exit وعد إلى صفحة قائمة المخازن:

	عرض المخازن-Casibase

The store list shows many columns for AI configurations like model providers, embedding providers, and voice settings. If you're mainly using stores for file management, toggle "Hide chat" at the top of the list to simplify the view and show only the essentials: name, storage provider, and status.

الآن يمكنك استخدام المخزن لتخزين بيانات المعرفة وتحويل النص إلى متجهات والتحدث مع روبوت الدردشة.

When configuring your store, consider adding example questions that appear when users start a new chat. These suggestions help users discover what they can ask and get them started quickly. You can also configure which other stores this one should search through using the Vector stores field - useful when you want one store to pull knowledge from multiple sources.

Vector Stores

Sometimes you need one store to search through knowledge from multiple other stores. For example, you might have separate stores for different topics or departments, but want a main store that can answer questions by searching across all of them. The Vector stores field makes this possible by letting a store use vectors from other stores in addition to its own.

To configure this, navigate to the store edit page and find the Vector stores field. You can select one or more stores from the dropdown list. When you chat with this store, it will automatically search through both its own vectors and the vectors from all the stores you selected. This way, you can create a centralized knowledge hub without duplicating content across multiple stores.

نصيحة

The store always uses its own vectors automatically. You only need to specify additional stores in the Vector stores field when you want to search across multiple knowledge bases.

في القسم التالي، سنتعلم كيفية التحدث مع روبوت الدردشة في Casibase.

2.Store Isolation for Users

Casibase lets you restrict users to specific stores through Casdoor's Homepage field. When a user's Homepage matches a store name, they become bound to that store and work within it exclusively - perfect for multi-tenant setups where teams need separate knowledge bases.

Bound users see their assigned store locked in the top bar selector. They can view and query only that store's data, and API calls to other stores fail with an error. They also cannot add, delete, or rename stores, keeping their workspace stable and isolated.

To bind a user, edit their Casdoor profile and set the Homepage field to the exact store name (case-sensitive). The binding activates on their next login. Users with an empty Homepage or one that doesn't match any store keep full access to all stores, so you can mix restricted and unrestricted users easily.

3.Support Multi-store

يوفر وضع المخازن المتعددة نماذج واقتراحات مختلفة للمستخدمين في كل مخزن مختلف.

تمكين المخازن المتعددة

أولاً، يجب عليك تمكين وضع المخازن المتعددة في المخزن المدمج.

انقر على زر Stores في الصفحة الرئيسية، ثم انقر على زر store-built-in للدخول إلى المخزن المدمج.

	زر تحديث-المخازن-Casibase

قم بالتمرير لأسفل للعثور على حقل Can Select Store وقم بتحديده.

	زر تحديث-المخازن-Casibase

إضافة المخازن المتاحة

يوفر وضع المخازن المتعددة المخازن المتاحة فقط. لجعل المخزن متاحًا، تحتاج إلى تكوين مزود التخزين ومزود النموذج ومزود التضمين الخاص به.

اختيار مخزن للمحادثات

يوفر Casibase طريقة مريحة جدًا لاختيار المخازن.

	زر تحديث-المخازن-Casibase

ما عليك سوى تمرير الماوس فوق "New Chat"، ثم يمكنك اختيار المخزن الذي تريد استخدامه من القائمة التي تظهر أدناه.

إذا نقرت على زر "New Chat"، سيتم تعيين مخزن افتراضي لك.