Thimkin more about server-side algos for mast of don, how hard would it be to do a vector db in postgres? Like if you wanted to do fuzzy topic feeds, someone could select some posts as a seed, and those get projected down into an embedding vector, and ...
-
Thimkin more about server-side algos for mast of don, how hard would it be to do a vector db in postgres? Like if you wanted to do fuzzy topic feeds, someone could select some posts as a seed, and those get projected down into an embedding vector, and then you wanted to do a sql query for other posts that have a low vector distance from that seed vector....
-
Emelia πΈπ»replied to jonny (good kind) last edited by [email protected]
@jonny pg supports a vector db, I don't know much because I haven't looked by I think it's an extension called pg_vector
GitHub - pgvector/pgvector: Open-source vector similarity search for Postgres
Open-source vector similarity search for Postgres. Contribute to pgvector/pgvector development by creating an account on GitHub.
GitHub (github.com)
-
jonny (good kind)replied to jonny (good kind) last edited by
Like I'm thinking a mostly human algo - I say that these things are similar to one another by virtue of selecting them as the seed, and then I can further refine it by saying other things are exemplary or non-exemplary, and then I am given a bunch of sliders for weighting simple parameters like how frequently I interact with the other person, etc. The only machine part really is the embedding, and I guess if you count multiplication of features as machine then that too.
-
jonny (good kind)replied to jonny (good kind) last edited by
Really my biggest barrier to working on masto code is I cant figure out how to fucking open an interpreter or debugger in the vagrant machine and so I have to rely on the CI action to run the tests I also write without an interpreter so its like every change has a 30 minute roundtrip to github latency to it
-
jonny (good kind)replied to Emelia πΈπ» last edited by
@thisismissem
Ooooo ok im gonna play around with this -
Emelia πΈπ»replied to jonny (good kind) last edited by
@jonny vagrant ssh should be the command you're looking for; that'll let you ssh into the machine, then you can cd to wherever the code is mounted and the standard rspec should work
-
Emelia πΈπ»replied to jonny (good kind) last edited by
@jonny there's a few interesting ruby libraries mentioned at the bottom of the page including one called disco β you'd probably store likes and boost as recommendation scores
-
jonny (good kind)replied to Emelia πΈπ» last edited by
@thisismissem
Yeah this is what I been doing, but I think I am missing some basic things about the way rspec works, because I can't seem to run individual tests bc it doesn't work the way eg. pytest works where if you run a single test it still executes all the surrounding context helpers and setup/teardown fixtures. And what I'd really like to do is be able to is pop a debugger at breakpoints but for some reason that always crashes either the dev instance or rspec. Probably a me problem more than anything -
Emelia πΈπ»replied to jonny (good kind) last edited by
@jonny rspec <path to test> should be all you need + the debugger keyword that launches you into pry
-
jonny (good kind)replied to Emelia πΈπ» last edited by
@thisismissem
Ya I think it must just be something I have messed up on my system/maybe vagrant doesn't like Macs because that crashes the session, but I appreciate your help and dont want to ask you for tech support for something that's almost definitely a just me problem -
Emelia πΈπ»replied to jonny (good kind) last edited by
@jonny I'm not sure then; fwiw, everyone on the core team uses ruby directly on their machines (tends to reduce the chance of tool failures in my experience)
-
jonny (good kind)replied to Emelia πΈπ» last edited by
@thisismissem
I think that's what im going to do too then, since I usually can't spare the 8-10GB on my teeny weeny laptop anyway. -
Emelia πΈπ»replied to jonny (good kind) last edited by
@jonny rbenv is super easy to setup through homebrew, and fnm is similar for node.js