Python client for txtai
Project description
Python client for txtai
txtai is an all-in-one embeddings database 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.