HNHacker News
TopNewBestAskShowJobs

0x008

1,073 karma · joined October 23, 2019

submissionscomments
0x008··on WizardLM 2
They are based on llama2 architecture which performs a lot worse.
0x008··on Evidence that LLMs are reaching a point of diminishing returns
Why should the release GPT-5 if GPT-4 is still at the top of all benchmarks? 95% of the population who are not techies will probably use ChatGPT anyway for everything. I think they are pretty much the leading LLM company in most ways.

It is all financially-driven. All of the AI companies are working on models constantly are are purposely putting out releases so they can be ahead of the game or have some nice news for investors in order to make sure their stocks grow.

OpenAI probably know they are ahead with GPT-5 as well and they are planning to drop it Q3/Q4 after Llama3 (which will maybe trump GPT-4), so they can be ahead again for the EOY earnings.

0x008··on GPT-4 Turbo with Vision Generally Available
Then you might want to look into query routing or function calling.
0x008··on Ask HN: Is RAG the Future of LLMs?
tl;dr

we only need a vector database if we want to do semantic vector-embedding search AND our dataset is too large for memory

long answer:

RAG is just a pattern of working with LLMs, independent of particular database technologies.

Basically it means you inject some context data or domain specific data into the prompt to achieve the following:

1. Nudging the model into the right direction so it will use the "correct parts" of it's "global knowledge". We want to nudge it into the correct domain or a domain very similar to our problem. We do this to generate better answers and reduce hallucinations or to adhere to a particular style we want to achieve. This is basically just a prompt-engineering technique.

2. Achieving in-context learning by providing some context to the model. This is also a prompt engineering technique used to make the model reason about things it does not know from the training and to allow it to reason about a particular text you provide at runtime.

What I just explained is basically the "AG"-Part of RAG: Augmented Generation. It boils down to putting some external data into the context.

The R (Retrieval), on the other hand, is about finding the correct data to put in the context.

If you copy an email and paste into the prompt of ChatGPT, you are basically already doing RAG. The R is copy pasting the Email from Gmail, and the AG is putting it into the Prompt.

So, no, generally speaking you don't need a vector Database.

In the real world you will probably have a large context (some files on the disk, a PDF file, etc.) and you don't want to manually select the relevant bits of information, of course. We want to automate the Retrieval part of RAG. This is mostly what people mean when they talk about "RAG". Essentially it is a information retrieval, or search problem.

A lot of programmers and projects which come from the LLM community will use RAG with a semantic vector search. Semantic vector search has shown to be quite good at selecting relevant context chunks from full text and it also feels natural because it will use embedding models, which are very similar to LLMs. By using vector-embedding search we simulate with a manual step what we think will happen when we put all the data into the LLM context: Selection through semantic interpretation.

In this case we need some form of "vector search", but we do not need a database for that per se, we can also do that in-memory. However, if our dataset is too large to be efficiently processed in-memory, we would need a vector database.

However, we can also use any other means of information-retrieval techniques or search techniques, like keyword search, full-text search, knowledge graphs, sql queries, and many more, to retrieve the relevant bits of information we want to pass to the model.

In that case we also don't need a vector database. Maybe some other database, maybe a search tool like elastic.io, maybe no database at all.

0x008··on Ask HN: Is RAG the Future of LLMs?
I think no matter how large the context windows will get and no matter how fast the inference speeds will get, there will always be break-point where the context we have will be so large, that either cost or inference time are not a good experience in real life, and we have to split up the context.

We cannot simply state that at some point in time RAG will not be necessary. Like everything in the computer science world it always will depend on our data size and the resource constraints we have.

Unless of course we can process a corpus the size of the whole internet in <1 second. However, I doubt this can be achieved in the next 20 years.

0x008··on Ask HN: Is RAG the Future of LLMs?
Speaking as software-developers we have to see RAG as kind of a caching-mechanism.

