Python client for txtai
txtai is an all-in-one AI framework for semantic search, LLM orchestration and language model workflows.
This repository contains Python bindings for the txtai API. This is a minimal dependency library for Python designed for use cases where txtai is running through the API. In all other cases, txtai should be installed directly.
Installation
txtai.py can be installed via PyPI
pip install txtai.py
Examples
The examples directory has a series of examples that give an overview of txtai. See the list of examples below.
| Example | Description |
|---|---|
| Introducing txtai | Overview of the functionality provided by txtai |
| Extractive QA with txtai | Extractive question-answering with txtai |
| Labeling with zero-shot classification | Labeling with zero-shot classification |
| Pipelines and workflows | Pipelines and workflows |
txtai.py connects to a txtai api instance. See this link for details on how to start a new api instance.
Once an api instance is running, do the following to run the examples.
git clone https://github.com/neuml/txtai.py
cd txtai.py/examples
python embeddings.py
python extractor.py
python labels.py
python pipelines.py
Metadata
Release files for txtai-py 9.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| txtai_py-9.12.0.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| txtai_py-9.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 kB
Release files / txtai_py-9.12.0.tar.gz
| Download URL | txtai_py-9.12.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a7fcc13129099b4529f5111dc1df6eee7569238ef4378a9948e72a25aa30ffc
|
|
BLAKE2b-256 checksum How to use checksums |
97aa7718aaf4755b36769626ad105235e4f7ccc7651f2a276a643fd364ef3b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / txtai_py-9.12.0-py3-none-any.whl
| Download URL | txtai_py-9.12.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5503762d62b359e71929408009072bddd8bda1a5187fc40a3e5ec12c3074e3e1
|
|
BLAKE2b-256 checksum How to use checksums |
18d5eddea0aeb7341c5b32010611c47f819403f3d6ef12ccafda2f6ac8225ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|