Etapas do fluxo de trabalho

document.save

type: "document.save"

Scrie un documente in un stoccaj e lo indexa, perciocè una ricerca semântica posteriore puè trovalo per significat.

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.

storagestringobrigatório

Onde va.

pathstringobrigatório

Nome del document.

contentany

Contenzios textu.

contentBase64string

Bytes — a PDF, 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}}"}}

Qua indexare adcresce

Chiude un ciclo una catena non puère chiudere da sè

La ricerca semantica solo trova quello che era indexat. Senza questo passo un flusso di lavoro potrebbe produrre centa reporti e mai essere in grado di trovare uno di essi da quello che dice.

Saída

{{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}}"

Retrouvalo

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

Custo

I bytes contant a par l'archivament, come ogni file. La ricerca che trova posteriore costa un credito per chiamata.