Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript
443 B
Raw Blame
export function shouldHideNodeType(
  nodeType: string | undefined,
  hiddenTypes: ReadonlySet<string>,
): boolean {
  return nodeType !== undefined && hiddenTypes.has(nodeType)
}

export function shouldHideEdgeByNodeTypes(
  sourceType: string | undefined,
  targetType: string | undefined,
  hiddenTypes: ReadonlySet<string>,
): boolean {
  return shouldHideNodeType(sourceType, hiddenTypes) || shouldHideNodeType(targetType, hiddenTypes)
}