Name the codes and abbreviations in your documents, and turn them into concepts.
An optional entities: section of ladygraph.yaml names things a deployment’s documents contain and explains them: document codes, form codes, decision numbers and abbreviations. It sits next to sources: and is read by sources/entities.py (load_entities, EntityEngine, Lexicon). A kind is data, so a new kind is a new entry in the config.
entities: order: [form_code, document_code] # who owns a piece of text first; a composite kind goes before the kind inside it kinds: document_code: answer: title # title | expansion pattern: '(?<![\w.])(?P<doc>[A-Z]{1,3}[.\-][A-Z]{2,3}[.\-]\d{3})(?![\w])' key: [doc] # named groups that identify it; F02 of two documents are two entries classes: {from: doc, by_prefix: {PR: process}} title: {strip: [numbers, extension, kinds], min_words: 2, reject: ['^step\b']} resolvers: # tried in order; the first one that answers wins, the others are kept for agreement - {type: metadata, code: doc_code} - {type: text, pattern: '(?P<title>[^.;\n]{10,160}?)\s*\(Code:\s*{self}\)'}
Keys fold case, accents and separators the same way keyword matching does, so REF.AB.010 and RÉF.AB.010 are one entry. The metadata resolver reads Document.metadata[code], so a SQL source supplies it with map.metadata.An answer is always a short title or expansion with a pointer (address, span and fingerprint). It is never copied source text.The full example is docs/entity_kinds.example.yaml in the repository. To inspect the entries:
With a concepts: section, LexiconExtractor (extractors/lexicon.py) wraps any extractor. To each document’s own contribution it adds a concept for every code the document mentions that deserves one, and REFERS_TO links from the document’s concepts to those codes.A code’s concept has:
A title equal to the code as first written. The title makes the id, so it must not change when a meaning is reworded.
A description of one sentence with the meaning and the code (describe_resolved, or describe_unresolved when no document spells it out).
The code as a user word, stamped human:<actor>, because the person who wrote the pattern defined it.
Evidence: the written meaning first, then up to evidence_per_document other mentions.
One code is one concept. Every document’s contribution carries only its own evidence, and the store merges them. Contexts are one top-level context per kind, named by the kind’s label.
Which entries get a concept
Not a hub, meaning not in more than max_share of passages.
When no meaning was found, the code must appear in at least min_passages_unresolved passages, and must not be an all-caps word that is also written normally lowercase_words times.
A kind can opt out with concept: false.
A document concept gets REFERS_TO a code its passage mentions in either of two cases:
The code is in the concept’s own title or description.
The concept is the heading of its passage (its evidence starts in the first heading_chars), and the passage mentions at most max_codes_in_passage codes.
There are at most max_links links per concept. A code with no meaning and no link in a document gets no concept there.Declare the relation in the ontology with origin: entities, which also keeps it from being offered to the LLM:
relations: REFERS_TO: {description: A concept's passage mentions a code that has its own concept, to: [term], origin: entities}
engine = EntityEngine(load_entities("ladygraph.yaml"))lexicon = engine.build(documents) # every document of the scope: cheap, no LLMextractor = LexiconExtractor(LlmOkfExtractor(llm, embedder=embedder), engine, lexicon, embedder=embedder)
The defaults were tuned on one corpus, so check them on yours. The numbers are in the example config. A known limit: a merged concept’s first evidence is the first unit’s, not necessarily the one that holds the meaning. A question about a code can therefore find the right concept and show another mention. The extractor puts the meaning first inside its own contribution, but guaranteeing it across units is for the store.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ladyGraph","colors":{"primary":"#B1212D","light":"#FFB3B0","dark":"#D43C42"},"logo":{"light":"https://mintcdn.com/daves-tran/-ttQYAEZXt81_rL8/logo/light.svg?fit=max\u0026auto=format\u0026n=-ttQYAEZXt81_rL8\u0026q=85\u0026s=9a4569643e4737486485cedb27379a5e","dark":"https://mintcdn.com/daves-tran/-ttQYAEZXt81_rL8/logo/dark.svg?fit=max\u0026auto=format\u0026n=-ttQYAEZXt81_rL8\u0026q=85\u0026s=0f2023129a8a49436037f6057e5f038e"},"favicon":{"light":"https://mintcdn.com/daves-tran/-ttQYAEZXt81_rL8/favicon.svg?fit=max\u0026auto=format\u0026n=-ttQYAEZXt81_rL8\u0026q=85\u0026s=83bdf2392fd8958170cffb7ae2e87ce8","dark":"https://mintcdn.com/daves-tran/-ttQYAEZXt81_rL8/favicon-dark.svg?fit=max\u0026auto=format\u0026n=-ttQYAEZXt81_rL8\u0026q=85\u0026s=d3d4980fac75b919dcf0d003cfc995f3"},"background":{"color":{"light":"#F8F9FF","dark":"#0D1420"}},"navbar":{"links":[{"href":"https://github.com/DTJ-Tran/ladyGraph","type":"github"}]},"footer":{"socials":{"github":"https://github.com/DTJ-Tran/ladyGraph"}},"fonts":{"heading":{"family":"Inter","weight":700},"body":{"family":"Inter","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"vi","href":"vi"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"daves-tran","hasAudioNarration":false,"actualSubdomain":"daves-tran","customDomains":["ladygraph.io.vn"],"gitSource":{"type":"github","owner":"dtj-tran","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b12caeddb79db5958a488b8"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b15890d0cc8674c3fb86d74","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"en","tag":"API reference","count":13},{"language":"vi","tag":"Tham chiếu API","count":13},{"language":"en","tag":"Concepts","count":11},{"language":"vi","tag":"Khái niệm","count":11},{"language":"en","tag":"Guides","count":10},{"language":"vi","tag":"Hướng dẫn","count":10},{"language":"en","tag":"Get started","count":2},{"language":"vi","tag":"Bắt đầu","count":2},{"language":"en","tag":"Reference","count":1},{"language":"vi","tag":"Tham chiếu","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/entity-kinds","slug":"/guides/entity-kinds","pageMetadata":{"title":"Entity kinds","description":"Name the codes and abbreviations in your documents, and turn them into concepts.","href":"/guides/entity-kinds"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Name the codes and abbreviations in your documents, and turn them into concepts.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`An optional `,_jsx(_components.code,{children:`entities:`}),` section of `,_jsx(_components.code,{children:`ladygraph.yaml`}),` names things a deployment’s documents contain and explains them: document codes, form codes, decision numbers and abbreviations. It sits next to `,_jsx(_components.code,{children:`sources:`}),` and is read by `,_jsx(_components.code,{children:`sources/entities.py`}),` (`,_jsx(_components.code,{children:`load_entities`}),`, `,_jsx(_components.code,{children:`EntityEngine`}),`, `,_jsx(_components.code,{children:`Lexicon`}),`). A kind is data, so a new kind is a new entry in the config.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`entities`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` order`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`form_code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`document_code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# who owns a piece of text first; a composite kind goes before the kind inside it`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` kinds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` document_code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` answer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`title`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # title | expansion`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` pattern`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'(?\u003c![\\\\w.])(?P\u003cdoc>[A-Z]{1,3}[.\\\\-][A-Z]{2,3}[.\\\\-]\\\\d{3})(?![\\\\w])'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`doc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# named groups that identify it; F02 of two documents are two entries`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` classes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`doc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`by_prefix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`PR`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`strip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`numbers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`extension`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`kinds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`min_words`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`reject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'^step\\\\b'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` resolvers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# tried in order; the first one that answers wins, the others are kept for agreement`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`metadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`doc_code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`pattern`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'(?P\u003ctitle>[^.;\\\\n]{10,160}?)\\\\s*\\\\(Code:\\\\s*{self}\\\\)'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keys fold case, accents and separators the same way keyword matching does, so `,_jsx(_components.code,{children:`REF.AB.010`}),` and `,_jsx(_components.code,{children:`RÉF.AB.010`}),` are one entry. The `,_jsx(_components.code,{children:`metadata`}),` resolver reads `,_jsx(_components.code,{children:`Document.metadata[code]`}),`, so a SQL source supplies it with `,_jsx(_components.code,{children:`map.metadata`}),`.`]}),`\n`,_jsx(_components.p,{children:`An answer is always a short title or expansion with a pointer (address, span and fingerprint). It is never copied source text.`}),`\n`,_jsxs(_components.p,{children:[`The full example is `,_jsx(_components.code,{children:`docs/entity_kinds.example.yaml`}),` in the repository. To inspect the entries:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PYTHONPATH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`ladygraph`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sources.entities`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`yam`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`l`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`scop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [--kind `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`K]`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [--unresolved]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`entries-as-concepts`,children:`Entries as concepts`}),`\n`,_jsxs(_components.p,{children:[`With a `,_jsx(_components.code,{children:`concepts:`}),` section, `,_jsx(_components.code,{children:`LexiconExtractor`}),` (`,_jsx(_components.code,{children:`extractors/lexicon.py`}),`) wraps any extractor. To each document’s own contribution it adds a concept for every code the document mentions that deserves one, and `,_jsx(_components.code,{children:`REFERS_TO`}),` links from the document’s concepts to those codes.`]}),`\n`,_jsx(_components.p,{children:`A code’s concept has:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A title`}),` equal to the code as first written. The title makes the id, so it must not change when a meaning is reworded.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A description`}),` of one sentence with the meaning and the code (`,_jsx(_components.code,{children:`describe_resolved`}),`, or `,_jsx(_components.code,{children:`describe_unresolved`}),` when no document spells it out).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The code as a user word`}),`, stamped `,_jsx(_components.code,{children:`human:\u003cactor>`}),`, because the person who wrote the pattern defined it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Evidence`}),`: the written meaning first, then up to `,_jsx(_components.code,{children:`evidence_per_document`}),` other mentions.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`One code is one concept. Every document’s contribution carries only its own evidence, and the store merges them. Contexts are one top-level context per kind, named by the kind’s `,_jsx(_components.code,{children:`label`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`which-entries-get-a-concept`,children:`Which entries get a concept`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Not a hub, meaning not in more than `,_jsx(_components.code,{children:`max_share`}),` of passages.`]}),`\n`,_jsxs(_components.li,{children:[`When no meaning was found, the code must appear in at least `,_jsx(_components.code,{children:`min_passages_unresolved`}),` passages, and must not be an all-caps word that is also written normally `,_jsx(_components.code,{children:`lowercase_words`}),` times.`]}),`\n`,_jsxs(_components.li,{children:[`A kind can opt out with `,_jsx(_components.code,{children:`concept: false`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A document concept gets `,_jsx(_components.code,{children:`REFERS_TO`}),` a code its passage mentions in either of two cases:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The code is in the concept’s own title or description.`}),`\n`,_jsxs(_components.li,{children:[`The concept is the heading of its passage (its evidence starts in the first `,_jsx(_components.code,{children:`heading_chars`}),`), and the passage mentions at most `,_jsx(_components.code,{children:`max_codes_in_passage`}),` codes.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`There are at most `,_jsx(_components.code,{children:`max_links`}),` links per concept. A code with no meaning and no link in a document gets no concept there.`]}),`\n`,_jsxs(_components.p,{children:[`Declare the relation in the ontology with `,_jsx(_components.code,{children:`origin: entities`}),`, which also keeps it from being offered to the LLM:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`relations`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` REFERS_TO`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`A concept's passage mentions a code that has its own concept`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`to`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`term`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`origin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`entities`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`engine `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` EntityEngine(load_entities(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ladygraph.yaml\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`lexicon `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` engine.build(documents) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# every document of the scope: cheap, no LLM`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`extractor `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` LexiconExtractor(LlmOkfExtractor(llm, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`embedder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`embedder), engine, lexicon, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`embedder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`embedder)`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The defaults were tuned on one corpus, so check them on yours. The numbers are in the example config. A known limit: a merged concept’s first evidence is the first unit’s, not necessarily the one that holds the meaning. A question about a code can therefore find the right concept and show another mention. The extractor puts the meaning first inside its own contribution, but guaranteeing it across units is for the store.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Entity kinds","description":"Name the codes and abbreviations in your documents, and turn them into concepts.","href":"/guides/entity-kinds"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Entries as concepts","slug":"entries-as-concepts","depth":2,"children":[{"title":"Which entries get a concept","slug":"which-entries-get-a-concept","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"daves-tran","siteName":"ladyGraph","title":"Entity kinds - ladyGraph","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/guides/entity-kinds","matchLevel":0},"vi":{"href":"/vi/guides/entity-kinds","matchLevel":1}}},"lastModified":"2026-12-06T14:10:55.752Z","originalFileLocation":"guides/entity-kinds.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Name the codes and abbreviations in your documents, and turn them into concepts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ladyGraph\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Entity kinds - ladyGraph\">\u003cmeta data-mint-head property=\"og:description\" content=\"Name the codes and abbreviations in your documents, and turn them into concepts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ladyGraph\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://ladygraph.io.vn/guides/entity-kinds\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://daves-tran.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Entity+kinds\u0026amp;description=Name+the+codes+and+abbreviations+in+your+documents%2C+and+turn+them+into+concepts.\u0026amp;theme=69b40a9290c082c10989a3c4\u0026amp;signature=3b051b304fce0ecaba36d4575f12cb512d266c62569183d68180824fa010efbb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Entity kinds - ladyGraph\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Name the codes and abbreviations in your documents, and turn them into concepts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://daves-tran.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Entity+kinds\u0026amp;description=Name+the+codes+and+abbreviations+in+your+documents%2C+and+turn+them+into+concepts.\u0026amp;theme=69b40a9290c082c10989a3c4\u0026amp;signature=3b051b304fce0ecaba36d4575f12cb512d266c62569183d68180824fa010efbb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/daves-tran/1ye87DRAFs_MIUAC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ladyGraph\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#B1212D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://ladygraph.io.vn/guides/entity-kinds\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/entity-kinds.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://ladygraph.io.vn/guides/entity-kinds\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://ladygraph.io.vn/vi/guides/entity-kinds\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://ladygraph.io.vn/guides/entity-kinds\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://ladygraph.io.vn/#organization\",\"name\":\"ladyGraph\",\"url\":\"https://ladygraph.io.vn\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/daves-tran/-ttQYAEZXt81_rL8/logo/light.svg?fit=max\u0026auto=format\u0026n=-ttQYAEZXt81_rL8\u0026q=85\u0026s=9a4569643e4737486485cedb27379a5e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://ladygraph.io.vn#website\",\"name\":\"ladyGraph\",\"url\":\"https://ladygraph.io.vn\",\"publisher\":{\"@id\":\"https://ladygraph.io.vn/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://ladygraph.io.vn/guides/entity-kinds#webpage\",\"url\":\"https://ladygraph.io.vn/guides/entity-kinds\",\"name\":\"Entity kinds\",\"description\":\"Name the codes and abbreviations in your documents, and turn them into concepts.\",\"dateModified\":\"2026-12-06T14:10:55.752Z\",\"isPartOf\":{\"@id\":\"https://ladygraph.io.vn#website\"},\"breadcrumb\":{\"@id\":\"https://ladygraph.io.vn/guides/entity-kinds#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://ladygraph.io.vn/guides/entity-kinds#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://ladygraph.io.vn/guides/tutorials\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entity kinds\",\"item\":\"https://ladygraph.io.vn/guides/entity-kinds\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://ladygraph.io.vn/guides/entity-kinds#article\",\"headline\":\"Entity kinds\",\"name\":\"Entity kinds\",\"description\":\"Name the codes and abbreviations in your documents, and turn them into concepts.\",\"url\":\"https://ladygraph.io.vn/guides/entity-kinds\",\"mainEntityOfPage\":{\"@id\":\"https://ladygraph.io.vn/guides/entity-kinds#webpage\"},\"dateModified\":\"2026-12-06T14:10:55.752Z\",\"publisher\":{\"@id\":\"https://ladygraph.io.vn/#organization\"},\"isPartOf\":{\"@id\":\"https://ladygraph.io.vn#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ladyGraph\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ladyGraph\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/entity-kinds.md","siteName":"ladyGraph","nav":{"global":null,"languages":[{"language":"en","default":true,"groups":[{"group":"Get started","pages":[{"title":"Introduction","href":""},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"How it works","href":"/concepts/how-it-works"},{"title":"Vocabulary","href":"/concepts/vocabulary"},{"title":"Architecture","href":"/concepts/architecture"},{"title":"Data model","href":"/concepts/data-model"},{"title":"Addresses, ids and fingerprints","href":"/concepts/addresses-and-fingerprints"},{"title":"Context tree and concept graph","href":"/concepts/context-tree"},{"title":"Ownership, versions and merging","href":"/concepts/ownership-and-merging"},{"title":"Search in depth","href":"/concepts/search-in-depth"},{"title":"Storage","href":"/concepts/storage"},{"title":"Invariants","href":"/concepts/invariants"},{"title":"Status and known limits","href":"/concepts/status-and-limits"}]},{"group":"Guides","pages":[{"title":"Tutorials","href":"/guides/tutorials"},{"title":"Configure a project","href":"/guides/configure-a-project"},{"title":"Sources","href":"/guides/sources"},{"title":"Extractors","href":"/guides/extractors"},{"title":"Prompt and glossary","href":"/guides/prompt-and-glossary"},{"title":"Translation and verification","href":"/guides/translation"},{"title":"Local models","description":"Run an LLM and a span tagger on your own machine.","href":"/guides/local-models"},{"title":"Entity kinds","href":"/guides/entity-kinds"},{"title":"Term-list builder","description":"Build a proposed glossary with an agent, then approve what you trust.","href":"/guides/term-list-builder"},{"title":"Flight server","href":"/guides/flight-server"}]},{"group":"Reference","pages":[{"title":"Environment variables","href":"/reference/environment-variables"}]},{"group":"API reference","pages":[{"title":"Interfaces","href":"/reference/api/overview"},{"title":"core","href":"/reference/api/core"},{"title":"sources","href":"/reference/api/sources"},{"title":"extractors","href":"/reference/api/extractors"},{"title":"llm","href":"/reference/api/llm"},{"title":"embedding","href":"/reference/api/embedding"},{"title":"decision","href":"/reference/api/decision"},{"title":"retrieval","href":"/reference/api/retrieval"},{"title":"stores","href":"/reference/api/stores"},{"title":"translation","href":"/reference/api/translation"},{"title":"ner","href":"/reference/api/ner"},{"title":"chunking","href":"/reference/api/chunking"},{"title":"authoring","href":"/reference/api/authoring"}]}]},{"language":"vi","pages":[{"title":"vi","href":"/vi/guides/entity-kinds"}]}]},"basePath":"","title":"Entity kinds - ladyGraph","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}