News for hackers. Stuff that matters.
Re:TinyStories: How Small Can Language Models Be and Still S... by Pamar on Thursday January 02, 2025 @07:40PM (#42580782)
Another is how you index your docs. Today, most RAG approaches do not encode enough information....

Could you please provide some more info (or maybe links) about this, please?

Re:TinyStories: How Small Can Language Models Be and Still S... by antman on Friday January 03, 2025 @01:33AM (#42583124)
I think he might be saying, have metadata in your vector retrieval that describe the domain of the retrieved chunk and use that as a decision on which model to use downstream. Sounds like very interesting improvement of RAG
Re:TinyStories: How Small Can Language Models Be and Still S... by ankit219 on Friday January 03, 2025 @06:24PM (#42590599)
I don't have links unfortunately.

What I meant was that at the time of indexing, you can add more information to any chunk. This[1] is a simple example by Anthropic where they add more relevant context. In our case, say you have two models, D1 and D2. At the time of creating a vector store, you can add which model is more suitable to a chunk, so that when you retrieve it, you use the same model for inference. This is custom built, very dependent on datasets, but would get you to the functionality described. I suggest this approach when there are linkages between various docs (eg: financial statements/earning calls etc.).

[1]: https://www.anthropic.com/news/contextual-retrieval

Re:TinyStories: How Small Can Language Models Be and Still S... by Pamar on Saturday January 04, 2025 @10:02AM (#42595072)
Thanks... I also have another lingering doubt about the ability of RAG to make sense of "history", i.e. how to make sure that a more recent document on a given topic has more "weight" than older documents on the same issue.

I try to explain this a bit better here: https://pa-mar.net/Study/AiKiDo/VirtualBudoPass.html

Re:TinyStories: How Small Can Language Models Be and Still S... by ankit219 on Sunday January 05, 2025 @07:50AM (#42601434)
This is done at a reranking step. It's again custom. You have two variables - 1/ relevance (which most algos focus on) 2/ Date. Create a new score based on some combination of weights for relevance and date. Eg; Could be 50% of date. If the document has 70% relevance, but was published yesterday, it's overall score would be 85%. (A conceptual idea). This is similar to how you do weighted sorting anywhere.
Re:TinyStories: How Small Can Language Models Be and Still S... by Pamar on Tuesday January 07, 2025 @10:42AM (#42623570)
Thank you!

Btw, I notice only now that the link that was supposed to explain my question better is completely wrong.

https://news.ycombinator.com/item?id=42589014

(But you still provided much needed clarification).

Re:TinyStories: How Small Can Language Models Be and Still S... by ankit219 on Tuesday January 07, 2025 @12:11PM (#42624730)
No worries. If you need any specific help with the use case, please feel free to reach out on my email. ankit at clioapp.ai