<?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 Emine Egri on Medium]]></title>
        <description><![CDATA[Stories by Emine Egri on Medium]]></description>
        <link>https://medium.com/@eildes06?source=rss-27ea641aa7fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4yS66lYRmUJpFsLi</url>
            <title>Stories by Emine Egri on Medium</title>
            <link>https://medium.com/@eildes06?source=rss-27ea641aa7fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:49:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eildes06/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[Business Processes with Gemini (with Rag Plugin)]]></title>
            <link>https://medium.com/@eildes06/business-processes-with-gemini-with-rag-plugin-477597cf40ce?source=rss-27ea641aa7fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/477597cf40ce</guid>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[rag-application]]></category>
            <dc:creator><![CDATA[Emine Egri]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 20:50:04 GMT</pubDate>
            <atom:updated>2025-02-11T20:50:04.675Z</atom:updated>
            <content:encoded><![CDATA[<p>Business Processes with Gemini (with Rag Plugin)</p><p>I recently attended Devfest2024, one of the technology festivals held in Turkey with the support of google. My topic was “Business processes with Gemini (with Rag plugin). My goal was to propose a solution that would make the work of human resources easier using Gemini. The human resources officer can use it to access the person or people with the desired characteristics in a file without connecting to a specific database. They can also ask detailed questions for a person they are specifically looking for without having to go through the whole resume.</p><p>In the process, I learned that most of the participants are students, so I decided to create content that could help them in their exams. For this, today I will be sharing with you the codes for a helper robot study companion that you can easily make yourself with Gemini. You just need to upload the necessary plugin file for whatever subject you are researching. Let’s say you have two exams tomorrow. For history and math lessons, it will be enough to upload their pdfs (it will be enough to add the library of whatever format you have) to the code block I wrote. You can ask the system the questions you think will come up and create your own study booklet in a short time.</p><p>First of all, I will give some general information about the libraries in this code sequence. As much as possible, I plan to give definitions from the basic level and then move on to the code.</p><p>Gemini</p><p>Gemini, an artificial intelligence product of Google, is an artificial intelligence model that can understand content in different formats such as images, audio and video, as well as writing, planning and learning new things in text. Gemini is one of the major language models (llm) using natural language processing and machine learning technologies.</p><p>Here I used gemini for LLM and embeddings, you can use another model. The important thing in choosing LLM is that the result is consistent and useful for you. Use whichever one works for you.</p><p>Langchain</p><p>Langchain is a python library for developing more complex and powerful applications using large language models. . It is used to do the necessary steps one after the other, like the chain that comes with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*9yukWT-vejB1fpj8" /></figure><p>Vector Database</p><p>Unlike traditional databases, it is a database that stores data as numerical arrays. Since the content is numerical, the similarity between these vectors can be calculated quickly.</p><p>Key features :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*Ulk45mZHC3gikVRl" /></figure><p>Embeddings</p><p>It is the mathematical form of complex data such as text, audio, video in low dimensional continuous vector space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*6TdzFuK0n4-uizSL" /></figure><p>RAG (Retrieval-Augmented Generation),</p><p>It is an artificial intelligence technique used to improve the success and accuracy of large language models.</p><p>RAG has 3 basic components: Retrieval, Augmentation and Generation.</p><p>The most important advantages of this are that it reduces the risk of hallucinations and gives us access to more accurate and up-to-date information. We also have access to more detailed information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/0*5u-dXzPqfZtsKVOD" /></figure><p>String Splitting (Text splitting)</p><p>It is the process of breaking up the text in a certain way in order to better process it. Each piece is called a chunk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/0*w-2odLxmwBKMACN6" /></figure><p>Cosine Similarity</p><p>It is one of the similarity types used in text analysis to measure document similarity, measured by the cosine of the angle between two vectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*iFnNtDrxx0LB3LtW" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*_3Y3_aeQX-zn1l-L" /></figure><p>Chroma</p><p>It is a free and open source vector repository for efficient storage of embeddings and metadata, facilitating the training of large language models that perform semantic search and embedding operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*K6qE6oINKJ3h4s5W" /></figure><p>Hands On</p><p>In this section, I will explain the code details and general operation. In this study, there will be two sample code sequences for human resources and students.</p><p>the basic steps of the study:</p><ul><li>The researcher uploads the resource they want to work on to the system.</li><li>The source is first stripped of unnecessary words.</li><li>It is divided into certain chunks.</li><li>Embeddings of these chunks are created.</li><li>Semantic indexing is done.</li><li>When the researcher asks a question, a similar process is performed and the Knowledge database returns to us 1 answer (I chose the most appropriate 1. You can choose more.).</li></ul><p>The general operation diagram of the code is as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/0*R4mCIRFSa743tiPv" /></figure><p>We start by downloading the necessary libraries.</p><p>And I explain the codes step by step, I do my work in colab, which is high and easy to use.</p><ol><li>I installed the necessary libraries in colab.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/0*cgyLva3mhkLDtBRy" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*d9t4etrTSlf6BZbq" /></figure><p>2. I get my Google api key from colabin keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*zFZ3FWQGa5Sq3rVS" /></figure><p>3. I used a pdf loader here. You can add whatever type of file you will work with to your code. Langchain allows you to upload documents from many environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/0*pzDpZkrV2luYMX78" /></figure><p>4. I split my file into chunks with Recursive Character Text Splitter to improve the quality of my query. The chunk size here has no specific value. You should try and see what works best for you and set the appropriate chunk size and overlap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/0*oT1ZKbuNbr-0hsbs" /></figure><p>5. We translate the texts that we have divided into chunks into the language that the machine understands with GoogleGenerativeA Embeddings. We select our model for our embeddings and give our key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rrCJIQpJzmgAXm-H" /></figure><p>6. This is an interface that will answer the query we give to the document. It contains the chunk that gives the closest answer to the question we asked. The query and the closest answer similarity is done here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DB11XkAIP1pttUDs" /></figure><p>7. In the question asked section, we ask our question to the database. This gives us the closest answer with the number we specify with cosine similarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/0*XpyiJXWIiVDWFzmX" /></figure><p>8. Here we define our LLM, that is, we set up an artificial intelligence that can talk to us like a human being.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RChMPJnMcLVk-tzF" /></figure><p>9. We have a pre-trained model (Gemini). Here, to direct our model, we give it a set of commands that we call prompt. With that prompt, we tell the machine what we want from the machine. With Langchain, we ensure that it first searches for the result we want in the vector database and then responds to the prompt we give it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6s1mbQPyvm2NLOHW" /></figure><p>10. We activate the chain we have created here with our question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*t1IJToM6VBS33YYH" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*I0ZjtDlYe6WPJ6di" /></figure><p>11. For example, when you ask a question that is not in the document, it gives an answer like this information is not in the text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gNXFeYB-S-i4r-Or" /></figure><p>12. When we move to the study buddy example for students, we upload a book and prepare our own notes. There is no change in the code in this part, only the pdf we upload is different. I uploaded a machine learning note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P6P-MipcE_tk4VFQ" /></figure><p>13. In this example, we define our Prompt, that is, the task that the machine will do. We say that you are a machine learning instructor, answer the questions asked clearly and clearly in 7 sentences using this resource. If the question I am looking for is not here, write that this information is not available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c7o6c_xSvJXN_le0" /></figure><p>14. Now we can ask our questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*1q9L98EXhWJFc8Ur" /></figure><p>15. Let’s ask one more question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/0*yEujIzmqNgPRrMUt" /></figure><p>16. Let’s ask a numerical question. There were not many numerical questions in this booklet, but if there are any in the one you added, they will answer you successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b7v6zcJ46GwassRq" /></figure><p>You can use these codes to do research any field you want. You can create a notebook for yourself. You can ask detailed questions about a specific document.</p><p>You can contact me to reach the colab file of my work. you can reach me via <a href="https://www.linkedin.com/in/emine-ildes-egri/">linkedin</a>.</p><p><em>See you in my next work, a detailed chatbot example…</em></p><p>References</p><p><a href="https://claude.ai/chat/9e27b194-7740-429c-8d92-ed4957ec9ce2">https://claude.ai/chat/9e27b194-7740-429c-8d92-ed4957ec9ce2</a></p><p><a href="https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai">https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai</a></p><p><a href="https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai">https://medium.com/global-ai-hub/langchain-temelleri-10963adefccd</a></p><p><a href="https://www.unite.ai/tr/python%27da-langchain-ile-s%C4%B1f%C4%B1rdan-geli%C5%9Fmi%C5%9F-istem-m%C3%BChendisli%C4%9Fine/">https://www.unite.ai/tr/python%27da-langchain-ile-s%C4%B1f%C4%B1rdan-geli%C5%9Fmi%C5%9F-istem-m%C3%BChendisli%C4%9Fine/</a></p><p><a href="https://medium.com/@rojtoy_92536/langchain-b%C3%BCy%C3%BCk-dil-modelleri-ile-uygulama-geli%C5%9Ftirme-%C3%A7er%C3%A7evesi-67a627e09d7f">https://medium.com/@rojtoy_92536/langchain-b%C3%BCy%C3%BCk-dil-modelleri-ile-uygulama-geli%C5%9Ftirme-%C3%A7er%C3%A7evesi-67a627e09d7f</a></p><p><a href="https://www.oracle.com/tr/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/">https://www.oracle.com/tr/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/</a></p><p><a href="https://cbarkinozer.medium.com/almayla-artt%C4%B1r%C4%B1lm%C4%B1%C5%9F-%C3%BCretim-y%C3%B6ntemi-rag-nedir-e0ac458de13f">https://cbarkinozer.medium.com/almayla-artt%C4%B1r%C4%B1lm%C4%B1%C5%9F-%C3%BCretim-y%C3%B6ntemi-rag-nedir-e0ac458de13f</a></p><p><a href="https://cdn.prod.website-files.com/63ccf2f0ea97be12ead278ed/65c1e9339899b6ff2d90a1ed_Learn%20about%20Vector%20Database%20(2)-p-800.png">https://cdn.prod.website-files.com/63ccf2f0ea97be12ead278ed/65c1e9339899b6ff2d90a1ed_Learn%20about%20Vector%20Database%20(2)-p-800.png</a></p><p><a href="https://www.datagravity.dev/p/what-does-langchain-do">https://www.datagravity.dev/p/what-does-langchain-do</a></p><p><a href="https://medium.com/global-ai-hub/langchain-temelleri-10963adefccd">https://medium.com/global-ai-hub/langchain-temelleri-10963adefccd</a></p><p><a href="https://medium.com/@duzgunberke/vekt%C3%B6rel-database-nedir-ne-i%C5%9Fe-yarar-f832b30421ac">https://medium.com/@duzgunberke/vekt%C3%B6rel-database-what-is-what-i%C5%9Fe-useful-f832b30421ac</a></p><p><a href="https://www.datastax.com/guides/what-is-a-vector-embedding">https://www.datastax.com/guides/what-is-a-vector-embedding</a></p><p><a href="https://datos.gob.es/en/blog/rag-retrieval-augmented-generation-key-unlocks-door-precision-language-models">https://datos.gob.es/en/blog/rag-retrieval-augmented-generation-key-unlocks-door-precision-language-models</a></p><p><a href="https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai">https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai</a></p><p><a href="https://datascience.stackexchange.com/questions/80840/is-summing-a-cosine-similarity-matrix-a-good-way-to-determine-overall-similarity">https://datascience.stackexchange.com/questions/80840/is-summing-a-cosine-similarity-matrix-a-good-way-to-determine-overall-similarity</a></p><p><a href="https://kdb.ai/learning-hub/articles/methods-of-similarity/">https://kdb.ai/learning-hub/articles/methods-of-similarity/</a></p><p><a href="https://medium.com/@kbdhunga/an-overview-of-chromadb-the-vector-database-206437541bdd">https://medium.com/@kbdhunga/an-overview-of-chromadb-the-vector-database-206437541bdd</a></p><p><a href="https://towardsai.net/p/machine-learning/rag-the-power-of-text-splitting-for-improving-retrieval-a-developers-handbook">https://towardsai.net/p/machine-learning/rag-the-power-of-text-splitting-for-improving-retrieval-a-developers-handbook</a></p><p><a href="https://www.google.com/imgres?q=langchain%20&amp;imgurl=https%3A%2F%2Fcommunity.intersystems.com%2Fsites%2Fdefault%2Ffiles%2Finline%2Fimages%2Fimages%2Fimage(6597).png&amp;imgrefurl=https%3A%2F%2Fcommunity.intersystems.com%2Fpost%2Fstep-step-guide-create-personalized-ai-chatgpt-using-langchain&amp;docid=adcS3dP_gRco4M&amp;tbnid=oBkhxLHUFQIkCM&amp;vet=12ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA..i&amp;w=1205&amp;h=585&amp;hcb=2&amp;ved=2ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA">https://www.google.com/imgres?q=langchain%20&amp;imgurl=https%3A%2F%2Fcommunity.intersystems.com%2Fsites%2Fdefault%2Ffiles%2Finline%2Fimages%2Fimages%2Fimage(6597).png&amp;imgrefurl=https%3A%2A%2F%2Fcommunity.intersystems.com%2Fpost%2Fstep-step-guide-create-personalized-ai-chatgpt-using-langchain&amp;docid=adcS3dP_gRco4M&amp;tbnid=oBkhxLHUFQIkCM&amp;vet=12ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA..i&amp;w=1205&amp;h=585&amp;hcb=2&amp;ved=2ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=477597cf40ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gemini ile iş Süreçleri (Rag Eklentisi ile) Bölüm 2]]></title>
            <link>https://medium.com/@eildes06/gemini-ile-i%C5%9F-s%C3%BCre%C3%A7leri-rag-eklentisi-ile-b%C3%B6l%C3%BCm-2-9965bfac9ce5?source=rss-27ea641aa7fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9965bfac9ce5</guid>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[langchain-applications]]></category>
            <dc:creator><![CDATA[Emine Egri]]></dc:creator>
            <pubDate>Tue, 28 Jan 2025 15:53:13 GMT</pubDate>
            <atom:updated>2025-01-28T15:53:13.125Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Hands On</strong></h4><p>Yazının birinci kısmında kullanılan araç ve detayları vermiştim. Bu yazıya aşağıdaki linkten ulaşabilirsiniz.</p><p><a href="https://medium.com/@eildes06/llm-ile-i%CC%87%C5%9F-s%C3%BCre%C3%A7leri-rag-eklentisi-ile-b%C3%B6l%C3%BCm-1-f7fd6d821044">https://medium.com/@eildes06/llm-ile-i%CC%87%C5%9F-s%C3%BCre%C3%A7leri-rag-eklentisi-ile-b%C3%B6l%C3%BCm-1-f7fd6d821044</a></p><p>Bu kısımda kod detayları ve genel işleyişi anlatacağım. Bu çalışmada insan kaynakları ve öğrenciler için iki örnek kod dizimi yer alıyor olacak.</p><p>Çalışmanın temel adımları :</p><ul><li>Araştırmacı üzerine çalışmak istediği kaynağı sisteme yükler.</li><li>Kaynak önce gereksiz kelimelerden ayrıştırılır.</li><li>Belli chunklara ayrılır.</li><li>Bu chunkların embedingleri oluşturulur.</li><li>Anlamsal dizin oluşturma (semantic index) yapılır.</li><li>Araştırmacı bir soru sorduğunda bunun için de benzer işlemler yapılarak Knowledge database de bizim belirlediğimiz sayıda sorumuza en uygun 1 cevap (Ben en çok uyan 1 taneyi seçtim. Siz daha fazlasını seçebilirsiniz.) bize döner.</li></ul><p>Kodun genel işleyiş diyagramı aşağıdaki gibidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/0*cA7jIo_sHQWMcQNd" /></figure><p>Gerekli kütüphanelerin indirilmesi ile işe başlıyoruz.</p><p>Ve adım adım kodları anlatıyorum, çalışmamı kullanım oranı yüksek ve kolay olan colabde yapıyorum.</p><ol><li>Gerekli kütüphaneleri colabe yüklüyorum.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/0*vgV2bVz37oOpiViu" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*psFdB1BEHi4tJxUC" /></figure><p>2. Google api Key`imi colabin anahtarları arasından alıyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*UpC0XinV35lmzkA3" /></figure><p>3. Burda pdf loader kullandım. Siz hangi tip dosya ile çalışacaksanız onu kodunuza ekleyebilirsiniz. Langchain pek çok ortamdan döküman yüklemenizi sağlar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/0*3jNWdkodt-CVJQCe" /></figure><p>4. Dosyamı sorgumun kalitesini artırmak için Recursive Character Text Splitter ile chunklara ayırıyorum. Buradaki chunk size`in belirli bir değeri yok. Dene-gor seklinde size en uygun chunk-size ve overlap ayarlamanız gerekir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/0*Rq11DmGIKwaDlK1G" /></figure><p>5. Chunklara ayırdığımız Textleri`i GoogleGenerativeA Embeddings ile makinenin anlayacağı dile çeviriyoruz. Embedding`lerimiz için modelimizi seçiyor ve keyimizi veriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZhxfEFA1qJmNgld-" /></figure><p>6. Burası dökümana bizim verdiğimiz sorguyu cevaplayacak bir arabirimdir. Bizim sorduğumuz soruya en yakın cevap veren chunku içeriyor. Sorgu ve en yakın cevap benzerligi burda yapılıyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V7xEjhfvrYfr9DpY" /></figure><p>7. Soru sorulan kısımda sorumuzu database soruyoruz. Bu bize cosine similarity ile bizim belirttiğimiz sayıda en yakın cevabı veriyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/0*h7x4N9tlNsNKxy1Z" /></figure><p>8. Burda LLM`mizi tanımlıyoruz .Yani bizimle insan gibi konuşabilecek bir yapay zeka ayarlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O_xuRZs3MEwnDsDo" /></figure><p>9. Elimizde önceden eğitilmiş bir model var(Gemini). Burda modelimizi yönlendirmek için ona prompt dediğimiz bir emir seti veriyoruz. O prompt ile makineden ne istediğimizi makineye söylüyoruz. Langchain ile de istediğimiz sonucu öncelikle vector databasede aramasını, takiben verdigimiz prompt üzerinden cevaplamasını sağlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0D48B5pYe5J4RRNB" /></figure><p>10. Burada oluşturduğumuz zinciri sorumuz ile harekete geçiriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*lEtmTjf7rFtR_DJz" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*Xw_eHRqnmH8bOa_y" /></figure><p>11. Mesela dökümanda olmayan bir soru sorduğunuzda bu bilgi metinde yok gibi bir cevap veriyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7L5FhPS1fSyyPLwc" /></figure><p>12. Öğrenciler için çalışma arkadaşı örneğine geçtiğimizde ise, bir kitap yükleyip kendi notlarımızı hazırlıyoruz. Bu kısımda kod üzerinde değişme yok sadece yüklediğimiz pdf farklı. Ben bir makine öğrenmesi notu yükledim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8WoyDVWXuN7nQx34" /></figure><p>13. Bu örnek içinde Promtumuzu yani makinenin yapacağı görevi belirliyoruz. Diyoruz ki sen bir makina öğrenim eğitmenisin sorulan sorulara bu kaynağı kullanarak 7 cumlede açik ve net bir sekilde cvp ver. Eğer aradığım soru burda yoksa bu bilgi mevcut değil yaz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZspViWzeUdgfCFOp" /></figure><p>14. Şimdi artık sorularımızı sorabiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*aP5-I6DHavarknqr" /></figure><p>15. Bir soru daha soralım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/0*B7x7wAmXVM4iJVat" /></figure><p>16. Bir de sayısal soru soralım. Bu kitapçıkta çok sayısal yoktu ama sizin eklediğinizde var ise başarılı bir şekilde size cevap verecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j3C3xTqG2nsMLf1K" /></figure><p>Sizde bu kodları kullanarak araştırma yapmak istediğiniz alanda calısma yapabilirsiniz. Kendiniz için not defteri oluşturabilirsiniz. Belli bir dökümana ait detay sorular sorabilirsiniz.</p><p>Calışmamın colab dosyasına ulaşmak için benimle iletişime geçebilirsiniz. <a href="https://www.linkedin.com/in/emine-ildes-egri/">linkedin</a> üzerinden ulaşabilirsiniz.</p><p><em>Bir sonraki çalışmam olan detaylı bir chatbot örneğinde görüşmek üzere…</em></p><p>Referanslar</p><p><a href="https://claude.ai/chat/9e27b194-7740-429c-8d92-ed4957ec9ce2">https://claude.ai/chat/9e27b194-7740-429c-8d92-ed4957ec9ce2</a></p><p><a href="https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai">https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai</a></p><p><a href="https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai">https://medium.com/global-ai-hub/langchain-temelleri-10963adefccd</a></p><p><a href="https://www.unite.ai/tr/python%27da-langchain-ile-s%C4%B1f%C4%B1rdan-geli%C5%9Fmi%C5%9F-istem-m%C3%BChendisli%C4%9Fine/">https://www.unite.ai/tr/python%27da-langchain-ile-s%C4%B1f%C4%B1rdan-geli%C5%9Fmi%C5%9F-istem-m%C3%BChendisli%C4%9Fine/</a></p><p><a href="https://medium.com/@rojtoy_92536/langchain-b%C3%BCy%C3%BCk-dil-modelleri-ile-uygulama-geli%C5%9Ftirme-%C3%A7er%C3%A7evesi-67a627e09d7f">https://medium.com/@rojtoy_92536/langchain-b%C3%BCy%C3%BCk-dil-modelleri-ile-uygulama-geli%C5%9Ftirme-%C3%A7er%C3%A7evesi-67a627e09d7f</a></p><p><a href="https://www.oracle.com/tr/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/">https://www.oracle.com/tr/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/</a></p><p><a href="https://cbarkinozer.medium.com/almayla-artt%C4%B1r%C4%B1lm%C4%B1%C5%9F-%C3%BCretim-y%C3%B6ntemi-rag-nedir-e0ac458de13f">https://cbarkinozer.medium.com/almayla-artt%C4%B1r%C4%B1lm%C4%B1%C5%9F-%C3%BCretim-y%C3%B6ntemi-rag-nedir-e0ac458de13f</a></p><p><a href="https://cdn.prod.website-files.com/63ccf2f0ea97be12ead278ed/65c1e9339899b6ff2d90a1ed_Learn%20about%20Vector%20Database%20(2)-p-800.png">https://cdn.prod.website-files.com/63ccf2f0ea97be12ead278ed/65c1e9339899b6ff2d90a1ed_Learn%20about%20Vector%20Database%20(2)-p-800.png</a></p><p><a href="https://www.datagravity.dev/p/what-does-langchain-do">https://www.datagravity.dev/p/what-does-langchain-do</a></p><p><a href="https://medium.com/global-ai-hub/langchain-temelleri-10963adefccd">https://medium.com/global-ai-hub/langchain-temelleri-10963adefccd</a></p><p><a href="https://medium.com/@duzgunberke/vekt%C3%B6rel-database-nedir-ne-i%C5%9Fe-yarar-f832b30421ac">https://medium.com/@duzgunberke/vekt%C3%B6rel-database-nedir-ne-i%C5%9Fe-yarar-f832b30421ac</a></p><p><a href="https://www.datastax.com/guides/what-is-a-vector-embedding">https://www.datastax.com/guides/what-is-a-vector-embedding</a></p><p><a href="https://datos.gob.es/en/blog/rag-retrieval-augmented-generation-key-unlocks-door-precision-language-models">https://datos.gob.es/en/blog/rag-retrieval-augmented-generation-key-unlocks-door-precision-language-models</a></p><p><a href="https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai">https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai</a></p><p><a href="https://datascience.stackexchange.com/questions/80840/is-summing-a-cosine-similarity-matrix-a-good-way-to-determine-overall-similarity">https://datascience.stackexchange.com/questions/80840/is-summing-a-cosine-similarity-matrix-a-good-way-to-determine-overall-similarity</a></p><p><a href="https://kdb.ai/learning-hub/articles/methods-of-similarity/">https://kdb.ai/learning-hub/articles/methods-of-similarity/</a></p><p><a href="https://medium.com/@kbdhunga/an-overview-of-chromadb-the-vector-database-206437541bdd">https://medium.com/@kbdhunga/an-overview-of-chromadb-the-vector-database-206437541bdd</a></p><p><a href="https://towardsai.net/p/machine-learning/rag-the-power-of-text-splitting-for-improving-retrieval-a-developers-handbook">https://towardsai.net/p/machine-learning/rag-the-power-of-text-splitting-for-improving-retrieval-a-developers-handbook</a></p><p><a href="https://www.google.com/imgres?q=langchain%20&amp;imgurl=https%3A%2F%2Fcommunity.intersystems.com%2Fsites%2Fdefault%2Ffiles%2Finline%2Fimages%2Fimages%2Fimage(6597).png&amp;imgrefurl=https%3A%2F%2Fcommunity.intersystems.com%2Fpost%2Fstep-step-guide-create-personalized-ai-chatgpt-using-langchain&amp;docid=adcS3dP_gRco4M&amp;tbnid=oBkhxLHUFQIkCM&amp;vet=12ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA..i&amp;w=1205&amp;h=585&amp;hcb=2&amp;ved=2ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA">https://www.google.com/imgres?q=langchain%20&amp;imgurl=https%3A%2F%2Fcommunity.intersystems.com%2Fsites%2Fdefault%2Ffiles%2Finline%2Fimages%2Fimages%2Fimage(6597).png&amp;imgrefurl=https%3A%2F%2Fcommunity.intersystems.com%2Fpost%2Fstep-step-guide-create-personalized-ai-chatgpt-using-langchain&amp;docid=adcS3dP_gRco4M&amp;tbnid=oBkhxLHUFQIkCM&amp;vet=12ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA..i&amp;w=1205&amp;h=585&amp;hcb=2&amp;ved=2ahUKEwi9qoaNlYmLAxXGS_EDHduxFG4QM3oECH0QAA</a></p><p>#y</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9965bfac9ce5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM ile İş Süreçleri (Rag Eklentisi ile) Bölüm 1]]></title>
            <link>https://medium.com/@eildes06/llm-ile-i%CC%87%C5%9F-s%C3%BCre%C3%A7leri-rag-eklentisi-ile-b%C3%B6l%C3%BCm-1-f7fd6d821044?source=rss-27ea641aa7fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7fd6d821044</guid>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[gemini-api]]></category>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[rag-application]]></category>
            <dc:creator><![CDATA[Emine Egri]]></dc:creator>
            <pubDate>Wed, 22 Jan 2025 15:46:21 GMT</pubDate>
            <atom:updated>2025-01-22T15:46:21.759Z</atom:updated>
            <content:encoded><![CDATA[<p>Geçtiğimiz günlerde google tarafından desteklenen teknoloji festivallerinden biri olan Devfest2024&#39;e katıldım. Konum “Gemini ile İş Süreçleri (Rag eklentisi ile) idi. Amacım LLM kullanarak insan kaynaklarının işini kolaylaştıracak bir çözüm önermekti. İnsan kaynakları, belirli bir veritabanına bağlanmadan bir dosyadaki istenen özelliklere sahip kişi veya kişilere erişmek için bu kodları kullanabilir. Bireysel bir özgeçmişte de tüm özgeçmişi incelemek zorunda kalmadan o kisi icin detay sorular sorabilirler.</p><p>Katılımcıların çoğunun ögrenci oldugunu öğrendikten sonra bir örnek de ögrenciler icin ekledim. Kodda gerekli degisiklikleri yaparak onlara sınav çalışırken yardımcı olacak calışma arkadaşı yaptım.</p><p>Araştırdığınız konu ne ise o konu için gerekli eklenti dosyasını yüklemeniz yeterli. Diyelim ki yarın tarih ve matematikten iki sınavınız var. Bu dersler için gerekli pdf’leri (elinizde hangi formatta dosya varsa) yazdığım kod bloğuna yüklemeniz yeterli olacaktır. Çıkacağını düşündüğünüz soruları sisteme sorabilir ve kısa sürede kendi çalışma kitapçığınızı oluşturabilirsiniz.</p><p>Öncelikle bu kod dizisinde yer alan kütüphaneler hakkında bazı genel bilgiler vereceğim. Mümkün olduğunca temel seviyeden tanımları verip daha sonra kodlara 2. bölümde geçeceğim.</p><p><strong>Gemini</strong></p><p>Google’ın bir yapay zeka ürünü olan Gemini, metin içinde yazma, planlama ve yeni şeyler öğrenmenin yanı sıra resim, ses ve video gibi farklı formatlardaki içerikleri de anlayabilen bir üretken yapay zeka modelidir. Gemini, doğal dil işleme ve makine öğrenimi teknolojilerini kullanan önemli buyuk dil modellerinden (llm) biridir.</p><p>Burada model ve embeddings olarak gemini kullandım, siz başka bir model kullanabilirsiniz. LLM seçiminde önemli olan sonucun tutarlı ve sizin için kullanışlı olmasıdır. Hangisi işinize yarıyorsa onu kullanın.</p><p><strong>Langchain</strong></p><p>Daha karmaşık ve guclu uygulamalari gelistirmek icin büyük dil modellerini kullanan bir python kütüphanesidir. İsminden gelen zincir ifadesi ile gerekli adımları birbiri ardına yapar. Kendi içerisinde işimizi kolaylastiracak bir cok arac bulunur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*UOOwpr4yDWRZspZL" /></figure><p><strong>Vektör Veritabanı</strong></p><p>Geleneksel veri tabanlarından farklı olarak verileri sayısal diziler halinde saklayan bir veri tabanıdır. İçerik sayısal olduğu için bu vektörler arasındaki benzerlik hızlı bir şekilde hesaplanabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*Tb9TVxw7Xeu5ESA2" /></figure><p><strong>Gömüler(Embeddings)</strong></p><p>Metin, ses, video gibi karmaşık verilerin düşük boyutlu, sürekli vektör sekline cevrilmis matematiksel donusum yontemidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*8ff2kL2jasnd_gdd" /></figure><p><strong>RAG (Geri Alma-Ağırlaştırılmış Üretim)</strong></p><p>Büyük dil modellerinin başarısını ve doğruluğunu artırmak için kullanılan bir yapay zeka tekniğidir.</p><p>RAG’nin 3 temel bileşeni vardır: Geri Alma, Güçlendirme ve Üretme.</p><p>Bunun en önemli avantajları halüsinasyon riskini azaltması ve daha doğru ve güncel bilgilere ulaşmamızı sağlamasıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/0*MUngSAxazK9wE1yA" /></figure><p><strong>Dize Bölme (Text splitting)</strong></p><p>Metni daha iyi işleyebilmek için belirli bir şekilde parçalara ayırma işlemidir. Her bir parçaya yığın(chunk) denir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/0*ruRrfxRFHEyjecWf" /></figure><p><strong>Kosinüs Benzerliği</strong></p><p>Metin analizlerinde belge benzerliğini ölçmek için kullanılan benzerlik türlerinden biridir, iki vektör arasındaki açının kosinüsü ile ölçülür.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*CT1zaaFBFVipXY0E" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*7dZm_K6A9aoJtxD8" /></figure><p>Chroma</p><p>Gömme ve meta verilerin verimli bir şekilde depolanması için ücretsiz ve açık kaynaklı bir vektör deposudur. Anlamsal arama ve gömme işlemleri gerçekleştirerek büyük dil modellerinin eğitimini kolaylaştırır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*TJt0QrhSxtumtmjI" /></figure><p><em>Yazının ikinci kısmında genel işleyiş, insan kaynakları calışma örneği ve öğrenci calışma arkadaşı örneği yer alacaktır.</em></p><p><em>Yazının ikinci kısmı ve diğer yazılarda görüşmek üzere….</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7fd6d821044" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>