05_extract

command
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Example: LLM记忆提取示例 展示如何使用Extractor从对话中提取记忆

运行前请设置环境变量:

export OPENAI_API_KEY=sk-your-api-key

或使用本地模型(Ollama):

export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=llama3.1:8b
export OPENAI_API_KEY=ollama

本示例展示代码直接配置LLM(无需预先存储到DB)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL