{"id":14964868,"url":"https://github.com/thismodernday/comfyui-instructorollama","last_synced_at":"2025-10-25T10:30:43.513Z","repository":{"id":253833921,"uuid":"844671991","full_name":"ThisModernDay/ComfyUI-InstructorOllama","owner":"ThisModernDay","description":"Custom  comfyui https://github.com/comfyanonymous/ComfyUI Nodes for interacting with Ollama https://ollama.com/ using the Instructor https://github.com/jxnl/instructor Library to provide structured output from your LLM","archived":false,"fork":false,"pushed_at":"2024-08-20T00:30:24.000Z","size":176,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T06:51:18.270Z","etag":null,"topics":["comfyui","comfyui-nodes","instructor","llm","ollama"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThisModernDay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T18:30:41.000Z","updated_at":"2025-01-19T22:22:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"89805515-52f0-4eeb-864f-dfa92fc346a8","html_url":"https://github.com/ThisModernDay/ComfyUI-InstructorOllama","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"da62d2ff6e5f2e9a865f69fc36931b79a890202e"},"previous_names":["thismodernday/comfyui-instructorollama"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisModernDay%2FComfyUI-InstructorOllama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisModernDay%2FComfyUI-InstructorOllama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisModernDay%2FComfyUI-InstructorOllama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisModernDay%2FComfyUI-InstructorOllama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisModernDay","download_url":"https://codeload.github.com/ThisModernDay/ComfyUI-InstructorOllama/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238120376,"owners_count":19419761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comfyui","comfyui-nodes","instructor","llm","ollama"],"created_at":"2024-09-24T13:33:52.923Z","updated_at":"2025-10-25T10:30:38.124Z","avatar_url":"https://github.com/ThisModernDay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComfyUI Instructor Ollama\n\nCustom [ComfyUI](https://github.com/comfyanonymous/ComfyUI) Nodes for interacting with [Ollama](https://ollama.com/) using the [Instructor](https://github.com/jxnl/instructor). Library to provide structured output from your LLM\n\nTo use this properly, you would need a running Ollama server reachable from the host that is running ComfyUI.\n\n\n## Installation\n\n1. git clone into the ```custom_nodes``` folder inside your ComfyUI installation or download as zip and unzip the contents to ```custom_nodes/ComfyUI-InstructorOllama```.\n2. `pip install -r requirements.txt`\n3. Start/restart ComfyUI\n\n\n\n## Nodes\n\nOllama Instructor Node\n\n![](.images/oin.png)\n\nThis is currently the only node in this pack. More will be added in the future\n\n**Response models**\n--\nThese are the pydantic models they are found in your custom nodes folder under \n\n`ComfyUI-InstructorOllama/models`\n\nI have included 4 examples in the models folder.\n\nThe way the node currently works it looks for the python file in the folder (this allows you to create new models refresh the page to hotload the new models in)\n\n### Example Pydantic Model\n```Python\nfrom pydantic import BaseModel, Field\n\nclass User(BaseModel):\n    first_name: str\n    last_name: str\n    email: str\n    phone: str\n    address: str\n\nclass Users(BaseModel):\n    users: List[User]\n```\n\nThe file name must match the class of the pydantic model you are wanting to use so in the example above the file in the models folder is called `Users.py`\n\nI strongly suggest reading up on pydantic models before starting with this node.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthismodernday%2Fcomfyui-instructorollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthismodernday%2Fcomfyui-instructorollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthismodernday%2Fcomfyui-instructorollama/lists"}