If you're not familiar with input variables and their function, we recommend reviewing them before proceeding. ;-) Input Variable "Content Storage" Type allows you to query your knowledge base efficiently, ensuring that you get the most relevant information for your prompts.
What is Input Variable Content Storage Type?
The Input Variable Content Storage Type is a powerful tool that helps you retrieve specific information from your organized content storage. When you make a query, this feature searches through your stored content and pulls out the most relevant pieces of information based on your request. This is particularly useful for providing context in your prompts.
Flexibility: You can use two sub-variables:
The query of the prompt.
The content chunks extracted from storage, which is the default option if not specified.
π Basic Fields: Required Information
To effectively use this feature, you need to understand its basic fields and how they work:
Label: This is the name you give to the field, helping you identify it easily.
Type: This indicates that the variable is linked to your Content Storage.
Name: This is the unique identifier that places the variable within your prompt.
Default Search Query: This is the initial query that will be used to test your setup.
Folders: Here, you select specific folders in your Content Storage where the search will be conducted.
Tags: Tags help you narrow down your search to specific content types within your folders.
Content Limit: This sets a maximum word count for the content retrieved.
π Advanced Fields: Optional Enhancements
While the basic fields are essential, there are also advanced fields that can enhance your search capabilities and visualization:
Minimum Similarity: This allows you to set a relevance percentage for the content found. The default is 70%, but feel free to adjust it based on your needs.
Maximum Chunks: This controls how many pieces of content will be included in your prompt. The default is 5, which is usually sufficient for focused searches.
Help Text: This provides additional guidance for users interacting with the field.
Display: You can configure whether the field is mandatory or optional and choose its display size (from S to XL), allowing for 1 to 10 lines of text.
ππ»Tips for Effective Use
To get the most out of the Input Variable Content Storage Type, consider the following tips:
Organize Your Content: Before using this feature, ensure your content storage is well-organized. This will make it easier to find relevant information.
Utilize Sub-variables: Use both sub-variables in your prompt to guide the AI effectively. This helps avoid confusion and ensures accurate results.
Experiment with Settings: Donβt hesitate to play around with the Minimum Similarity and Maximum Chunks settings to see what works best for your specific needs.
Preview Your Prompt: Always use the Preview Prompt feature to ensure that everything is functioning as expected.
Formatting: When displaying the extracted information, separate it into its own section using three quotes at the beginning and end, like this: βββ{{input_name}}βββ.
βοΈ Example in Action
To see how this works, try creating a simple prompt using a Content Storage variable input. You can copy a prompt from our inspiration library, edit it to select the appropriate folders, and then write your question.
Give it a try now: AI Assistant
This hands-on approach will help you understand how to leverage the Input Variable Content Storage Type effectively. By mastering the variable, you can streamline your prompt management process and ensure that you always have the most relevant information at your fingertips by implementing Retrieval-augmented generation (RAG).
Happy prompting!