Skip to main content

No project description provided

Project description

Nuclia Models

This repository contains some of the public models used in Nuclia SDK. You can import and use these models with the Nuclia Python SDK.

Installation

To install the Nuclia Python SDK and use the models from this repository:

pip install nuclia-sdk

How to Use

To use one of the public models in your project, simply import it from the Nuclia SDK:

from nuclia import sdk
from nuclia_models.common.pagination import Pagination
from nuclia_models.events.activity_logs import ActivityLogsQuery, EventType

kb = sdk.NucliaKB()
query = ActivityLogsQuery(
    year_month="2024-10",
    show=["id", "date", "question", "answer"],
    filters={
        "question": {"ilike": "user question"},
        "feedback_good": {"eq": True}
    },
    pagination=Pagination(limit=10)
)
kb.logs.query(type=EventType.CHAT, query=query)

Refer to the Nuclia Python SDK documentation for more details on available models and their usage.

Versioning and PR Conventions

We follow Semantic Versioning (SemVer) to manage version numbers in this repository. Here's how versions are bumped automatically based on the PR titles:

  • MAJOR version: Incremented when there are incompatible API changes. Triggered if the PR title starts with break.
  • MINOR version: Incremented when adding functionality in a backward-compatible manner. Triggered if the PR title starts with feat.
  • PATCH version: Incremented for backward-compatible bug fixes. Triggered if the PR title starts with fix.

Example PR Conventions:

  • PR title: fix: resolve issue with model output

    • This will bump the PATCH version and automatically update the CHANGELOG.md.
  • PR title: feature: add support for new model

    • This will bump the MINOR version and update the CHANGELOG.md.
  • PR title: breaking: change API response format

    • This will bump the MAJOR version and update the CHANGELOG.md.

Automatic Changelog Updates

When a PR is merged, the version is updated based on the title, and the CHANGELOG.md is automatically updated with the following format:

## [version] - YYYY-MM-DD
### Title:
Description of the PR (if provided)

If no description is provided, the changelog entry will only include the title.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

nuclia_models-0.59.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

nuclia_models-0.59.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file nuclia_models-0.59.0.tar.gz.

File metadata

  • Download URL: nuclia_models-0.59.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nuclia_models-0.59.0.tar.gz
Algorithm Hash digest
SHA256 378f10172ba75319b98839c4a96f8e1590a2f8278196e620ad03badc6fe9dc77
MD5 5eb9ac522e30a17ec2b131a3607f5dc1
BLAKE2b-256 a6028b59bd33b568e8931d7b033ea4186b22a4e03a2a032bbb02179514ceb38c

See more details on using hashes here.

File details

Details for the file nuclia_models-0.59.0-py3-none-any.whl.

File metadata

  • Download URL: nuclia_models-0.59.0-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nuclia_models-0.59.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b64de9f07c072a6677982b1a938177f7b5d1c6b0f1f686a36dd6e3310af797dc
MD5 1faa832497b81f7e4370421f0b5bbfd5
BLAKE2b-256 1a9b497803b29faa5b1e90950a245dd316100c00e67ad3136090b8448a27f39e

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