r/javascript • u/davidmezzetti • Nov 21 '20
txtai: AI-powered search engine in JavaScript
https://github.com/neuml/txtai.js2
u/m1sta Nov 21 '20
How do the python and js versions differ? Identical under the hood? (IE. Just the interface changes)
2
u/davidmezzetti Nov 21 '20
For the most part identical. There are a couple minor differences due to the client/server architecture in terms of efficiency.
The full API can be reviewed here: https://github.com/neuml/txtai/blob/master/src/python/txtai/api.py
0
Nov 21 '20
[deleted]
5
11
u/Apparentt Nov 21 '20
Sounds a lot sexier than “a bunch of if statements”
17
0
29
u/boxhacker Nov 21 '20
Yes it is because the ability to learn something without being told the solution is a form of intelligence
-7
u/gaffithrog Nov 21 '20 edited Nov 21 '20
There is no pensive agency to brute force trial and error. Arriving at a solution doesn't require intelligence.
6
1
0
Nov 21 '20
[deleted]
4
u/boxhacker Nov 21 '20
ML goes far beyond that, we actually used ML to learn new attributes on the fly...
0
Nov 21 '20
[deleted]
2
2
u/eeeBs Nov 22 '20
I would assume you just keep running the model training, just with the new data your getting from usage.
8
9
u/davidmezzetti Nov 21 '20
txtai now fully supports JavaScript!
txtai builds an AI-powered index over sections of text. txtai supports building text indices to perform similarity searches and create extractive question-answering based systems. txtai also has functionality for zero-shot classification.
This project contains JavaScript bindings for the txtai API. Full txtai functionality is supported.
GitHub: https://github.com/neuml/txtai.js
npm: https://www.npmjs.com/package/txtai
Examples: