Zubnet AIसीखेंWiki › Knowledge Graph
मूल सिद्धांत

Knowledge Graph

KG, Ontology
Knowledge का एक structured representation entities (nodes) के network के रूप में जो relationships (edges) से connected हैं। “Paris (entity) is the capital of (relationship) France (entity)।” Knowledge graphs facts को इस तरह encode करते हैं कि reasoning, querying, और discovery support हो। Google का Knowledge Graph, Wikidata, और enterprise knowledge graphs search, recommendations, और data integration को power देते हैं।

यह क्यों matter करता है

Knowledge graphs LLMs को complement करते हैं structured, verifiable facts provide करके जिन्हें LLMs hallucinate करने के बजाय query कर सकें। जबकि LLMs knowledge को implicitly weights में store करते हैं (और कभी-कभी गलत हो जाते हैं), knowledge graphs इसे explicitly triples में store करते हैं जो verify और update किए जा सकते हैं। LLMs (natural language समझने के लिए) और KGs (facts में grounding के लिए) का combination enterprise AI के लिए एक powerful pattern है।

Deep Dive

A knowledge graph stores knowledge as (subject, predicate, object) triples: (Albert Einstein, born_in, Ulm), (Ulm, located_in, Germany). These triples form a graph where entities are nodes and relationships are edges. You can traverse the graph to answer multi-hop questions: "Where was the birthplace of the person who developed general relativity?" follows Einstein → born_in → Ulm → located_in → Germany.

KGs + LLMs

The integration of knowledge graphs with LLMs takes several forms: using KGs as a source for RAG (retrieve relevant subgraphs for a query), using LLMs to populate KGs (extract entities and relationships from text), and using KGs to verify LLM outputs (check stated facts against the graph). GraphRAG (Microsoft) uses LLMs to build a knowledge graph from documents, then queries that graph for more structured retrieval than pure vector search.

Building Knowledge Graphs

Constructing a knowledge graph requires: entity extraction (identifying people, places, concepts in text), relation extraction (identifying how entities relate), entity resolution (recognizing that "NYC," "New York City," and "The Big Apple" are the same entity), and schema design (defining what types of entities and relationships exist). LLMs have made each of these steps cheaper and more accurate, democratizing KG construction for organizations that previously couldn't afford the manual effort.

संबंधित अवधारणाएँ

← सभी Terms
← Knowledge Editing KV Cache →