When using Promptitude, a powerful feature at your disposal is the Document input type. This allows you and other users to upload documents directly into prompts, which can then be processed or analyzed by the platform.
Whether you're looking to generate summaries, extract quotes, or even create content based on document uploads, understanding how to effectively use this feature can greatly enhance your productivity and creativity.
The Document input type is a flexible variable that lets users upload a document as part of their interaction with a prompt.
Single File Upload: Each input variable can currently handle the upload of one document at a time.
Supported Formats: Currently, you can upload documents in Word, Text, and PDF formats. More formats like Presentations, HTML, Markdown, CSV, and TSV will be supported soon.
File Size Limit: The maximum file size allowed is 5MB.
β
Add link: If your document is already published, simply enter its URL and assign a name for quick identification (ensure it is a public link with SSL).
You can add as many document-type variable inputs to a prompt as you wish.
πΉ Setting Up Your Document Input
To integrate a document upload into your prompt, follow these simple steps:
Edit Your Prompt: Navigate to the prompt you wish to edit and click on the Input tab.
Add a New Variable Input: Choose to add a new input, name it appropriately, and select Document as the type.
Set a Default Value: Set a default document (make sure it's public) to help guide users or provide a template.
Configure Additional Settings: Add helpful text to guide the user, decide whether the document upload is mandatory or optional, and set a maximum content limit to control the token usage of the input.
πΉ Practical Use Cases
Here are a few ways you can use the Document input type to streamline operations and enhance engagement:
Internal Summaries: Create a prompt for your team to upload documents that need quick summarization, saving time and effort in manual reviews.
Generate Quotes: Share a prompt publicly where partners can upload briefs in PDF format, and quickly generate tailored quotes or responses.
Professional Profiles: Offer a tool in the Promptitude community where users can upload their resumes in DOC format to generate polished texts for their LinkedIn profiles.
π Important Considerations
Token Limitation: Remember that the content of your uploaded document counts towards the token limit of the AI model used. Select models with a large context window to avoid errors or incomplete processing.
Practical example
Practical example
The Claude family from Anthropic offers a context window of 200K tokens. However, if your prompt includes 3 document-type variable inputs with the following token counts:
βContent 1: 50K tokens | Content 2: 100K tokens | Content 3: 60K tokens.
You may encounter errors or hallucinations. This is because your content exceeds the token limit, which, along with the tokens used by your prompt text, may lead to issues.
Additionally, adding more inputs of this kind will further increase the token count. Therefore, it's essential to manage your inputs carefully and consider the word count of uploaded documents, even if they are under 5MB in size.
Public Accessibility: If you publish your prompt or share it, any document included as a default value will be public. Ensure that no sensitive information is inadvertently shared.
Overall Size Limit: The total size of your prompt, after including documents, should not exceed 25MB to ensure smooth operation and compliance with platform limits.
By integrating the Document input type into your prompts, you open up a world of possibilities for automating and enhancing document-driven tasks. Whether for internal use or as a public tool, this feature can significantly boost the functionality and appeal of your prompts on Promptitude.