HackerTrans
トップ新着トレンドコメント過去質問紹介求人

txtai

no profile record

投稿

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

9 ポイント·投稿者 txtai·3 年前·0 コメント

Prompt-driven vector search with LLMs

github.com
28 ポイント·投稿者 txtai·3 年前·5 コメント

[untitled]

2 ポイント·投稿者 txtai·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 txtai·3 年前·0 コメント

コメント

txtai
·3 年前·議論
Excellent work! Hope to see a version that has a friendlier commercial license in the future (current version is CC-BY 4.0 NC).
txtai
·3 年前·議論
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.
txtai
·3 年前·議論
[flagged]
txtai
·3 年前·議論
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...
txtai
·3 年前·議論
[flagged]
txtai
·3 年前·議論
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
txtai
·3 年前·議論
txtai combines SQLite and Faiss to enable vector search. It also does a lot more than that.

https://github.com/neuml/txtai
txtai
·3 年前·議論
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.
txtai
·3 年前·議論
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.
txtai
·3 年前·議論
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.
txtai
·3 年前·議論
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...
txtai
·3 年前·議論
Thanks. Just want people to know there are quality FOSS alternatives available for encoding text into embeddings.
txtai
·3 年前·議論
txtai is an alternative approach to this. It builds a FAISS (also supports HNSW) index alongside a SQLite database. It works with sentence-transformers models. For example, this model https://huggingface.co/sentence-transformers/all-MiniLM-L6-v... is 384 dimensions and works great for semantic search.

https://github.com/neuml/txtai

https://neuml.github.io/txtai/embeddings/query/
txtai
·3 年前·議論
This is a really nice article by Dmitry Kan on number of popular vector databases.

https://towardsdatascience.com/milvus-pinecone-vespa-weaviat...
txtai
·3 年前·議論
This concept was more for inference on-demand vs training a model. For example, if there was an API call that had a model call as part of it's workflow. Training even a small model still requires serious compute power.
txtai
·3 年前·議論
There is also a push to run machine learning models on low-resource devices, which a $4 VPS could be categorized as.

https://www.tensorflow.org/lite

https://huggingface.co/muhtasham/olm-bert-tiny-december-2022

https://neuml.hashnode.dev/train-a-language-model-from-scrat...
txtai
·3 年前·議論
There is a GitHub repo: https://github.com/amazon-science/mm-cot

But it doesn't look all that easy to stand up.
txtai
·3 年前·議論
InstructGPT which is a "sibling" model to ChatGPT is 1.3B parameters. https://openai.com/blog/instruction-following/

Another thread on HN (https://news.ycombinator.com/item?id=34653075) discusses a model that is less than 1B parameters and outperforms GPT-3.5. https://arxiv.org/abs/2302.00923

These models will get smaller and more efficiently use the parameters available.
txtai
·3 年前·議論
Great looking project here. Absolutely need a local/FOSS option. There's been a number of open-source libraries for LLMs lately that simply call into paid/closed models via APIs. Not exactly the spirit of open-source.

There's already great local/FOSS options such as FLAN-T5 (https://huggingface.co/google/flan-t5-base). Would be great to see a local model like that trained specifically for chat.
txtai
·3 年前·議論
Outperforms GPT-3.5 by 16% with less than 1B parameters. There is even a 220M parameter version that scores well. Interesting model to watch.

Referenced snippet from the abstract:

With Multimodal-CoT, our model under 1 billion parameters outperforms the previous state-of-the-art LLM (GPT-3.5) by 16% (75.17%->91.68%) on the ScienceQA benchmark and even surpasses human performance.