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 breaking.
  • MINOR version: Incremented when adding functionality in a backward-compatible manner. Triggered if the PR title starts with feature.
  • 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


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.6.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

nuclia_models-0.6.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuclia_models-0.6.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for nuclia_models-0.6.2.tar.gz
Algorithm Hash digest
SHA256 75bcf401e8b212af296e44a408f36b85e0d3fd5d9d43f10c693a33fbf5d94038
MD5 4bb35533db62a8f1bb076047b6734eda
BLAKE2b-256 50f4276129d3da79f51e891369644bfef835fcd8fff9ac3b9eed0aca5358dc4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuclia_models-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for nuclia_models-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fae44826b1c1638ed575f068be4e7a9418306e2698e68cd92b93ea991d7be1
MD5 bfbb8c5da94c67350d0d9a68d3a64968
BLAKE2b-256 c134b0e4e8cadb2967668984b78ab7adb387d9f22c1f4638bae35c2e5f71ec88

See more details on using hashes here.

Supported by

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