Better HN
topnewbestaskshowjobs
Log inSign up

txtai

243 karma · joined Feb 25, 2022 (4y ago) · 198 submissions

Submissions

comment 3y ago · link · parent

Excellent work! Hope to see a version that has a friendlier commercial license in the future (current version is CC-BY 4.0 NC).

comment 3y ago · link · parent

If you want something similar to this that is fully downloadable and open source, check this out - https://huggingface.co/NeuML/txtai-wikipedia

It's an embeddings database of Wikipedia abstracts with page view data integrated to enable filtering pages based on popularity in addition to similarity.

comment 3y ago · link · parent

SetFit is a great framework for building a text classifier.

This is a pretty straight forward problem and a good fit for a standard text classifier as well.

Here is an example of fine-tuning a model with txtai: https://colab.research.google.com/github/neuml/txtai/blob/ma...

comment 3y ago · link · parent

txtai combines Faiss and SQLite to support similarity search with SQL.

For example: SELECT id, text, date FROM txtai WHERE similar('machine learning') AND date >= '2023-03-30'

GitHub: https://github.com/neuml/txtai

This article is a deep dive on how the index format works: https://neuml.hashnode.dev/anatomy-of-a-txtai-index

comment 3y ago · link · parent

txtai combines SQLite and Faiss to enable vector search. It also does a lot more than that.

https://github.com/neuml/txtai

comment 3y ago · link · parent

The first comment in that article has details on the new model. Not the original author but per their testing they said they paid $70 to encode 1M records. The embeddings are 1536 dimensions, which require a lot of vector storage. The HF hub has open models for 384 dimensions or 768 dimensions that work well for a lot of use cases.

comment 3y ago · link · parent

That's up to you. Many don't want to open an account and pay in order to explore what's possible. There are LLMs available on the HF Hub, such as google/flan-t5-xl.

comment 3y ago · link · parent

Starting with HF models and moving to a large model like GPT3 when the task calls for it is a good approach to take with almost all tasks.

comment 3y ago · link · parent

If speed and price are concerns, use the FOSS models available on the Hugging Face Hub: https://hf.co/models. Thousands of models, different sizes and tasks. Download locally and fine-tune, if necessary.

For those specifically interested in text embeddings, here is a good analysis: https://medium.com/@nils_reimers/openai-gpt-3-text-embedding...

comment 3y ago · link · parent

Thanks. Just want people to know there are quality FOSS alternatives available for encoding text into embeddings.
1234567