Better HN
topnewbestaskshowjobs
Log inSign up

jankovicsandras

201 karma · joined Mar 4, 2016 (10y ago) · 78 submissions

Submissions

comment 1mo ago · link · parent

Yes. Philip K. Dick wrote this about Heinlein:

"Several years ago, when I was ill, Heinlein offered his help, anything he could do, and we had never met; he would phone me to cheer me up and see how I was doing. He wanted to buy me an electric typewriter, God bless him—one of the few true gentlemen in this world. I don't agree with any ideas he puts forth in his writing, but that is neither here nor there. One time when I owed the IRS a lot of money and couldn't raise it, Heinlein loaned the money to me. I think a great deal of him and his wife; I dedicated a book to them in appreciation. Robert Heinlein is a fine-looking man, very impressive and very military in stance; you can tell he has a military background, even to the haircut. He knows I'm a flipped-out freak and still he helped me and my wife when we were in trouble. That is the best in humanity, there; that is who and what I love."

https://en.wikipedia.org/wiki/Philip_K._Dick#cite_note-32

comment 3mo ago · link · parent

If someone has a Postgres db and want very simple RAG:

https://github.com/jankovicsandras/plpgsql_bm25 BM25 search implemented in PL/pgSQL ( Unlicense / Public domain )

The repo includes also plpgsql_bm25rrf.sql : PL/pgSQL function for hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion; and Jupyter notebook examples.

comment 3mo ago · link · parent

You can do BM25 and hybrid search in Postgres.

Shameless plug: https://github.com/jankovicsandras/plpgsql_bm25 BM25 search implemented in PL/pgSQL ( Unlicense / Public domain )

The repo includes also plpgsql_bm25rrf.sql : PL/pgSQL function for hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion; and Jupyter notebook examples.

comment 10mo ago · link · parent

You can do hybrid search in Postgres.

Shameless plug: https://github.com/jankovicsandras/plpgsql_bm25 BM25 search implemented in PL/pgSQL ( Unlicense / Public domain )

The repo includes also plpgsql_bm25rrf.sql : PL/pgSQL function for hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion; and Jupyter notebook examples.

comment 11mo ago · link · parent

You can do hybrid search in Postgres.

Shameless plug: https://github.com/jankovicsandras/plpgsql_bm25 BM25 search implemented in PL/pgSQL ( Unlicense / Public domain )

The repo includes plpgsql_bm25rrf.sql : PL/pgSQL function for hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion; and Jupyter notebook examples.

comment 12mo ago · link · parent

Looks cool!

Here's some feedback:

- the diagram is not centered and zoomed by default, this is easy to fix

- it would be great to have better animation controls, like progressbar, play half speed, etc.

- it would be great to be able to export animation to video, animgif, etc. e. g. with ffmpeg.js

comment 1y ago · link · parent

Shameless plug: https://github.com/jankovicsandras/plpgsql_bm25 BM25 search implemented in PL/pgSQL ( Unlicense / Public domain )

The repo includes plpgsql_bm25rrf.sql : PL/pgSQL function for Hybrid search ( plpgsql_bm25 + pgvector ) with Reciprocal Rank Fusion; and Jupyter notebook examples.

comment 1y ago · link · parent

"It's also possible to do it on top of other DBs like Postgres, but takes more effort."

Shameless plug: plpgsql_bm25: BM25 search implemented in PL/pgSQL (The Unlicense / PUBLIC DOMAIN)

https://github.com/jankovicsandras/plpgsql_bm25

There's an example Postgres_hybrid_search_RRF.ipynb in the repo which shows hybrid search with Reciprocal Rank Fusion ( plpgsql_bm25 + pgvector ).

comment 1y ago · link · parent

Very cool robot dog and interesting video! Can the dog climb stairs? Isn't capstan drive temperature sensitive, e.g. the ropes will be shorter in cold and longer in warm wheather?

comment 1y ago · link · parent

Can this solve vector tracing? https://github.com/jankovicsandras/imagetracerjs (Public domain) Discaimer: I made this.

comment 1y ago · link · parent

Postgres is a good idea.

Shameless plug: https://github.com/jankovicsandras/plpgsql_bm25

BM25 search implemented in PL/pgSQL, there's also an example of Hybrid (BM25+pgvector) search in the repo.

comment 1y ago · link · parent

This looks cool!

Shameless plug:

https://github.com/jankovicsandras/plpgsql_bm25

BM25 search implemented in PL/pgSQL, might be useful if one can't use Rust extensions with Postgres, e. g. hosted Postgres without admin rights.

comment 1y ago · link · parent

I think the following works in Firefox. WARNING: this is a security risk obviously.

about:config -> security.fileuri.strict_origin_policy -> false

source: https://stackoverflow.com/questions/58067499/runing-javascri...

comment 1y ago · link · parent

This is a good intro to text search. Shameless plug: If you throw in a bit more, ca. 250 SLOC, you can have BM25 search: https://github.com/jankovicsandras/bm25opt

comment 1y ago · link · parent

Can you please add this shameless plug?

https://github.com/jankovicsandras/plpgsql_bm25

Opensource BM25 search in PL/pgSQL (for example where you can't use Rust extensions), and hybrid search with pgvector and Reciprocal Rank Fusion.

comment 2y ago · link · parent

Shameless plug:

https://github.com/jankovicsandras/plpgsql_bm25

https://github.com/jankovicsandras/bm25opt

comment 2y ago · link · parent

This is a good point and was a difficult design decision. The reasons for changing the API are:

- easier to use with untokenized corpus and questions

- to fix issues with the tokenizing ( e.g. https://github.com/dorianbrown/rank_bm25/issues/38 ); also rank_bm25 provides no default tokenizer, a naive split-on-whitespace is a wrong choice

- considerably simplify the code (way less SLOC)

- point out the similarities of the algorithms for educational purpuses / further development

In practice, the differences are minimal ( see Example 3: comparison with rank_bm25 ).

18.

Show HN: BM25opt – 30-40 x faster BM25 search algorithms (FOSS)(github.com ↗)

1 points · by jankovicsandras · 2y ago · 2 comments

comment 2y ago · link · parent

Or you can use Postgres to store the original text, the metadata and the embedding in a single table and then do hybrid queries against them (with pre- or post-filtering, optimized automatically).

Shameless plug:

BM25 search implemented in PL/pgSQL: https://github.com/jankovicsandras/plpgsql_bm25

faster BM25 search algorithms in Python: https://github.com/jankovicsandras/bm25opt

comment 2y ago · link · parent

Hi, I don't know what's SOTA, but I got good results with these (open source, on-device) :

https://github.com/SYSTRAN/faster-whisper (speech-to-text) https://github.com/rhasspy/piper (text-to-speech)

comment 2y ago · link · parent

Isn't parts of this quoting or paraphrasing from the book "The Tibetan Book of Living and Dying" ? https://en.m.wikipedia.org/wiki/The_Tibetan_Book_of_Living_a...

comment 2y ago · link · parent

Free and open source Okapi BM25 search for Postgresql implemented in PL/pgSQL, so it works without extensions.

https://github.com/jankovicsandras/plpgsql_bm25

Might be useful in hosted/cloud Postgres, where you can't use Rust extensions.

comment 2y ago · link · parent

A hybrid search approach might help, like combining vector similarity scores with e.g. BM25 scores.

Shameless plug (FOSS): https://github.com/jankovicsandras/plpgsql_bm25 Okapi BM25 search implemented in PL/pgSQL for Postgres.

24.

Show HN: FOSS Okapi BM25 search for Postgres without extensions(github.com ↗)

3 points · by jankovicsandras · 2y ago · discuss

comment 2y ago · link · parent

"Controller and processor Data controllers must clearly disclose any data collection, declare the lawful basis and purpose for data processing, and state how long data is being retained and if it is being shared with any third parties or outside of the EEA."

I don't see the word "personal" in this sentence, only "any data collection". It's clearly not in the users' interest/benefit to activate this data collection, and not required for the normal functioning of the browser/websites. So activating this silently is minimum _very unethical_ and probably illegal, but I'm not a lawyer.

comment 2y ago · link · parent

Is this illegal in GDPR countries (EU + Norway + ...) or am I reading GDPR wrong?

"If informed consent is used as the lawful basis for processing, consent must have been explicit for data collected and each purpose data is used for"

https://en.wikipedia.org/wiki/Gdpr

comment 2y ago · link · parent

Your point 3. is true generally, but - as I understand - parent wanted to operate a customer support channel and dismissed IRC. In this case: just don't lock your channel for Guests. Timezones affect other platforms, but an IRC bot might help customers when admins sleep. But I'm not sure IRC is best for this use case (e.g. forums, wiki are probably better), but "high barrier of entry" is arguable.

comment 2y ago · link · parent

"huuuuge barrier to entry for new users"

1. go to https://web.libera.chat/

2. click Start (as a Guest account)

comment 2y ago · link · parent

Here's a completely made up point of view. (I haven't read the articles.)

GPT-4 is not an LLM, but a complex software system, which has LLM(s) at its core, but also other components like RAG, toxicity filter, apologizing mechanism, expert systems, etc. "GPT-4" is product name / marketing name. For OpenAI, this would be logical for performance and business reasons. This explains also how they can tune it, the apparent secrecy about the architecture, etc.

It's also logical to make small, incremental changes to this system instead of building whatever GPT-5 would mean from ground up. So I expect "GPT-5" is also just a marketing name for a slightly better black-box (for us) system and product line.

comment 2y ago · link · parent

This looks cool!

There's a small ironically funny typo in the first line: knolwedge

123