{"id":25112,"date":"2023-07-10T15:38:33","date_gmt":"2023-07-10T13:38:33","guid":{"rendered":"https:\/\/wordlift.io\/blog\/en\/?p=25112"},"modified":"2023-11-23T15:09:24","modified_gmt":"2023-11-23T14:09:24","slug":"knowledge-graph-and-llm","status":"publish","type":"post","link":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/","title":{"rendered":"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex \ud83e\udd99 and LangChain \ud83e\udd9c\ud83d\udd17"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">A New Chapter in WordLift&#8217;s Journey<\/h2>\n\n\n\n<p>We&#8217;re thrilled to introduce <strong><a href=\"https:\/\/docs.wordlift.io\/llm-connectors\/wordlift-reader\/\">WordLift Reader<\/a><\/strong>, a new connector for Llama Index and LangChain, in the spirit of continuous innovation towards <a href=\"https:\/\/wordlift.io\/blog\/en\/generative-ai-for-seo\/\">generative AI for SEO<\/a>. This feature represents a small yet significant evolution, enabling users to interact directly using their knowledge graph in engaging conversations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Power of Bridging Knowledge Graphs with Language Models<\/h3>\n\n\n\n<p>In our journey to make the web more intelligent and accessible, we&#8217;ve recognized <strong>the tremendous potential of combining the structured world of knowledge graphs with the fluid, context-aware capabilities of language models (LMs)<\/strong>. This fusion that we call <a href=\"https:\/\/wordlift.io\/blog\/en\/neuro-symbolic-ai\/\">neuro-symbolic AI<\/a> is a game-changer. With their ability to store and organize vast amounts of information, <strong>knowledge graphs provide a solid foundation of relevant facts and relationships<\/strong>. On the other hand, <strong>LLMs<\/strong>, with their capacity to understand and generate human-like text, <strong>bring a level of personalization that static web pages simply can&#8217;t match<\/strong>. We&#8217;re enhancing and fundamentally transforming the user experience by bridging these two powerful technologies.&nbsp;<\/p>\n\n\n\n<p>We&#8217;re moving from a world where information is passively consumed to a digital ecosystem where users engage in rich, vibrant, and <strong>personalized conversations with the help of semantic concepts and structured data.&nbsp;<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Modern Architecture for Generative AI Apps<\/h3>\n\n\n\n<p>The emerging architecture for LLM applications is a fascinating blend of new and existing technologies. I live the AI hype and the evolution of its stack with similar enthusiasm that I had back in the mid-nineties when Mosaic was the interface to the Internet.&nbsp;<\/p>\n\n\n\n<p><strong>Large Language Models (LLMs) are a powerful new tool for building software<\/strong>, but their unique characteristics <strong>require a combination of old ETL techniques and innovative approaches<\/strong> (<a class=\"wl-entity-page-link\" title=\"word embeddings\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/what-are-embeddings\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/what_are_embeddings_\" >embeddings<\/a>, prompting, intent matching) to leverage their capabilities fully. The reference architecture for the <a class=\"wl-entity-page-link\" title=\"Large Language Model (LLM)\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/large-language-model\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/llm-25790;https:\/\/www.wikidata.org\/wiki\/Q115305900;https:\/\/dbpedia.org\/resource\/Language_model;https:\/\/www.wikidata.org\/wiki\/Q3621696\" >Large Language Model<\/a> app stack includes standard systems, tools, and design patterns used by AI startups and tech companies.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2118\" height=\"1480\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1.jpg\" alt=\"\" class=\"wp-image-25118\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1.jpg 2118w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1-300x210.jpg 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1-1024x716.jpg 1024w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1-768x537.jpg 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1-1536x1073.jpg 1536w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1-2048x1431.jpg 2048w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Emerging-LLM-App-Stack_1-150x105.jpg 150w\" sizes=\"(max-width: 2118px) 100vw, 2118px\" \/><\/figure>\n\n\n\n<p>The architecture, as depicted by <a href=\"https:\/\/a16z.com\/ai\/\">a16z<\/a>, is primarily focused on in-context learning; this is the ability of LLMs to be controlled through clever prompting techniques and access to private \u201ccontextual\u201d data.&nbsp;<\/p>\n\n\n\n<p>The&nbsp; architecture can be divided into three core areas:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>data preprocessing\/embedding<\/strong>. This is where our KG enters into action along with the new connector. It\u2019s within the preprocessing stage that semantic data can be used and sliced before being passed through an embedding model and a set of indices (vector stores being the most common type).&nbsp;<\/li>\n\n\n\n<li><strong>In the prompt construction stage<\/strong>, a series of prompts are compiled to submit to the LLM. The prompts combine a hard-coded template, examples of valid outputs, information from external APIs, and relevant documents retrieved from the vector database.&nbsp;<\/li>\n\n\n\n<li><strong>In the inferencing stage<\/strong>, the prompts are submitted to a pre-trained LLM for prediction.<\/li>\n<\/ul>\n\n\n\n<p>LlamaIndex, LangChain, Semantic Kernel and other emerging frameworks orchestrate the process and represent an abstraction layer on top of the LLM.&nbsp;<\/p>\n\n\n\n<p>The WordLift connector loads the data we need from the knowledge graph using GraphQL, a query language introduced by Facebook that allows for precise, efficient data fetching. With only a few lines of code, we can specify exactly what data we need by extracting from our KG the sub-graphs we want. We do this by using specific properties of the schema.org vocabulary (or any custom ontology we use).<\/p>\n\n\n\n<p>GraphQL enables the connector (<strong><a href=\"https:\/\/docs.wordlift.io\/llm-connectors\/wordlift-reader\/\">WordLift Reader<\/a><\/strong>) to stay updated with the latest changes on the website <strong>without the need for crawling<\/strong>, ensuring that all conversations are always based on the most current data. This seamless integration via GraphQL between our KGs and Llama Index (or LangChain) enables the connector to transform static, structured data into dynamic, interactive conversations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modularization: Tailoring Conversations to User Needs<\/h2>\n\n\n\n<p>We are incorporating the concept of modularization into the new AI generative stack for <a class=\"wl-entity-page-link\" title=\"h e\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/search-engine-optimization\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/search_engine_optimization;http:\/\/rdf.freebase.com\/ns\/m.019qb_;http:\/\/dbpedia.org\/resource\/Search_engine_optimization;http:\/\/de.dbpedia.org\/resource\/Suchmaschinenoptimierung;http:\/\/pt.dbpedia.org\/resource\/Otimiza\u00e7\u00e3o_para_motores_de_busca;http:\/\/lt.dbpedia.org\/resource\/Optimizavimas_paie\u0161kos_sistemoms;http:\/\/lv.dbpedia.org\/resource\/Mekl\u0113t\u0101jprogrammas_optimiz\u0101cija;http:\/\/hr.dbpedia.org\/resource\/Optimizacija_web_stranice;http:\/\/hu.dbpedia.org\/resource\/Keres\u0151optimaliz\u00e1l\u00e1s;http:\/\/uk.dbpedia.org\/resource\/\u041e\u043f\u0442\u0438\u043c\u0456\u0437\u0430\u0446\u0456\u044f_\u0434\u043b\u044f_\u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u0445_\u0441\u0438\u0441\u0442\u0435\u043c;http:\/\/id.dbpedia.org\/resource\/Optimisasi_mesin_pencari;http:\/\/en.dbpedia.org\/resource\/Search_engine_optimization;http:\/\/it.dbpedia.org\/resource\/Ottimizzazione_(motori_di_ricerca);http:\/\/es.dbpedia.org\/resource\/Posicionamiento_en_buscadores;http:\/\/et.dbpedia.org\/resource\/Otsingumootoritele_optimeerimine;http:\/\/ro.dbpedia.org\/resource\/Optimizare_pentru_motoare_de_c\u0103utare;http:\/\/nl.dbpedia.org\/resource\/Zoekmachineoptimalisatie;http:\/\/no.dbpedia.org\/resource\/S\u00f8kemotoroptimalisering;http:\/\/be.dbpedia.org\/resource\/\u041f\u043e\u0448\u0443\u043a\u0430\u0432\u0430\u044f_\u0430\u043f\u0442\u044b\u043c\u0456\u0437\u0430\u0446\u044b\u044f;http:\/\/ru.dbpedia.org\/resource\/\u041f\u043e\u0438\u0441\u043a\u043e\u0432\u0430\u044f_\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f;http:\/\/fi.dbpedia.org\/resource\/Hakukoneoptimointi;http:\/\/bg.dbpedia.org\/resource\/\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f_\u0437\u0430_\u0442\u044a\u0440\u0441\u0430\u0447\u043a\u0438;http:\/\/fr.dbpedia.org\/resource\/Optimisation_pour_les_moteurs_de_recherche;http:\/\/sk.dbpedia.org\/resource\/Optimaliz\u00e1cia_pre_vyh\u013ead\u00e1va\u010de;http:\/\/sl.dbpedia.org\/resource\/Optimizacija_spletnih_strani;http:\/\/ca.dbpedia.org\/resource\/Optimitzaci\u00f3_per_a_motors_de_cerca;http:\/\/sq.dbpedia.org\/resource\/SEO;http:\/\/sr.dbpedia.org\/resource\/SEO_optimalizacija_veb-sajta;http:\/\/sv.dbpedia.org\/resource\/S\u00f6kmotoroptimering;http:\/\/cs.dbpedia.org\/resource\/Search_Engine_Optimization;http:\/\/pl.dbpedia.org\/resource\/Optymalizacja_dla_wyszukiwarek_internetowych;http:\/\/da.dbpedia.org\/resource\/S\u00f8gemaskineoptimering;http:\/\/tr.dbpedia.org\/resource\/Arama_motoru_optimizasyonu;http:\/\/data.wordlift.io\/wl0216\/entity\/search_engine_optimization\" >SEO<\/a>. We can see blocks like the &#8220;TalkMe&#8221; widget introduced in my previous blog post to &#8220;modularize&#8221; conversations; the connector has been designed to use different sub-graphs and provide specific responses. This feature allows us to tailor conversations to the specific needs of users.<\/p>\n\n\n\n<p>In the example below, a Shopping assistant is built by accessing the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>schema:Product for product discovery and recommendation;<\/li>\n\n\n\n<li>schema:FAQPage for information on the store return policy.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>Let\u2019s review the dialogue intents that we can address using only product data and using product data and Q&amp;A content.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"1374\" height=\"1058\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/The-power-to-leverage-your-Knowledge-Graph-built-using-schema.org-for-LLMs-1.jpg\" alt=\"\" class=\"wp-image-25130\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/The-power-to-leverage-your-Knowledge-Graph-built-using-schema.org-for-LLMs-1.jpg 1374w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/The-power-to-leverage-your-Knowledge-Graph-built-using-schema.org-for-LLMs-1-300x231.jpg 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/The-power-to-leverage-your-Knowledge-Graph-built-using-schema.org-for-LLMs-1-1024x788.jpg 1024w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/The-power-to-leverage-your-Knowledge-Graph-built-using-schema.org-for-LLMs-1-768x591.jpg 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/The-power-to-leverage-your-Knowledge-Graph-built-using-schema.org-for-LLMs-1-150x116.jpg 150w\" sizes=\"(max-width: 1374px) 100vw, 1374px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>The power to leverage your Knowledge Graph built using schema.org for LLMs<\/em>. On the left the AI uses only schema:Product; on the right the AI uses schema:Product and schema:FAQPage. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Here Is How To Connect With Your Audience Using AI Agents<\/h2>\n\n\n\n<p>The notebook below provides a reference implementation that uses our demo e-commerce website. To see how things work, open the link and follow the steps.&nbsp;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em><strong>Ready to jump to the code?<\/strong><\/em> \ud83e\ude84 <a href=\"https:\/\/wor.ai\/wl-reader-demo\">wor.ai\/wl-reader-demo<\/a>&nbsp; (here is a Colab Notebook to see how things work).<\/p>\n\n\n\n<p>\ud83d\udcd6 Here is <a href=\"https:\/\/docs.wordlift.io\/llm-connectors\/wordlift-reader\/\">a link to the documentation<\/a>.<\/p>\n<\/blockquote>\n\n\n\n<p>We\u2019ll build an AI-powered shopping assistant using LlamaIndex and the Knowledge Graph behind our e-commerce demo website (https:\/\/product-finder.wordlift.io\/). You must add your OpenAI API key and WordLift Key to run this tutorial. We\u2019ll begin by setting up the environment and installing the required libraries like langchain, openai, llama-index, and API keys.<\/p>\n\n\n\n<p>The code&#8217;s core part is focused on using the WordLiftReader class to build a vector index of the shop\u2019s products.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-11-1024x412.png\" alt=\"\" class=\"wp-image-25145\" style=\"width:512px;height:206px\" width=\"512\" height=\"206\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-11-1024x412.png 1024w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-11-300x121.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-11-768x309.png 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-11-150x60.png 150w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-11.png 1162w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>We\u2019ll also see how to create multiple indices based on different <a class=\"wl-entity-page-link\" title=\"What Is Schema.org Markup And Why Is It Crucial To SEO?\" href=\"https:\/\/wordlift.io\/blog\/en\/entity\/schema-org\/\" data-id=\"http:\/\/data.wordlift.io\/wl0216\/entity\/schema-org;http:\/\/rdf.freebase.com\/ns\/m.0gvvdn9;http:\/\/yago-knowledge.org\/resource\/Schema.org;http:\/\/dbpedia.org\/resource\/Schema.org;https:\/\/www.wikidata.org\/wiki\/Q3475322;http:\/\/data.qa.wordlift.io\/wl0216\/entity\/schema-org\" >schemas<\/a> classes like <strong>schema:Product<\/strong> and <strong>schema:FAQPage<\/strong>. This allows the AI agent to handle different types of user queries effectively. For example, the agent can suggest products based on user preferences or provide information about the shop&#8217;s return policy.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-10-1024x660.png\" alt=\"\" class=\"wp-image-25147\" style=\"width:512px;height:330px\" width=\"512\" height=\"330\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-10-1024x660.png 1024w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-10-300x193.png 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-10-768x495.png 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-10-150x97.png 150w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/carbon-10.png 1368w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To see our connector in action, watch the video with Andrea Volpini, Teodora Petkova and Jason Barnard. Here, you can learn <strong>how to create an enriching and interactive experience<\/strong> using the data in the knowledge graph, bridging the gap between users and content.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Unleashing Content Creation Synergy: Data meets Human-Centric Approach\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/EBS-sPWzx_E?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/wordlift.io\/academy-entries\/data-meets-human-centric-approach\/\">Where Data meets Human-Centric Approach [WEBINAR]<\/a><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Introducing our new connector marks a significant step in our mission to make the web smarter and more accessible. By transforming your knowledge graph into interactive conversations, we&#8217;re enhancing the user experience and paving the way for more effective SEO implementations.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"1576\" height=\"892\" src=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO.jpg\" alt=\"\" class=\"wp-image-25120\" srcset=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO.jpg 1576w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-300x170.jpg 300w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-1024x580.jpg 1024w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-768x435.jpg 768w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-1536x869.jpg 1536w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-288x163.jpg 288w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-390x221.jpg 390w, https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/Knowledge-intensive-AI-application-for-SEO-150x85.jpg 150w\" sizes=\"(max-width: 1576px) 100vw, 1576px\" \/><\/figure>\n\n\n\n<p>We&#8217;re excited to see how our users will leverage this new tool to create more engaging, personalized, and optimized web experiences.&nbsp;<\/p>\n\n\n\n<p>Stay tuned for more updates as we continue to innovate and push the boundaries of what&#8217;s possible with a synergised combination of KG and LLMs!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References and Credits \ud83d\udcda<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/llama-hub-ui.vercel.app\/l\/wordlift\">WordLift Reader on LlamaHub<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.wordlift.io\/llm-connectors\/wordlift-reader\/\">Official documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wor.ai\/wl-reader-demo\">Demo Notebook (Colab)<\/a><\/li>\n<\/ul>\n\n\n\n<p>Great content to read to learn more about LLM + KG:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.teodorapetkova.com\/entity\/dialogue\/\"><strong>From classic to modern era: what is a dialogue<\/strong><\/a> by <strong>Teodora Petkova<\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/www.linkedin.com\/posts\/tonyseale_the-semantic-ai-survival-guide-activity-7070308076158906368-b3hS?utm_source=share&amp;utm_medium=member_desktop\">AI is like an Iceberg<\/a><\/strong> by <strong>Tony Seale <\/strong>(a survival guide)<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/www.linkedin.com\/pulse\/llm-ontology-prompting-knowledge-graph-extraction-peter-lawrence\/\">LLM Ontology-prompting for Knowledge Graph Extraction<\/a><\/strong> by <strong>Peter Lawrence<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs <\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How is LlamaIndex different from LangChain?<\/h3>\n\n\n\n<p>LlamaIndex and LangChain are two open-source libraries that can be used to build applications that leverage the power of large language models (LLMs). LlamaIndex provides a simple interface between LLMs and external data sources, while LangChain provides a framework for building and managing LLM-powered applications. In summary, LlamaIndex is primarily focused on being an intelligent storage mechanism, while LangChain is a tool to bring multiple tools together. At the same time, you can build agents using only LlamaIndex or LlamaIndex as a LangChain agent tool.&nbsp;<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fef8e5\">Discover how this innovative technology is revolutionizing language processing and unlocking new possibilities in AI-driven applications. Explore this <a href=\"https:\/\/www.commandbar.com\/blog\/langchain-guide\">LangChain Guide<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What orchestrators are available to interface a large language model?<\/h3>\n\n\n\n<p>Different orchestration frameworks like LangChain and LlamaIndex can help us abstract many of the details of prompt chaining, interfacing with external APIs and extracting knowledge from different sources. The most famous are the <a href=\"https:\/\/learn.microsoft.com\/en-us\/semantic-kernel\/overview\/\">Semantic Kernel<\/a> by Microsoft, <a href=\"https:\/\/flowiseai.com\/\">FlowwiseAI<\/a>, <a href=\"https:\/\/autogpt.net\/?ref=blog.apify.com\">Auto-GPT<\/a>, <a href=\"https:\/\/agentgpt.reworkd.ai\/?ref=blog.apify.com\">AgentGPT<\/a> and <a href=\"https:\/\/github.com\/yoheinakajima\/babyagi?ref=blog.apify.com\">BabyAGI<\/a>. Similar solutions include <a href=\"https:\/\/chat.jina.ai\/\">JinaChat<\/a> or the Italian Cheshire<a href=\"https:\/\/github.com\/cheshire-cat-ai\/core\"> Cat AI<\/a>.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>How knowledge graphs in conjunction with large language models revolutionize conversational experiences and supercharge SEO strategies.<\/p>\n","protected":false},"author":6,"featured_media":25127,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wl_entities_gutenberg":"","_wlpage_enable":"","footnotes":""},"categories":[28,8],"tags":[],"wl_entity_type":[30,3303],"coauthors":[],"class_list":["post-25112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-world-summit-ai","category-seo","wl_entity_type-article","wl_entity_type-faq-page"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Utilizing Knowledge Graph For Conversational Experience &amp; SEO<\/title>\n<meta name=\"description\" content=\"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex and LangChain\" \/>\n<meta property=\"og:description\" content=\"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\" \/>\n<meta property=\"og:site_name\" content=\"WordLift Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T13:38:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-23T14:09:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Andrea Volpini\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex and LangChain\" \/>\n<meta name=\"twitter:description\" content=\"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrea Volpini\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\"},\"author\":{\"name\":\"Andrea Volpini\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a\"},\"headline\":\"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex \ud83e\udd99 and LangChain \ud83e\udd9c\ud83d\udd17\",\"datePublished\":\"2023-07-10T13:38:33+00:00\",\"dateModified\":\"2023-11-23T14:09:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\"},\"wordCount\":1346,\"publisher\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg\",\"articleSection\":[\"AI &amp; Machine Learning\",\"seo\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\",\"name\":\"Utilizing Knowledge Graph For Conversational Experience & SEO\",\"isPartOf\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg\",\"datePublished\":\"2023-07-10T13:38:33+00:00\",\"dateModified\":\"2023-11-23T14:09:24+00:00\",\"description\":\"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.\",\"breadcrumb\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg\",\"contentUrl\":\"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg\",\"width\":1200,\"height\":675,\"caption\":\"Learning how to use the knowledge graoh to build a customized conversational experience\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/wordlift.io\/blog\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex \ud83e\udd99 and LangChain \ud83e\udd9c\ud83d\udd17\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#website\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/\",\"name\":\"WordLift Blog\",\"description\":\"AI-Powered SEO\",\"publisher\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wordlift.io\/blog\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#organization\",\"name\":\"WordLift\",\"url\":\"https:\/\/wordlift.io\/blog\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png\",\"contentUrl\":\"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png\",\"width\":152,\"height\":40,\"caption\":\"WordLift\"},\"image\":{\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a\",\"name\":\"Andrea Volpini\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/image\/466a1652833e48ca11c81b363eba7c25\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg\",\"caption\":\"Andrea Volpini\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Utilizing Knowledge Graph For Conversational Experience & SEO","description":"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/","og_locale":"en_US","og_type":"article","og_title":"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex and LangChain","og_description":"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.","og_url":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/","og_site_name":"WordLift Blog","article_published_time":"2023-07-10T13:38:33+00:00","article_modified_time":"2023-11-23T14:09:24+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg","type":"image\/jpeg"}],"author":"Andrea Volpini","twitter_card":"summary_large_image","twitter_title":"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex and LangChain","twitter_description":"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.","twitter_image":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg","twitter_misc":{"Written by":"Andrea Volpini","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#article","isPartOf":{"@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/"},"author":{"name":"Andrea Volpini","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a"},"headline":"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex \ud83e\udd99 and LangChain \ud83e\udd9c\ud83d\udd17","datePublished":"2023-07-10T13:38:33+00:00","dateModified":"2023-11-23T14:09:24+00:00","mainEntityOfPage":{"@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/"},"wordCount":1346,"publisher":{"@id":"https:\/\/wordlift.io\/blog\/en\/#organization"},"image":{"@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage"},"thumbnailUrl":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg","articleSection":["AI &amp; Machine Learning","seo"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/","url":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/","name":"Utilizing Knowledge Graph For Conversational Experience & SEO","isPartOf":{"@id":"https:\/\/wordlift.io\/blog\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage"},"image":{"@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage"},"thumbnailUrl":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg","datePublished":"2023-07-10T13:38:33+00:00","dateModified":"2023-11-23T14:09:24+00:00","description":"How knowledge graphs revolutionize conversational experiences and supercharge seo strategies through personalization and content discoverability.","breadcrumb":{"@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#primaryimage","url":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg","contentUrl":"https:\/\/wordlift.io\/blog\/en\/wp-content\/uploads\/sites\/3\/2023\/07\/utilizing-knowledge-graph-for-conversational-experience-and-SEO-1.jpg","width":1200,"height":675,"caption":"Learning how to use the knowledge graoh to build a customized conversational experience"},{"@type":"BreadcrumbList","@id":"https:\/\/wordlift.io\/blog\/en\/knowledge-graph-and-llm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/wordlift.io\/blog\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge Graph In-Context: introducing WordLift\u2019s New Reader for LlamaIndex \ud83e\udd99 and LangChain \ud83e\udd9c\ud83d\udd17"}]},{"@type":"WebSite","@id":"https:\/\/wordlift.io\/blog\/en\/#website","url":"https:\/\/wordlift.io\/blog\/en\/","name":"WordLift Blog","description":"AI-Powered SEO","publisher":{"@id":"https:\/\/wordlift.io\/blog\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wordlift.io\/blog\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wordlift.io\/blog\/en\/#organization","name":"WordLift","url":"https:\/\/wordlift.io\/blog\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/","url":"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png","contentUrl":"https:\/\/mk0wordliftblog7j5te.kinstacdn.com\/wp-content\/uploads\/sites\/3\/2017\/04\/logo-1.png","width":152,"height":40,"caption":"WordLift"},"image":{"@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/574352082cc71dab8d164410f1cabe0a","name":"Andrea Volpini","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wordlift.io\/blog\/en\/#\/schema\/person\/image\/466a1652833e48ca11c81b363eba7c25","url":"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6b9d3d311b50a8749201fe4b318907a8?s=96&d=mm&r=pg","caption":"Andrea Volpini"}}]}},"_wl_alt_label":[],"wl:entity_url":"http:\/\/data.wordlift.io\/wl0216\/post\/knowledge-graph-in-context-introducing-wordlifts-new-reader-for-llamaindex-%f0%9f%a6%99-and-langchain-%f0%9f%a6%9c%f0%9f%94%97-25112","_links":{"self":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts\/25112"}],"collection":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/comments?post=25112"}],"version-history":[{"count":25,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts\/25112\/revisions"}],"predecessor-version":[{"id":27530,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/posts\/25112\/revisions\/27530"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/media\/25127"}],"wp:attachment":[{"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/media?parent=25112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/categories?post=25112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/tags?post=25112"},{"taxonomy":"wl_entity_type","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/wl_entity_type?post=25112"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/wordlift.io\/blog\/en\/wp-json\/wp\/v2\/coauthors?post=25112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}