خطوات سير العمل

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

(أ) من (أ) إلى (أ) PDF، أ 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}}"}}

التكلفة

الـ إلى إلى مُنتقى نداء.