#search #nlp #machine-learning #similarity

txtai

Build AI-powered semantic search applications in Rust

21 stable releases (4 major)

new 5.3.0 Feb 7, 2023
5.2.0 Dec 20, 2022
5.1.0 Oct 18, 2022
4.6.0 Aug 15, 2022
1.0.0 Dec 16, 2020

#127 in Machine learning

35 downloads per month

Apache-2.0

25KB
345 lines

txtai: Build AI-powered semantic search applications in Rust

Version GitHub Release Date GitHub issues GitHub last commit

txtai executes machine-learning workflows to transform data and build AI-powered semantic search applications.

This repository contains Rust bindings for the txtai API. Full txtai functionality is supported.

Installation

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

[dependencies]
txtai = { version = "5.3" }
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

~5.5–9MB
~203K SLoC