Instead of computing every token every time on the whole context, we can grab a cache to make some shortcut. We do the same in software development all the time. Of course it's a performance issue.

0x008··on Ask HN: Is RAG the Future of LLMs?
For that a model needs to recursively parse its output. That is not possible with the current architectures, we need Agent Frameworks for that.
0x008··on Ask HN: Is RAG the Future of LLMs?
That is actually already what is happening, tools like llama_index are trying to provide all the necessary integrations.
0x008··on Ask HN: Is RAG the Future of LLMs?
What people are not always considering is that RAG has many more applications than just selecting the relevant context chunks. After all, the R in RAG is not for Vector Search, it is for "Retrieval".

With RAG tools that exist today, we can already do things like

- providing summaries

- hierarchical summarization

- generation of questions / more prompts to nudge the model

- caching

- using knowledge graphs, function calling, or database connectors for non-semantic data querying

etc.

0x008··on Ask HN: Is RAG the Future of LLMs?
I don't understand why knowledge graph would be an alternative to RAG? Knowledge graphs can (and are already) used as part of a RAG pipeline.
0x008··on Ask HN: Is RAG the Future of LLMs?
There is also the problem that most of the LLMs of today will somehow lose (or ignore) the middle if the context and prefer beginning and/or end.
0x008··on GPT-4 Turbo with Vision Generally Available
The use case of “counting objects” is basically completely solved already by yolov8. There is no need to use an LLM for that.
0x008··on Dot – A standalone open source app meant for easy use of local LLMs and RAG
/r/localllama is probably the place where you want to ask your questions. They are very up to date and lots of good recommendations there.
0x008··on Dot – A standalone open source app meant for easy use of local LLMs and RAG
Of all the off the shelf text splitters I have tried, the recursive character splitter actually performs really well. Especially if the chunk size is so large you will likely have more than the actual needed context in a chunk anyway.

Regarding the index usually a mix of BM25 and vector index seems to perform best for most generic data.

0x008··on The lifecycle of a code AI completion
It’s probably Retrieval Augmented Generation? Just wanted to put this here in case somebody is not familiar with this pattern.
0x008··on The lifecycle of a code AI completion
Where would I keep them instead? I always wonder. Let’s say I am developing an app against OpenAI API. Where do I put the OpenAI API Key in VS Code?

As far as I know .env file is the main supported way of setting environmental variables in VS Code.

0x008··on More Agents Is All You Need: LLMs performance scales with the number of agents
This is a very similar idea to ensemble models, which have been used for a long time in ML and proven to be very good. You average out the results of several predictors (or you let them vote and pick the most common prediction value), thereby reducing the noise in the prediction by choosing the common denominator of multiple predictions.
0x008··on Pyenv – lets you easily switch between multiple versions of Python
> Not really sure what you might consider difficult about pyenv

- compiling from source

- need to install build-essentials on docker images which takes up lot of space and takes a long time

0x008··on Pyenv – lets you easily switch between multiple versions of Python
it's not a bug, it's a feature.

just install the different python versions by downloading the binaries or through your package manager and run python3.<whatever_version_you_want> -m venv and the virtual environment will automatically, forever, use that python version when you activate it.

0x008··on Pyenv – lets you easily switch between multiple versions of Python
Now you have poetry installed for every version of python and need to keep track of updating all of those poetry installs.

Python really makes things difficult :D

0x008··on LLM pricing comparison tool
The tool is cool, but very US-centric. There is no possibility to select the Azure Datacenter.. I think pricing is different from NA to EU, if I am not mistaken.
0x008··on Ask HN: If you've used GPT-4-Turbo and Claude Opus, which do you prefer?
apparently GPT-4.5 is only due end of the year, so it will take some more time until GPT5 is released
0x008··on Ask HN: How would you go about meeting a bunch of new people IRL?
I would be very cautious when you learn a new skill like talking to random people and building new connections - which can be extremely rewarding - and connecting that in your brain to alcohol.
0x008··on I asked ChatGPT to summarize 14501 books in 5 bullet points. Here's the result
That is actually possible. You could summarize each book first and then group them and summarize the groups etc. Divide and conquer approach.

