ragraf_fact_store
版本: pro 能力: memory-facts 操作页面: fact_store
做什么
以键、版本和有效期记录事实;同一键的第二条有效记录会被拒绝
解决什么问题
带来源把知识在会话之间保存,不依赖代理的记忆。
如何调用
ragraf_fact_store()
ragraf -p config/ragraf.yaml query fact_store
省略号处是代理传入的值;可选参数可以不传。
参数
| 名称 | 类型 | 默认值 |
|---|---|---|
| subject | str | '' |
| predicate | str | '' |
| value | str | '' |
| namespace | str | 'default' |
| confidence | float | 1.0 |
| ttl_days | int | 0 |
| tags | str | '' |
| path | str | '' |
| task | str | '' |
返回什么
响应由该操作组装,具体由信封描述。