sources with format: "docx" and what you
want in prompt (“Summarize the main measures for a client”). Doconda reads your files before writing and flags any
figures or citations that don’t come from them.
Steps
- Store your API key in
DOCONDA_API_KEYand install the SDK (pip install docondaornpm install @doconda/sdk). - Upload the PDF (and any images you want inside) with
files.upload. - Create the document with
sourcesand download the Word file.
What you get back
- An editable Word file with the summary, and its PDF. Images go inside, where they fit.
- Warnings in the report (
documents.report(id)):content.unsupported_fact: a figure, date or fact that isn’t in your request or your sources.content.unsupported_citation·content.citation_to_review: a legal citation that doesn’t come from your sources.source.selected: your sources were very long and the part about what you asked for was used.source.instructions: a source tried to give orders; it was ignored.
status:ready,ready_with_warnings,needs_revieworfailed(not charged).
Limits
- In
sources: up to 5 documents (Word, PowerPoint, Excel, PDF, also.doc,.pptand.xls, TXT or Markdown) and up to 10 images, together. - Each file up to 20 MB.
- For only the summary’s PDF, use
format: "pdf"; for a presentation,format: "pptx".
FAQ
Can I pass the PDF by URL without uploading it?
Can I pass the PDF by URL without uploading it?
Yes.
sources also accepts { "url": "https://…" } or its bytes in base64 ({ "data", "filename" }). See
ways to pass a file.What if I only want the text for my own model?
What if I only want the text for my own model?
Use
extract: it returns the PDF as Markdown.Can I use a document Doconda already made as a source?
Can I use a document Doconda already made as a source?
Yes, by its id (
doc_…).