Skip to main content

Orange widgets for Language Model interaction

Project description

Orange LMSci

LM Task — Orange Data Mining Widget

An Orange 3 widget that connects to a locally running Ollama server and lets you run LLM prompts against your data.


Usage

With an input table

  1. Connect a Data table to the widget's input.

  2. Write a prompt template using {column_name} placeholders matching your table's column names:

    Classify the sentiment of this review:
    
    {review_text}
    
    Reply with only: positive, negative, or neutral.
    
  3. Choose Output mode:

    • Text — each LLM response is emitted on the Text output one by one.
    • Table — when all rows are processed, a copy of the input table is sent on the Data output with an extra llm column containing each row's LLM response.
  4. The widget processes every row automatically when data is connected.

Standalone (no input table)

  • The Query button and Query on load checkbox are enabled.
  • Write any prompt (without placeholders, or with literal {braces} — they won't be substituted).
  • Click Query to send it once.
  • Check Query on load to run the prompt automatically every time the workflow is opened.

Controls

Control Description
URL Ollama server base URL (default: http://localhost:11434)
Model Dropdown populated from /api/tags; editable for manual entry
↺ (Refresh) Re-fetches the model list from the server
Output: Text / Table Selects output mode
Query Sends the standalone prompt (disabled when table input is connected)
Query on load Auto-query on workflow load when no input is connected
Cancel Cancels the current in-progress query batch

Requirements

  • Orange 3 (orange3)
  • A running Ollama server (e.g. ollama serve)
  • No extra Python dependencies — uses only stdlib urllib and json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orange_lmsci-0.1.0.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orange_lmsci-0.1.0-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file orange_lmsci-0.1.0.tar.gz.

File metadata

  • Download URL: orange_lmsci-0.1.0.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for orange_lmsci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ff9bc842b0cd14aaf610015b78b6efaa6745fee931e75585f83f226a723ebc2
MD5 3de8816711da9f9afca6198891bd9668
BLAKE2b-256 b038096c1d20e823cad5ab9e955cb4934c1fa34e5718a9461014ea23af7ca838

See more details on using hashes here.

File details

Details for the file orange_lmsci-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: orange_lmsci-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for orange_lmsci-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c99a888ea9aeba5cede74e8f3c553f9d750d39ec5d0664de897fbc690da9ffe6
MD5 8f9ad0ba57477a950f14aff7199f37dd
BLAKE2b-256 d6d24be7480afaf8362af32287a1352253d6a3ea02218611242084d1605c493c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page