33 stable releases (6 major)

7.5.0 Oct 14, 2024
7.3.0 Jul 15, 2024
7.0.0 Feb 21, 2024
6.3.0 Jan 2, 2024
1.0.0 Dec 16, 2020

#204 in Machine learning

Download history 70/week @ 2024-07-09 47/week @ 2024-07-16 132/week @ 2024-09-03 10/week @ 2024-09-10 10/week @ 2024-09-17 72/week @ 2024-09-24 16/week @ 2024-10-01 104/week @ 2024-10-08 67/week @ 2024-10-15

190 downloads per month

Apache-2.0

32KB
495 lines

Rust client for txtai

Version GitHub Release Date GitHub Issues GitHub Last Commit

txtai is an all-in-one embeddings database for semantic search, LLM orchestration and language model workflows.

This repository contains Rust bindings for the txtai API.

Installation

Add the following lines to your project Cargo.toml file:

[dependencies]
txtai = { version = "7.5" }
tokio = { version = "0.2", features = ["full"] }

This adds txtai as a dependency as well as tokio given txtai uses async io.

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.rs 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.rs
cd txtai.rs/examples/demo
cargo run

Dependencies

~7–19MB
~257K SLoC