This project gives you the files to create a custom AI assistant, a computer program that can answer questions or give advice, for working with ReShadeFX. ReShadeFX is a tool that enhances how games look by modifying visual effects. The ShaderCell project provides a specialized AI assistant for creating ReShadeFX shaders, which are scripts that control these visual changes. It uses a specialized collection of information (its "knowledge base") and a technique called Retrieval-Augmented Generation (RAG) to ensure the AI uses accurate information.
Imagine an AI that seems knowledgeable but sometimes makes up facts or gives outdated information. RAG, which stands for Retrieval-Augmented Generation, helps address this. With RAG, the AI first looks up information from a trusted source and then uses what it finds to create its response. This method makes the AI's answers more accurate and specific to your question.
ShaderCell uses RAG by following the instructions in Source/Instructions.md. These instructions tell the AI to treat the files in the Source/Knowledge folder as its primary source of truth. When you ask the AI a question about a shader:
- It retrieves: The AI searches
REFERENCE.md,windows-win32-direct3dhlsl.pdf,ReShade.txt, andExamples.txtto find the most relevant information. - It augments: The AI uses the information it finds to build its response. This ensures that any shader code, explanations, or debugging advice are correct and follow ReShadeFX's best practices.
This RAG approach makes ShaderCell a highly specialized and dependable expert for ReShadeFX shader development.
Use this guide to prepare your ShaderCell files for Google's Gemini platform and create a specialized AI assistant.
- Go to the official project page: https://papadanku.github.io/ShaderCell/
- Click
Download .zipto get the files. - Unzip to a memorable location on your computer.
- Open Google Gemini (https://gemini.google.com/app) and log in.
- Find and click the
Gemsbutton on the right side of the screen. - Click the
New Gembutton on the left side of the screen. - Give your new Gem a name, like "ShaderCell Assistant."
- Copy
Source/Description.txtinto the Gem's Description box. - Copy
Source/Instructions.mdinto theInstructionsbox. - Add all
Source/Knowledgefiles into the Gem'sKnowledgebox.
Use this guide to set up ShaderCell files with Mistral AI's Le Chat for your own ReShadeFX expert.
- Go to the project's website: https://papadanku.github.io/ShaderCell/
- Click
Download .zipto get the files. - Unzip the files to a memorable location on your computer.
- Open Le Chat (https://chat.mistral.ai/chat) and log in.
- Click
Agentson the left, then selectCreate an agent. - Click the
New agentbox and give it a name, like "Shader Assistant."
- Copy
Source/Description.txtinto thePurpose of this agent. - Copy
Source/Instructions.mdinto theInstructionsbox. - Click
Knowledgeon the Agent customization page. - Click the arrow by
Search libraries, then selectNew Library. - In the
New Librarybox, name the library something like "Shader Knowledge." - Add all
Source/Knowledgefiles to the library. - Select your new library in the agent customization page.
Use AnythingLLM to run your AI assistant locally and offline. Follow this guide to set it up with ShaderCell's ReShadeFX knowledge.
- Download AnythingLLM from https://anythingllm.com/desktop.
- Install the following on-screen prompts. For help, see the official documentation.
- Install your preferred Large Language Model (LLM). LLMs are AI programs designed to understand and generate human language when given a prompt.
- In AnythingLLM, click the box in the top-left corner to start a new workspace.
- Name your workspace "ReShadeFX Workspace" and press
Save.
- In your workspace, click the upload icon next to the workspace name.
- Add all
Source/Knowledgefiles to the upload area. - Click the
Move to Workspacebutton to embed the files, which adds them permanently to your workspace so the AI can use them as a reference. - Close the window after the embedding completes.
- Click the gear icon to open chat settings.
- In
Chat Settings, selectSystem Prompt. - Copy
Source/Instructions.mdinto theSystem Promptbox.
Use GPT4All to run your AI assistant locally, without needing an internet connection. Follow this guide to set up ShaderCell's ReShadeFX capabilities.
- Download GPT4All from https://www.nomic.ai/gpt4all.
- Open GPT4All.
- Go to
Settings > LocalDocs > LocalDocs Setting > Indexing. - In the
Allowed File Extensionsbox, add the following file types:docx,txt,pdf,md,rst,fxh,csx.
- Go to
Settings > LocalDocs > LocalDocs Setting. - Add
Source/Knowledgeto folders for indexing. - Start the indexing process.
- Go to
Settings > Model > Model Settings. - Pick a GPT4All model and click
Clone. - Copy
Source/Instructions.mdintoSystem Message.