https://github.com/neuml/txtai.js
JavaScript client for txtai
https://github.com/neuml/txtai.js
ai javascript nlp search txtai
Last synced: about 2 months ago
JSON representation
JavaScript client for txtai
- Host: GitHub
- URL: https://github.com/neuml/txtai.js
- Owner: neuml
- License: apache-2.0
- Created: 2020-11-21T00:16:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2026-01-21T15:51:46.000Z (3 months ago)
- Last Synced: 2026-01-31T21:30:10.029Z (2 months ago)
- Topics: ai, javascript, nlp, search, txtai
- Language: JavaScript
- Homepage:
- Size: 47.9 KB
- Stars: 157
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JavaScript client for txtai
[txtai](https://github.com/neuml/txtai) is an all-in-one AI framework for semantic search, LLM orchestration and language model workflows.
This repository contains JavaScript bindings for the txtai API.
## Installation
txtai.js can be installed via npm
npm install txtai
## 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](https://github.com/neuml/txtai.js/blob/master/examples/node/src/embeddings.js) | Overview of the functionality provided by txtai |
| [Extractive QA with txtai](https://github.com/neuml/txtai.js/blob/master/examples/node/src/extractor.js) | Extractive question-answering with txtai |
| [Labeling with zero-shot classification](https://github.com/neuml/txtai.js/blob/master/examples/node/src/labels.js) | Labeling with zero-shot classification |
| [Pipelines and workflows](https://github.com/neuml/txtai.js/blob/master/examples/node/src/pipelines.js) | Pipelines and workflows |
txtai.js connects to a txtai api instance. See [this link](https://neuml.github.io/txtai/api/) 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.js
cd txtai.js/examples/node
npm install
npm run build
node dist/embeddings.js
node dist/extractor.js
node dist/labels.js
node dist/pipelines.js
```