This could be easily implemented with langchain for example.

0x008··on Ask HN: How do you learn and research every day?
I look up articles about topics I am intersted in HN and read the comments.

Sometimes I use HN search to look for good threads about a topic.

0x008··on Ask HN: People who switched from GPT to their own models. How was it?
Mixed results. I think llama2 in general is pretty bad, especially at anything else than english. I've had very good results with Mixtral for Chat.

Of course all of them feel like a Frankenstein compared to actual ChatGPT. They feel similar and work just as well until, sometimes, they put out complete and utter garbage or artifacts and you wonder if they skimped on fine-tuning.

0x008··on Ask HN: People who switched from GPT to their own models. How was it?
I tried to use codellama 34B and I think it is pretty bad. For Example I asked it to convert a comment into a docstring and it would hallucinate a whole function around it.
0x008··on Ask HN: People who switched from GPT to their own models. How was it?
That is actually the same idea as the (now) popular "Mixture of Experts" approach.
0x008··on How have you found purpose in your life?
As others already pointed out the simple answer is that "purpose" is a concept that only exists within a rational mind. And rational minds are only known to exist in humans so far. Where does it leave us? Unless you believe in deities, we have to accept that purpose is a human concept and as such is a thing only humans can define. Who else? Considering that you will have a couple of options:

1. Listen to what smart people say and accept their belief about the purpose of life. (by the way most will agree with the above paragraph and accept there is no inherent purpose in life other than what we decide it should be).

2. Listen to what the majority of people say and go with it.

3. Define for yourself.

It is quite clear that number 3 is the one we would recommend, because only this way can you guarantee the purpose of life which you have defined is something that fits to your view in life.

In the end you will maybe see that the question about the "purpose" of life is a paradox. Life exists on itself, without us, and without us reasoning about it. So why would it need a purpose? A purpose implies that there is a design, a creator.

For this reason I dislike the terminology "purpose" and I rather like to say that we may choose to take on a life task.

Due to contrasting and negative experiences in my life I chose my task to be liberation of or from the mind. The basic idea is to liberate ourselves from constant pondering, worrying, and analyzing which our mind is doing constantly because we needed that to gain an evolutional advantage. But mostly we are unharmed today and not in peril, so our mind is underutilized and we develop psychological illnesses. This is my personal take, maybe yours will be different in the end, maybe it will be similar, who knows.

If you are interested to learn more, I can tell you that there are many many variations of it throughout history, some may call it religion, spirituality, meditation, zen, etc. In the end all of these things boil down to looking outside of yourself at the wonders of the world and inside yourself at your own feelings at same time in order to stop our attachment to the mind which is solely concerned with trying to reason about things which are inexplicable. And most religions, be it hinduism, buddhism, taoism, christianity, or whoever have similar takes on this. The idea is living in the present moment instead of in the future or past, where our mind mostly spends it's energy.

Nobody can tell you what the purpose of life is, you have to chose for yourself. If you choose to take on something which has stood the test of time and was formed over thousands and thousands of years, an idea forged by millions of people, you may chose to engage also in the art of letting go, of freeing the mind, of stopping to worry. Or as Patanjali the writer of the famous Yogasutra called it: Stopping to identify with the ebbs and flows of the mind.

There are so many ways to dive into this topic, like Yoga, meditation, or books like Eckart Tolle's "The power of Now", or even a lot more in popular literature. It has helped millions or billions of people in human history to engage in some form of meditative praxis or spirituality, for a good reason.

0x008··on ViHN: Vim for Hacker News
I use https://haxplore.com which has a very nice way to navigate the nested conversations in my opinion.
← PreviousPage 3 of 20Next →