工作流步骤

document.save

type: "document.save"

将文件写入存储器并索引, 以后的语义搜索可以找到它。

storage and path requiredindexes itchunks reported
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

storagestring必填

哪里去,它去。 来。

pathstring必填

文档的名称 。

contentany

案文内容。

contentBase64string

字节- a PDF, a , a , a , a DOCX.

{ id: "index", type: "document.save", config: {
    storage: "…", path: "digests/{{input.week}}.md",
    content: "{{steps.write.output.text}}" } }
{"id": "index", "type": "document.save", "config": {
    "storage": "…", "path": "digests/{{input.week}}.md",
    "content": "{{steps.write.output.text}}"}}

指数化加什么

环环关闭 链条无法自己关闭

语义搜索只找到索引的内容。 没有这一步骤,工作流程可以产生一百份报告,而永远无法找到其中的一份报告。

输出

{{steps.index.output.document}}   // its identifier
{{steps.index.output.chunks}}     // how many pieces were indexed
{{steps.index.output.bytes}}
"{{steps.index.output.document}}"   # its identifier
"{{steps.index.output.chunks}}"     # how many pieces were indexed
"{{steps.index.output.bytes}}"

找找找再找找

{ id: "recall", type: "storage.query", config: {
    storage: "…", action: "search", query: "{{input.question}}" } }
{"id": "recall", "type": "storage.query", "config": {
    "storage": "…", "action": "search", "query": "{{input.question}}"}}

费用

与任何文件一样, 存储的字节计数。 搜索后发现每通电话都要花费一个信用额 。