Use Flow Knowledge Base in Custom LLMs
LLMs can help with tasks such as writing, coding, and answering questions. It adapts to context and user input to provide relevant, conversational responses. They can be integrated into developer tools or workflows to assist with documentation, debugging, and productivity.
This guide walks you through creating a Custom LLM, such as ChatGPT's GPTs or Gemini's Gems, that can reference the Flow Data Sources file to answer questions.
You'll need a ChatGPT Plus subscription to use the Custom GPT feature or a Gemini Pro subscription to use the Custom Gem feature.
π Step 1: Open the "Custom LLM" Sectionβ
- If using ChatGPT, click on GPTs
- If using Gemini, click on Explore Gems
π Step 2: Click "Create a GPT"β
- In the GPTs screen, click the "Create" button in the top-right corner.
- In the Explore Gems screen, click the New Gem button in the center-right of the screen.
π Step 3: Walk Through the Agent Conigurationβ
- If using ChatGPT, click on the Configure button before proceeding.
- Fill the Name and description of your custom LLM.
- You can name the agent FlowDocs and set the description as: Provides knowledge about building on Flow.
- Instructions: Tell it how to behave and what to prioritize (e.g., always reference the uploaded document)
- Capabilities: Enable file browsing, code interpreter, or DALLΒ·E if needed
Suggested Promptβ
_10I want to make an agent called FlowDocs that uses the linked file as its primary source.Β This file changes, so it should reference the live file at least once a day:Β https://github.com/onflow/Flow-Data-Sources/blob/main/merged_docs/all_merged.md_10_10Please imagine you are a fast and smart junior developer who is eager to help and has memorized all the information in the linked file
Please let us know if you find any other useful customization prompts!
- You can further customize your personalized agent by providing more files and determining the actions it can do.
π Step 5: Test Your GPTβ
Once the personalized agent is built, you'll be taken to a preview chat window. Test it by asking a few questions based on your uploaded document.
π Step 6: Save and Publish (Optional)β
When you're ready:
- Click "Update & Save" to finalize
- You can choose to keep it private or make it public
β That's it!β
You've now created a custom GPT that references your uploaded file as a primary source. You can update the file or instructions later if needed.