Kiri Natural Language Engine
Project description
Kiri Natural Language Engine
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!"
}
]
}
Examples
Take a look at the examples folder.
Documentation
Check out our docs.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kiri-0.3.1.tar.gz.
File metadata
- Download URL: kiri-0.3.1.tar.gz
- Upload date:
- Size: 27.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
377b4aaa9f25ae82d28dee3eefdd42c33a700823728cfe667f0a94b88fa027c6
|
|
| MD5 |
428fa0561343c62471c1f1ab3f5849d4
|
|
| BLAKE2b-256 |
8695cee945e0145ac573dd8bda9a878d777bf51222b880761df8bad45e73adf3
|
File details
Details for the file kiri-0.3.1-py3-none-any.whl.
File metadata
- Download URL: kiri-0.3.1-py3-none-any.whl
- Upload date:
- Size: 36.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c94eff520c168be163d55619f21cea565ed5b911a435a78b026759c055a42880
|
|
| MD5 |
5c20e1fc18288c820341a39308c7c83b
|
|
| BLAKE2b-256 |
822fda0d615e1524ff6c42034847de3955d2465700abfb8b9da6f28bdc02ec64
|