หน้าแรก // เอกสาร // Letta Cloud
- Letta เป็นเฟรมเวิร์กโอเพ่นซอร์สสำหรับการสร้างแอพพลิเคชั่น LLM ที่มีสถานะ คุณสามารถใช้ Letta เพื่อสร้าง ตัวแทนที่มีสถานะที่ มีความสามารถในการใช้เหตุผลขั้นสูงและหน่วยความจำระยะยาวที่โปร่งใส เฟรมเวิร์ก Letta เป็นกล่องสีขาวและแบบจำลอง
บันทึก
กำลังมองหา memgpt? คุณอยู่ในสถานที่ที่เหมาะสม!
แพ็คเกจ MEMGPT และอิมเมจ Docker ได้รับการเปลี่ยนชื่อเป็น letta
เพื่อชี้แจงความแตกต่างระหว่างตัวแทน MEMGPT และ API Server / Runtime ที่เรียกใช้ตัวแทน LLM เป็น บริการ
คุณใช้ เฟรมเวิร์ก 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:
คุณสามารถเริ่มเซิร์ฟเวอร์ 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 (Agent Development Environment) ใน http://localhost:8283
:
ใน Letta เอเจนต์ทั้งหมดจะถูกจัดเก็บ/คงอยู่ในฐานข้อมูลเดียวกันดังนั้นตัวแทนที่คุณสร้างใน CLI สามารถเข้าถึงได้ผ่าน API และ ADE และในทางกลับกัน ตรวจสอบคู่มือ QuickStart บนเอกสารของเราสำหรับการสอนที่คุณสร้างเอเจนต์ใน Letta CLI และส่งข้อความตัวแทนเดียวกันผ่าน Letta API
Letta เป็นโครงการโอเพ่นซอร์สที่สร้างขึ้นโดยผู้มีส่วนร่วมกว่าร้อยคน มีหลายวิธีในการมีส่วนร่วมในโครงการ Letta OSS!
#support
ประกาศทางกฎหมาย : โดยใช้ Letta และบริการ Letta ที่เกี่ยวข้อง (เช่นจุดสิ้นสุดของ Letta หรือบริการโฮสต์) คุณจะยอมรับนโยบายความเป็นส่วนตัวและข้อกำหนดในการให้บริการของเรา