Better HN
topnewbestaskshowjobs
Log inSign up

mpaepper

652 karma · joined Nov 12, 2013 (13y ago) · 186 submissions

www.paepper.com/blog twitter.com/mpaepper
Submissions

comment 3y ago · link · parent

I use xmonad as a tiling wm, which I guess is quite similar to i3, but what I mean is that you can control all apps with vim like experience a la vimium. For example controlling gimp with vim key bindings. Does i3wm support that?

It sounds like this app for windows does that.

comment 3y ago · link · parent

Wow, does something like this exist for Ubuntu as well?

comment 3y ago · link · parent

I agree it's not so easy to work with Langchain.

That's wy I built the simple LLM agents repo which you can understand in 5 minutes:

https://github.com/mpaepper/llm_agents

64.

US knew about Ukrainian attack on nord stream pipelines(washingtonpost.com ↗)

6 points · by mpaepper · 3y ago · 1 comment

65.

Lawsuit against OpenAI for being a scheme of Y Combinator(twitter.com ↗)

4 points · by mpaepper · 3y ago · 2 comments

comment 3y ago · link · parent

In case you want a much simpler implementation of the ReAct agent with tools, it's here with ~200 loc:

https://github.com/mpaepper/llm_agents

comment 3y ago · link · parent

The big difference is that you get the results immediately and iterations take minutes not days

comment 3y ago · link · parent

Glad to hear that as this was exactly my goal: make this more accessible, because the actual things needed to run it are super simple.

To be fair to langchain, though: I like it a lot and it offers a lot more than my repo, but yeah definitely not the best place to understand how it all plays together.

comment 3y ago · link · parent

I thought about that as well.

Some kind of ensemble agent which is more robust, might play with that idea.

comment 3y ago · link · parent

It might be that it generated both the Thought and Final answer, but my current implementation skips to the end once the final answer is parsed.

So even though there was a thought, I didn't print it

comment 3y ago · link · parent

Basically the tools the agent is using in this repository are like ChatGPT plugins.

comment 3y ago · link · parent

That's a great idea!

comment 3y ago · link · parent

Check out my agent implementation here which is just for fun and to get a better understanding. Maybe you want to contribute?

https://github.com/mpaepper/llm_agents

comment 3y ago · link · parent

I agree that the agents are underappreciated.

To make them more accessible I rewrote them in ~200 lines of code, so you can easily understand how it works.

They have access to a python console, Google search and hacker news search:

https://github.com/mpaepper/llm_agents

75.

Build your own agents which are controlled by LLMs(github.com ↗)

218 points · by mpaepper · 3y ago · 35 comments

comment 3y ago · link · parent

You can do it yourself with this repo and only pay the OpenAI API fees: https://github.com/mpaepper/content-chatbot

comment 3y ago · link · parent

This is awesome work and they also provide their 9B OpenFlamingo model which is based on Llama:

https://huggingface.co/openflamingo/OpenFlamingo-9B

78.

Open Flamingo – open framework to train multimodal LLMs(laion.ai ↗)

265 points · by mpaepper · 3y ago · 25 comments

comment 3y ago · link · parent

I built this repo to do this for your own website content, that should get you a good starting point:

https://github.com/mpaepper/content-chatbot

comment 3y ago · link · parent

Is there a research paper / arxiv which describes it in detail?

comment 3y ago · link · parent

Woah, that's a huge site!

Should be fine, though, as it iterates over it, it creates embeddings and then stores them in the FAISS store (https://github.com/facebookresearch/faiss) which was created to handle a large amount of embeddings.

For the actual queries, it filters it down by the most relevant documents which are closest in the embedding space, so this should work.

Let me know how it goes!

comment 3y ago · link · parent

Thanks for the suggestion, but for my fun small experiment, FAISS was more than enough.

comment 3y ago · link · parent

Yes, this will be an interesting next experiment - adding agents with additional tools (also for example access to internal APIs) will be quite powerful.

comment 3y ago · link · parent

Currently, it only splits documents linearly, so if you have information which is written backwards or things like that, it will likely not work so well.

comment 3y ago · link · parent

Go for it, it's quite easy to do, you only need to adapt the `https://github.com/mpaepper/content-chatbot/blob/main/create...` file a bit to match the way your data is represented and then you are good to go.

comment 3y ago · link · parent

I don't have larger scale experience on this at the moment, but I can tell you what I observed during my trials (also see my related blog entry for some more info: https://www.paepper.com/blog/posts/build-q-and-a-bot-of-your...)

It cost around 0.05$ to create the embeddings for my ~50 blog entries.

Asking a question in the way I've described it also costs around 0.05$ via the API.

comment 3y ago · link · parent

Yep, that's the way it's currently implemented in langchain.

The 4 is a hyperparameter you can change, though, so you could set it to 10 as well.

The way it works is that it first looks up the N most relevant documents (N being 4 in the default case) in the FAISS store relevant to the question, so it uses distance of embedding vectors for this lookup.

Then it uses GPT3 to get summaries of the 4 entries related to the question and finally all the summaries together with the question will lead to the answer.

In doing so, you can trace the source where the answer came from and can also point to that URL in the end.

When you make N larger it just gets more expensive in terms of your API costs.

88.

Leave secret messages for Bing chat on web pages(twitter.com ↗)

2 points · by mpaepper · 3y ago · 1 comment

89.

Your website's content -> Q&A bot / chatbot(github.com ↗)

84 points · by mpaepper · 3y ago · 27 comments

90.

Build a Q&A bot from your website's content using langchain(paepper.com ↗)

1 points · by mpaepper · 3y ago · discuss

1234567