MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / __init__

Method __init__

CommonKG/corpus.py:46–49  ·  view source on GitHub ↗
(self, doc_name, source_id,  corpus)

Source from the content-addressed store, hash-verified

44# return list(match_words)
45class Corpus(object):
46 def __init__(self, doc_name, source_id, corpus):
47 self.doc_name = doc_name
48 self.source_id = source_id
49 self.corpus = corpus
50
51 def get_match_words(self, entities: list):
52 match_words = {"doc_name": self.doc_name, "source_id": self.source_id, "text": self.corpus, "match_words": []}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected