Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 2 min 29 sec ago

Show HN: Logprobsvz – log probabilities visualization of OpenAI GPT

Tue, 11/19/2024 - 6:48am

Hi HN,

Today I wrote a simple tool to visualize the log probabilities of OpenAI GPT completions.

It's designed for debugging and understanding GPT's behavior by showing the probability of each candidates, with which you can know when GPT is hesitating and when it is confident of what it's talking about.

Basically it's a remake of the OpenAI Playground but with all the models and all the API parameters available.

I would recommend forking the repo and check the code before inputing your credentials if you do not trust the version hosted by others.

Thanks for checking it out!

Comments URL: https://news.ycombinator.com/item?id=42182409

Points: 1

# Comments: 1

Categories: Hacker News

Half-Life 2 SIGGRAPH 2000 demo [video]

Tue, 11/19/2024 - 6:47am
Categories: Hacker News

Ask HN: What are some of the best take-home coding tasks you've gotten?

Tue, 11/19/2024 - 6:40am

As an applicant, I've personally had a mixed experience with take-homes. We're designing the technical interviews right now, and I thought I'd ask for some stories on exciting take-home tasks. We're looking for something that resembles the actual job, so we'll allow any tool (including AI and debuggers).

Also curious to hear about any bad ones you've done.

Comments URL: https://news.ycombinator.com/item?id=42182365

Points: 2

# Comments: 0

Categories: Hacker News

The Dark Truth About Bots [video]

Tue, 11/19/2024 - 6:13am
Categories: Hacker News

Marketing < Market Making

Tue, 11/19/2024 - 6:04am
Categories: Hacker News

Show HN: Embed an SQLite database in your PostgreSQL table

Tue, 11/19/2024 - 6:02am

pglite-fusion is a PostgreSQL extension that allows you to embed SQLite databases into your PostgreSQL tables by enabling the creation of columns with the `SQLITE` type. This means every row in the table can have an embedded SQLite database.

In addition to the PostgreSQL `SQLITE` type, pglite-fusion provides the `query_sqlite`` function for querying SQLite databases and the `execute_sqlite` function for updating them. Additional functions are listed in the project’s README.

The pglite-fusion extension is written in Rust using the pgrx framework [1].

----

Implementation Details

The PostgreSQL `SQLITE` type is stored as a CBOR-encoded `Vec`. When a query is made, this `Vec` is written to a random file in the `/tmp` directory. SQLite then loads the file, performs the query, and returns the result as a table containing a single row with an array of JSON-encoded values.

The `execute_sqlite` function follows a similar process. However, instead of returning query results, it returns the contents of the SQLite file (stored in `/tmp`) as a new `SQLITE` instance.

[1] https://github.com/pgcentralfoundation/pgrx

Comments URL: https://news.ycombinator.com/item?id=42182146

Points: 1

# Comments: 0

Categories: Hacker News

Bursera Graveolens

Tue, 11/19/2024 - 6:00am
Categories: Hacker News

A C++ Mixin System

Tue, 11/19/2024 - 5:58am
Categories: Hacker News

Is Python That Slow?

Tue, 11/19/2024 - 5:48am
Categories: Hacker News

Pages