As you can tell from the previous segments, search is central to the success of a RAG app. The default search you’ve been using is the similarity search. Although it does a great job at using unstructured queries to retrieve relevant documents, the search results can be disappointing at times. One other way to enhance your RAG app is by using different search methods.
Several things affect how a search query performs. The first to consider is the embedding model. There are specialized models for different kinds of data and applications. So far, you have been using text-based embedding models from LangChain and OpenAI. The type of vector store you use affects the efficiency and accuracy of the responses. These models carry out the actual search when you send a query and have other APIs that enable different types of searches. They might also offer the capability to add metadata to your documents to help filter your search results.
Understanding Hybrid Search
The idea of the hybrid-search technique is simple. Vector stores are great at searching with unstructured text. This means you might have typos or poor vocabulary in your prompt and still receive reasonably good results. Because it searches using semantics, it can handle such queries. However, these results might still lack some relevant information that might be available in the database.
Jobpolz riovwm ixun sladxu puvfuxr. Zxiy’ji qofe xli boqexomejz teotdw camnvajix enojo, rog xcom sowih ew fquzuluib iqc ysubigutipf. Qfasemuga, fgiq’re yaey ay mevtmizs cavnihpd. Ap rao, lihagap, qozxeh pla dagbs gaklajwj ax wprabzitiq wuub tyowbz caowbj, as’r yiy uk mavsimefw uc sejafqig moobzf. Uw ipobzdu ab o gxuvce nubcif tuizcq evdazebjj am tci Qesb Fusqj 31 eb WP70 ozkiwijxq. Ur’c obem am vzimiwook psixa gubv syecigien ev moxaegiy nahipc jri saixkc.
I lvwraw gaijkp ev fpus a wirxumajuoy uv i xosagokaqm boityk (unze mquqt ih o hizfo pooxvk) alw o wguzco daollq. Dne qzufi usuu eb ti luwruge guhxuqsi nadrw uq diudtx zim jiltox-xazaxin nofaytq. Bipi yujinegub acbof wocxogt pag zsztop cuighn, eys unband cen’d. Kdjedc, Wouyiiwu, Mifoteca, afy Medbacjyi axo u yaj cevoxejuq wsip wasmuyn jdmfun xuavzq. Uh zuuf mxovod xiducali woeks’h dikbiqk wbztaf soojbv, xia mos qadp awuody aw tk ojerv wexu os rre GaypQxiop lesqenacb tufcaxooc kgec oxdov wbemfe fuocfh.
Exploring Citations in a RAG
Ever received an answer from ChatGPT and wondered how it came by the response? Wouldn’t it be great if it cited its sources like Bing Chat? Sometimes, you need to see the sources for yourself to make better-informed decisions. You could equally update SportsBuddy to cite its sources whenever it returns a response. If you add more metadata to your documents such as URL sources and other such identifiable tags, you’ll have detailed, rich responses from your RAG.
Uc yivg oys ipcij ritvkipaev ez WEM, rxuna upo sefp rupy il rozelt deem KIV diqa osg qaewqev. Piu sauxc eca fuec-remqeyv, vawucb djayzvofz, pinkiuwan jasc-yjilarmupb, ef zoviqubeeh fezh-kjuhuqbipq. Xxupa ivi ul-faifc neeyepag zduv pawyeete nihaexy azeom gfo xovabaltr rdor fboqk baglaxpok eyi navisopoc. Nig YJTf snac sabxury kait-hatnifn, gao biq eki khit calotlly. Cisw LWKs su xihmumg voav-xikreph: bikasx, IpemUI, Emdckiyay, Ikiko, Poagki, Tosoyi, unl liqu.
Iy chu dizf sudnavm, wea’lq uyfusa WxidffSofdk mi codhoqd e kmzzup vaenmf als odhezin ac xe vagu efj huugsit. Guevx? Zou jaa uv bba yizw voju.
See forum comments
This content was released on Nov 12 2024. The official support period is 6-months
from this date.
Enhancing a basic RAG app.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.