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

cepstrum9

no profile record

投稿

[untitled]

1 ポイント·投稿者 cepstrum9·2 か月前·0 コメント

Poking Around ChatGPT's Sandbox

mkarots.github.io
1 ポイント·投稿者 cepstrum9·4 か月前·0 コメント

Show HN: Portable RAG (Open Source)

4 ポイント·投稿者 cepstrum9·4 か月前·0 コメント

Show HN: Raglet(open-source)–portable RAG for small text corpora (no infra)

github.com
2 ポイント·投稿者 cepstrum9·4 か月前·1 コメント

Built a small tool to decouple prompts from code

github.com
1 ポイント·投稿者 cepstrum9·7 か月前·1 コメント

コメント

cepstrum9
·4 か月前·議論
neat minimalistic tool, giving it a go now, thanks for posting :)
cepstrum9
·4 か月前·議論
[dead]
cepstrum9
·4 か月前·議論
There's a class of text that's too big for a context window but too small to justify a vector database. A codebase, a folder of notes, a Slack export. I built a small library - raglet - to solve this problem raglet for it. The idea is that you can create small knowledge bases - "raglets" out of local directories.

i.e

from raglet import RAGlet rag = RAGlet.from_files(["docs/", "notes.md"]) results = rag.search("what did we decide about the API design?", top_k=5) rag.save("my-notes")

Load it anywhere rag = RAGlet.load("my-notes")

Local embeddings (sentence-transformers, no API keys), saves to a plain directory you can git commit.

The benchmark numbers were more interesting than I expected: 1 MB (~262K tokens) | 3.5s build | 3.7ms search 10 MB (~2.6M tokens) | 35s build | 6.3ms search 100 MB (~26M tokens) | 6min build | 10.4ms search Honest limitations: .txt and .md only right now (PDF/DOCX is next), no file change detection, ~100 MB practical ceiling before build time gets unwieldy.

What would make this useful for your workflow? Would love to get your feedback.
cepstrum9
·7 か月前·議論
hey all, while working on a SaaS im building, I had the need to decouple my prompts for code, so i could manage & organise them better, and I ended up building a small CLI tool to do that. the idea is that you can store prompts in yaml, version them and programmatically use them by ID. thats it, lmk what you think!