الصفحة الرئيسية // الوثائق // Letta Cloud
؟ Letta هو إطار مفتوح المصدر لبناء تطبيقات LLM الحكومية. يمكنك استخدام Letta لبناء وكلاء عالميين مع إمكانات التفكير المتقدمة والذاكرة الشفافة على المدى الطويل. إطار Letta هو الصندوق الأبيض والموديل.
ملحوظة
تبحث عن memgpt؟ أنت في المكان المناسب!
تمت إعادة تسمية حزمة Memgpt و Docker Image إلى letta
لتوضيح التمييز بين وكلاء Memgpt وخادم API / وقت التشغيل الذي يدير وكلاء LLM كخدمات .
يمكنك استخدام Framework Letta لإنشاء وكلاء Memgpt . اقرأ المزيد عن العلاقة بين Memgpt و Letta هنا.
الطريقتان الرئيسيتان لتثبيت Letta هي من خلال Pypi ( pip
) أو عبر Docker :
pip
(دليل أدناه) - أسهل طريقة لتجربة Letta ، سوف تتخلف عن استخدام SQLite و ChromadB لخلفية قاعدة البياناتpip
$ pip install -U letta
$ export OPENAI_API_KEY=sk-...
بالنسبة إلى Ollama (انظر وثائقنا الكاملة للحصول على أمثلة حول كيفية إعداد مختلف مقدمي الخدمات):
$ export OLLAMA_BASE_URL=http://localhost:11434
يمكنك إنشاء وكلاء والدردشة معهم عبر أداة Letta CLI ( letta run
):
$ letta run
? Creating new agent...
? Select LLM model: letta-free [type=openai] [ip=https://inference.memgpt.ai]
? Select embedding model: letta-free [type=hugging-face] [ip=https://embeddings.memgpt.ai]
-> ? Using persona profile: 'sam_pov'
-> ? Using human profile: 'basic'
-> 8 tools: send_message, pause_heartbeats, conversation_search, conversation_search_date, archival_memory_insert, archival_memory_search, core_memory_append, core_memory_replace
? Created new agent 'InspiringSpinach'
Hit enter to begin (will request first Letta message)
? User engaged. Recognize as Chad. Acknowledge presence and establish connection. Explore interests and engage in meaningful discourse.
? Hello, Chad. It's nice to meet you. I am keen on learning and exploring new ideas and concepts. Is there a specific topic you'd like to discuss today?
> Enter your message: my name is Brad, not Chad...
? A discrepancy in identity. Reflect this change in core memory. Apologize for the oversight, and rectify the error.
⚡? [function] updating memory with core_memory_replace
First name: Chad
→ First name: Brad
? Apologize for the mistake in recognizing his name, and begin the conversation anew, addressing him by the correct name this time.
? I apologize for the oversight, Brad. Let's restart. It's a pleasure to meet you, Brad. Is there a specific topic you'd like to discuss today?
> Enter your message:
يمكنك بدء تشغيل Server Letta API مع letta server
(انظر مرجع API الكامل هنا):
$ letta server
Initializing database...
Running: uvicorn server:app --host localhost --port 8283
INFO: Started server process [47750]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://localhost:8283 (Press CTRL+C to quit)
عندما تبدأ خادم Letta API ، ستكون ADE (بيئة تطوير الوكيل) متاحة على http://localhost:8283
:
في Letta ، يتم تخزين/استمرار جميع الوكلاء في نفس قاعدة البيانات ، وبالتالي يمكن الوصول إلى الوكلاء الذين تنشئهم في CLI عبر API و ADE ، والعكس بالعكس. تحقق من دليل QuickStart على مستنداتنا للحصول على برنامج تعليمي حيث تقوم بإنشاء وكيل في Letta CLI ورسالة نفس الوكيل عبر API Letta.
Letta هو مشروع مفتوح المصدر تم تصميمه من قبل أكثر من مائة مساهم. هناك العديد من الطرق للمشاركة في مشروع Letta OSS!
#support
.الإشعارات القانونية : باستخدام Letta وخدمات Letta ذات الصلة (مثل نقطة نهاية Letta أو الخدمة المستضافة) ، فأنت توافق على سياسة الخصوصية وشروط الخدمة.