Nodes Browser
ComfyDeploy: How SaltAI_Language_Toolkit works in ComfyUI?
What is SaltAI_Language_Toolkit?
The project integrates the Retrieval Augmented Generation (RAG) tool [a/Llama-Index](https://www.llamaindex.ai/), [a/Microsoft's AutoGen](https://microsoft.github.io/autogen/), and [a/LlaVA-Next](https://github.com/LLaVA-VL/LLaVA-NeXT) with ComfyUI's adaptable node interface, enhancing the functionality and user experience of the platform.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
SaltAI_Language_Toolkit
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
SaltAI Language Toolkit
The project integrates the Retrieval Augmented Generation (RAG) tool Llama-Index, Microsoft's AutoGen, and LlaVA-Next with ComfyUI's adaptable node interface, enhancing the functionality and user experience of the platform.
🔥 May 9, 2024: Added agents, more information can be found here.
Installation Instructions
Using Git and Pip
Follow these steps to set up the environment:
-
Set up a virtual environment as needed.
-
Navigate to
ComfyUI/custom_nodes
. -
Clone the repository: git clone https://github.com/get-salt-AI/SaltAI_LlamaIndex
-
Change to the cloned directory: cd SaltAI_Llama-index
-
Install dependencies:
5.a Python venv:
pip install -r requirements.txt
5.b ComfyUI Portable:
path\to\ComfyUI\python_embeded\python.exe -m pip install -r requirements.txt
ComfyUI Manager
- Have ComfyUI-Manager installed.
- Open up Manager within ComfyUI and search for the nodepack "SaltAI_LlamaIndex"
- Install
- Restart the server.
- Ctrl+F5 Hard refresh the browser.
Installation Note:
You may need to update your environments packaging, wheels, and setuptools for newer Transformers and LlaVA-Next models.
pip install --upgrade packaging setuptools wheel
Orpath\to\ComfyUI\python_embeded\python.exe -m pip install --upgrade packaging setuptools wheel
Examples
Example workflows and images can be found in the Examples Section folder.
- Example_agents.json - shows you how to create conversible agents, with various examples of how they could be setup.
- Example_groq_search.json - shows you how to search with a Groq LLM model, featuring Tavily Research node.
- Example_SERP_search.json - shows you how to search with Scale SERP, and also demonstrates how to use different models with same setup.
- Example_search_to_json.json - shows you how to take search results, and convert them to JSON output which could be fed to another system for use.
Troubleshooting
If you encounter issues due to package conflicts, ensure your virtual environment is configured correctly.
Acquiring Models
You can install and use any GGUF files loaded into your ComfyUI/custom_nodes/models/llm
folder.
Here is probably the world's largest repository of those:
Documentation and Contributions
Detailed documentation and guidelines for contributing to the project will be provided soon.
You can find out existing documentation at https://docs.getsalt.ai/
License
The project is open-source under the MIT license.