Skip to main content

Kiri Natural Language Engine

Project description

Kiri Natural Language Engine

PyPI PyPI - Python Version License

Kiri Natural Language Engine is a high level Python library that makes using state-of-the-art language models easy, accessible and scalable.

With Kiri, no experience in AI is needed to solve valuable real world problems using:

  • Semantic search (for ecommerce, documentation, etc.)
  • Conversational question answering (for FAQ chatbots, text analysis, etc.)
  • Zero-shot classification (for email sorting, intent detection, etc.)
  • Summarisation (TLDRs for long documents)
  • Emotion detection (for customer satisfaction, text analysis, etc.)

Run everything locally or take your code to production using our free, optimised inference API.

Getting started Installation, few minute introduction
💡 Examples Sample problems solved using Kiri
📙 Docs In-depth documentation for advanced usage

Getting started

Installation

Install Kiri via PyPi:

pip install kiri

Basic usage

from kiri import Kiri, Document

# Unprocessed documents
documents = [
    Document("Look at examples to see awesome use cases!"),
    Document("Check out the docs to see what's possible!")
]

# Use our inference API
kiri = Kiri(api_key="abc")
# Or run locally
kiri = Kiri(local=True)

# Process documents
kiri.upload(documents)

# Start building!
search_results = kiri.search("What are some cool apps that have been built?")

print(search_results.to_json())

# Prints
{
   "max_score": 0.3804888461635889,
   "total_results": 2,
   "results": [
      {
         "document": {
            "id":"LzhtWcpV2eoMk8GJwaw7na",
            "content":"Look at examples to see awesome use cases!"
         },
         "score": 0.3804888461635889,
         "preview":" Look at examples to see awesome use cases!"
      },
      {
         "document": {
            "id":"bcLb8xUK585Zm6rZrwj89A",
            "content":"Check out the docs to see what's possible!"
         },
         "score": 0.1742559312454076,
         "preview":" Check out the docs to see what's possible!"
      }
   ]
}

Why Kiri?

  1. No experience needed

    • Entrance to practical AI should be simple
    • Get state-of-the-art performance in your task without being an expert
  2. There is an overwhelming amount of models

    • We implement the best ones for various use cases
    • A few general models can accomplish more with less optimisation
  3. Deploying models cost effectively is hard work

    • If our models suit your use case, no deployment is needed
    • Our API scales, is always available, and you only pay for usage

Examples

Take a look at the examples folder.

Documentation

Check out our docs.

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

kiri-0.3.3.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

kiri-0.3.3-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file kiri-0.3.3.tar.gz.

File metadata

  • Download URL: kiri-0.3.3.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for kiri-0.3.3.tar.gz
Algorithm Hash digest
SHA256 57001ef2395316b4e4642d8e6de597d460b98ea4f5046d0857b9a2118a5d0bc0
MD5 a6c32423e9213202c90c46cb996dead0
BLAKE2b-256 d40c659e44d3f4251ae093355b0b739ab0d52d7a4bc3cc4590f53a491a39b3eb

See more details on using hashes here.

File details

Details for the file kiri-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: kiri-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for kiri-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75cec1f082db9fb4826868061a418a8ac48cc2af9b947f389b00bf5906f50b37
MD5 1f69b357e5919379437ee732fa9d4177
BLAKE2b-256 088b06de3c2530bce647dc9b306e545d9b31f94acd0718d12a602c203e0bd4a9

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