<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Karthik Ravichandran on Medium]]></title>
        <description><![CDATA[Stories by Karthik Ravichandran on Medium]]></description>
        <link>https://medium.com/@tkgravikarthik?source=rss-6025732fc9c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NBcn3kKXaqpvrwkx.</url>
            <title>Stories by Karthik Ravichandran on Medium</title>
            <link>https://medium.com/@tkgravikarthik?source=rss-6025732fc9c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:15:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tkgravikarthik/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cosin similarity is boon or bene in Retrieval and LLM prompt caching?]]></title>
            <link>https://medium.com/codex/cosin-similarity-is-boon-or-bene-in-retrieval-and-llm-prompt-caching-3da946e2fc74?source=rss-6025732fc9c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3da946e2fc74</guid>
            <category><![CDATA[information-retrieval]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[cosine-similarity]]></category>
            <dc:creator><![CDATA[Karthik Ravichandran]]></dc:creator>
            <pubDate>Sun, 31 Mar 2024 12:56:39 GMT</pubDate>
            <atom:updated>2024-03-31T12:56:39.109Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve started to face challenges with Cosine Similarity as I delve into Query Caching. My attempts to lower the expense of accessing the LLM API by utilizing prompt caching were hampered by this issue. Generally, systems like RAG or any vector-based system utilize caching to bypass typical retrieval processes or LLM pass by searching for a similar query that has been submitted previously. If the cosine similarity between the new query and the cached query (with the previous response) exceeds 0.90, then we retrieve the LLM response of the matching query and present it as the response. Here, caching aids in avoiding another LLM API call. However, the problem arises when even a slight change in a word (like Opp. words) within a lengthy sentence can alter the entire meaning, and cosine similarity fails to address this issue.</p><p>For example:</p><ul><li>Context 1: “I’ve started to face the BENEFIT of Cosine Similarity as I delve into Query Caching. My efforts to reduce the expense of accessing the LLM API using prompt caching were hindered by this issue. In general, systems like RAG or any vector-based system use caching to bypass the usual retrieval process or LLM pass by searching for a similar query that has been submitted before. If the cosine similarity between the new query and the cached query (with the previous response) is above 0.90, then we retrieve the LLM response of the matching query and present it as the response. Here, caching aids in avoiding another LLM API call.”</li><li>Context 2: “I’ve started to face the DRAWBACK of Cosine Similarity as I delve into Query Caching. My efforts to reduce the expense of accessing the LLM API using prompt caching were hindered by this issue. In general, systems like RAG or any vector-based system use caching to bypass the usual retrieval process or LLM pass by searching for a similar query that has been submitted before. If the cosine similarity between the new query and the cached query (with the previous response) is above 0.90, then we retrieve the LLM response of the matching query and present it as the response. Here, caching aids in avoiding another LLM API call.”</li></ul><p>The cosine similarity of Context 1 and Context 2 is 0.985. So, if we return the same response for both cases, we are losing the purpose of using LLM. Afaik see, using only “cosine similarity” poses a problem in query/prompt caching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9ZxBLUFuVa9YvxdK" /></figure><p>Reference :</p><p>[1] <a href="https://arxiv.org/pdf/2403.05440.pdf">https://arxiv.org/pdf/2403.05440.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3da946e2fc74" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/cosin-similarity-is-boon-or-bene-in-retrieval-and-llm-prompt-caching-3da946e2fc74">Cosin similarity is boon or bene in Retrieval and LLM prompt caching?</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Better plan to date acquisition to avoid data accusations]]></title>
            <link>https://medium.com/codex/a-better-plan-to-date-acquisition-to-avoid-data-accusations-8d7e8364f27c?source=rss-6025732fc9c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d7e8364f27c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[digital]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Karthik Ravichandran]]></dc:creator>
            <pubDate>Sun, 03 Oct 2021 08:33:45 GMT</pubDate>
            <atom:updated>2021-10-03T10:02:27.452Z</atom:updated>
            <content:encoded><![CDATA[<p>As discussed in my previous<strong> </strong><a href="https://medium.com/codex/just-starting-with-a-data-project-a72f17b14319"><strong>writing</strong></a>, the core and the vital process of a data project is data gathering. There are many cases where data are available readily for one’s consumption. In some cases, however, organizations frequently miss out on this process or are not given enough weightage. The company who relaxed in this area, in their early stage, are the ones who struggle to cope up with their competitors. There are mainly two ways to get data: data collection, and data acquisition. We will see one after the other in the following passages and explore the possibilities of giving hope for a data project if data is not provided enough attention in the early stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*NCTGX1F7nl6EOBOkYHP1pQ.jpeg" /></figure><p>First of all, It’s technically wrong to say data collection is the same terminology as data acquisition; because data acquisition is acquiring data realtime through some means of third party app or standalone devices like, a smartphone which gets data from your phone’s gyroscope or voice recorder, whereas data collection is nothing but collecting existing data from various sources, which has already been acquired or readily available on the internet. So, in the first case, data collection, it’s never a problem to get data in the later stage of a project. In the second case, however, if you have already missed the opportunity of the data acquisition, the only option is to go with data collection, what so ever, you have to compromise some factors a bit, and your competitors are, indeed, way ahead. However, data collection and data acquisition both has a few common enemies: data laws governing this process, restrictions from clients to use their data for general purpose, and ratification from the public for violating their data privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2D34tXtr7EccBBiacuYsA.jpeg" /></figure><p>As far as data collection is concerned, it has two parts: manual data collection, and digital data collection. Manual is as simple as how hard it is to carry out the process- it’s just manual work like taking surveys, asking a set of people to fill a form, or getting movie reviews from the crowd coming out of movie theaters 🎭. This is an efficient way of collecting data only if the population is accommodatable, like a few 100s. However, if the population is high or the data needed to be collected is in millions, our only option is the digital collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAZgVW5BjwTA6YO-KKvzmA.png" /></figure><p>One shouldn’t forget that how a few manual labored companies failed during the digital revolution. It’s the same learning we have to apply for the data collection. Pushing data collection to digital is the only promising way one can scale up and thrive in a future data-intensive world 🌎🌍. Otherwise, it will only end up in continuous restructuring, frequent re-organization, which leads to organizational level decision fatigue. Further, the impact may lead to the end of a company by losing customers, developers, and market shares. However, this has exhorted non-software-based companies to focus on a few data-software projects.</p><p>So, that’s the reason why every company, at least now, wants to get into a data project or have a data product and maintain a data cum software team. End of the day, it gives them a few vital learning in this field even if they fail.</p><p>When it comes to data acquisition, there are …</p><p>Hold on, let’s continue the data acquisition in the next post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d7e8364f27c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/a-better-plan-to-date-acquisition-to-avoid-data-accusations-8d7e8364f27c">A Better plan to date acquisition to avoid data accusations</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just starting with a Data Project!!!]]></title>
            <link>https://medium.com/codex/just-starting-with-a-data-project-a72f17b14319?source=rss-6025732fc9c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a72f17b14319</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Karthik Ravichandran]]></dc:creator>
            <pubDate>Wed, 29 Sep 2021 18:47:10 GMT</pubDate>
            <atom:updated>2021-10-03T00:59:45.132Z</atom:updated>
            <content:encoded><![CDATA[<p>Today is a day that’s supposed to be a dull one- no motivation while getting out of bed and planned to do a lot of reviews and mundane tasks. However, the morning stand-up call changed the perspective of the day. All the managers, fellow employees, and friends are thrilled and excited by a piece of writing that I wrote, yesterday, in a mail; it was regarding the future work that the team is supposed to look into. There were three segments in a pipeline which was explained- data acquisition phase, data cleaning, and data modeling. As far as a data project is concerned these three are the main and core part of the project, though other processes like data wrangling, client discussion, and reinforcement of ideas, which will come in later stage, are not necessary at the beginning. As I got a few positive feedback from them, I want to share it in this online forum, one after the other, daily. To start with, let me give a head start on these three concepts in the following passages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*1q_KWKyjgotAN68pPJq5qw.jpeg" /></figure><p>The data acquisition phase is a phase in which a team gets or fetches data from different sources. It can be either a manual extraction or an automatic task that gets the data without human intervention. This not only gives a larger amount of data but also helps in data analysis. For instance, if I’m creating a dog or cat classifier, we need to collect data from different websites. It can be just data pruning or a public request- one can request the public to get data from them. However, these methods have a few challenges like redundant data, noise during an acquisition , or hampering original data by a hack or other malicious activities. So, for this reason, one should carefully consider data cleaning and in some cases, it’s substantiated as a good practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tPismKuVjSLRTyUO7pm2Q.jpeg" /></figure><p>As discussed in the above paragraph, data cleaning is a vital part of a data science project. It not only helps in creating a better model but also prevents us from misconceptions due to misleading data. Data cleaning is even used in many areas apart from this, for example, we always used to remove oddly-shaped laddo, a high-calorie food, which is made up of jaggery, widely available in the northern part of India, from a sweet pack so that the person see the uniformity. And another example is, in an inter-school competition, teachers prevent some students, who have very low skills in that domain, from participating in the competition, so that all the students from that school will look talented. Ya, these are a few weird analogies that I can think of to confuse you- pun intended. But you can think through it and you will get the point that we always prefer seeing uniformity rather than odds popping out, so similarly, even the model wants uniformity in the data. However, It’s improbable to consider the data cleaning process as an easy one and assumes it impacts positively - sometimes we may end up cleaning or removing important data, which’s, indeed, necessary for a model to capture the variance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*oWzJFwJvlw3Sc-LIcM4Anw.jpeg" /></figure><p>When it comes to modeling, it’s always better to revisit and log the previous two processes- data acquisition and data cleaning. Because, if the previous two steps are not done with utmost care then we may end up in a weak model, which is not useful on any occasion. Anyhow, data modeling is a different process- since a model is always considered as a black box, you neither can alter anything inside the box nor understand the content within, the only thing possible is to understand the characteristic of the model and do some analysis. Further, the model can be influenced or change the course of learning by altering and governing the input feature and tunning parameters.</p><p>Wait!!!! time’s up …..let’s look at all those points again, in detail, in the future posts</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a72f17b14319" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/just-starting-with-a-data-project-a72f17b14319">Just starting with a Data Project!!!</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My International Remote Internship with Rocket ML]]></title>
            <link>https://medium.com/@tkgravikarthik/my-international-remote-internship-with-rocket-ml-7eb5f53c4c7f?source=rss-6025732fc9c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eb5f53c4c7f</guid>
            <category><![CDATA[remote-work]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[rocketml]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Karthik Ravichandran]]></dc:creator>
            <pubDate>Sat, 02 Jun 2018 22:58:14 GMT</pubDate>
            <atom:updated>2018-06-07T19:37:16.205Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s almost three months since I joind RocketML.inc as an intern. Here I just took some instances to write about my experience with the company. Since it is my first remote and international internship, I faced lot of challenges like communication barrier, etiquette of completing and handing over the work for further guidance, and even the time zone of the countries lead and lag of 12 hrs 30 mins. I was asked to report to Mr. Vinay frequently, like every two or three days with a presentation for assessments, I learnt many things as a B.tech student in technical terms as well as in management aspects but here the work and experience gained made some of my skills impeccable .Since I decided to take an international internship in technical company to boost and explore myself to global technical products and problems but here I got something in extra too. Hence I put forth my experience and knowledge gained in these three month with RocketML .The First month I call as <strong><em>Rookie</em></strong> phase, the second month as <strong><em>decision maker</em></strong> and third as a <strong><em>sustain-er</em></strong>.</p><p>First month, the <strong><em>rookie phase,</em></strong>You must be wondered why I used the word rookie instead of newbie because, since I completed my B.tech, from a university where we have flexible time to attend the classes, with very less professional responsibilities and non-accountability nature except technical responsibilities so my attitude was like ,what will happen if I go 15 min late for the meeting ,let’s manage today and will extend the work tomorrow but a month later I can say that I was really trained to handled deadlines and once before I was just technically strong with impulse projection of achievement . But now the consistency increases. Preparing for daily meeting and discussion, Google slide share have to be made to make others understand about my technical-research doubt and should satisfy my need in return, being more conscious in meetings since I am dealing with CEO and CTO of company , who will be packed with many responsibilities and inundated of works to be allotted, obviously .Apart from that I have to be more spontaneous to ask doubt on the spot to mitigate the effect of non-satisfactoryness of the work .These factors slowly helped me to be more accountable and improved my consistency.</p><p>In the first month, days passed with reviewing research articles, understanding the products manufactured by other companies which is in the market and strengthening the basics of Machine learning and biomedical signal areas of mine. From the second month the choice is given to me to select a research area within a parochial boundaries, the area have to be domain degrade further to have a clear insights of the objectives and the objectives should be tested for feasible so that it can be completed within my internship period. I found taking decision (narrowing the topic) really hard since I got many thoughts which lead to ideas as the impact of reviewing too much article. so I’m forced to consult them each and every day by pinging them in the slack. As results of their guidances and suggestions once again the ideas are inundated and starts evolving on day to day basis, ironically .And the goals keeps shifting but the only thing I can strongly record here is my understanding skills and knowledge in the area was constantly developing. One Fine day after getting tired of checking feasibility I fixed my objective and luckily it was approved and guided by both Mr. Vinay and Mr. Santi.</p><p>Third month, the <strong><em>sustain-er.</em></strong> I don’t face any hard time with the company but the research area which I took gave me little more difficulties than I expected .Since I was asked to make a research article which should be at par reference to a highly cited paper, published in strongly repeated journal .So, the quality and quantity of information I have to deal with was too high but for me it’s very important to sustain with the topic ,requirement and should be satisfactory as been expected .The continuous push from Mr. Vinay and the technical advice from Mr. Santi helped me to stay in the track without any fear.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eb5f53c4c7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>