HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
dbasch
semantic-search-tweets
Python2023–2023
dbasch / semantic-search-tweets

semantic-search-tweets

Run semantic queries over your twitter history

2Distinct people
2Mentions
0Explicit recommenders
40GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Run semantic queries over your twitter history

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2023-03-30 21:07:03 UTC to 2023-03-30 22:28:24 UTC.

012023-03-30 21:00:00 UTC to 2023-03-30 22:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 30, 21:002023-03-30 22:00:00 UTC to 2023-03-30 23:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 30, 22:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 30, 21:002023-03-30 21:00:00 UTC2023-03-30 22:00:00 UTC101
Mar 30, 22:002023-03-30 22:00:00 UTC2023-03-30 23:00:00 UTC101

What Hacker News says

2 sources
It's in the repo: You first create embeddings. What is this? It's an n-dimensional vector space with your tweets 'embedded' in that space. Each word is an n-dimensional vector in this space. The vectorization is supposed to maintain 'semantic distance'. Basically, if two words are very close in meaning or related (by say frequently appearing next to each other in corpus) they should be 'close' in some of those n-dimensions as well. The result at the end is the '.bin' file, the 'semantic model' of your corpus. https://github.com/dbasch/semantic-search-tweets/blob/main/e... For semantic search, you run the same embedding algorithm against the query and take the resultant vectors and do similarity search via matrix ops, resulting in a set of results, with probabilities. These point back to the original source, here the tweets, and you just p
Read the rest
rint the tweet(s) that you select from that result set (here the top 10). https://github.com/dbasch/semantic-search-tweets/blob/main/s... Experts can chime in here but there are knobs such as 'batch size' and the functions you use to index. (cosine was used here.) So the various performance dimensions of the process should also be clear. There is a fixed cost of making the embeddings of your data. There is a per-op embedding of your query, and then running the similarity algorithm to find the result set.
In You probably shouldn't use OpenAI's embeddings

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.