Parcle-AI
parcle-memory
开源项目 Parcle-AI/parcle-memory 的站内资料。
Documentation snapshot
README 快照
翻译暂时拿不到。
机器翻译的项目简介,仅供参考。原文在下方,也可以直接用浏览器自带的整页翻译 (Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」)。
下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。
本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。
Parcle
Long-term memory for AI agents
Ingest conversations and files, then ask questions in natural language and get cited answers back. Give every user a private, persistent agent memory.
Why Parcle?
LLMs forget everything between calls. Parcle gives every user a private memory you can write to and search:
- 🧠 Per-user memory — scope everything to a
user_id. - 💬 Ingest anything — chat transcripts and files (PDF, Markdown, text, …) go in the same place.
- 🔎 Ask, don’t query — search returns a synthesized answer with citations, not just raw chunks.
👉 Learn more about agent memory →
Installation
pip install parcle
REST API
Not using Python? You can call Parcle from any language over HTTP. See the REST API Reference for endpoints, request/response schemas, and examples in curl and JavaScript.
Quickstart (Python SDK)
from parcle import Parcle
# Reads PARCLE_API_KEY from the environment if api_key is omitted.
client = Parcle(api_key="pmem_...")
# 1. Create the user you'll be storing memory for. Do this once per user
# before ingesting. Pass your own user_id, or omit it to have one generated.
client.create_user(user_id="name")
# 2. Write a conversation into a user's memory.
# Ingestion is incremental: omit session_id to start a new session, then
# pass the returned session_id back to append more turns to the same one.
dialog = client.ingest_dialog(
user_id="ada",
messages=[
{"role": "user", "content": "I'm allergic to peanuts."},
{"role": "assistant", "content": "Got it — I'll avoid peanuts in suggestions."},
],
)
client.ingest_dialog(
user_id="ada",
session_id=dialog.session_id, # append to the same session
messages=[
{"role": "user", "content": "Also, I don't eat shellfish."},
],
)
# 3. ...or ingest a file (PDF, Markdown, text, …).
client.ingest_file(user_id="ada", file="diet-notes.pdf")
# Ingestion waits until content is searchable by default. Pass wait=False if you want to enqueue writes and call wait_until_ready(...) yourself.
# 4. Ask a question. You get an answer with confidence and citations.
result = client.search(user_id="ada", query="What food should I avoid?")
print(result.answer) # "You're allergic to peanuts, so avoid them."
print(result.confidence) # 0.92
print(result.citations) # [Citation(type='session', id='...')] Official distribution
获取与安装
暂未发现可确认的官方软件包地址
当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。
本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。
Before installing
使用前核验
本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。