SYMBOL INDEX (50 symbols across 9 files) FILE: cache/index.js function get (line 23) | function get(name, key) { function set (line 29) | function set(name, key, value) { FILE: index.js function loadingPdf (line 7) | async function loadingPdf(pdfPath) { function askQuestion (line 19) | async function askQuestion(question, pdfName) { FILE: utils/ai.js function buildHash (line 7) | function buildHash(content) { function createCompletion (line 11) | async function createCompletion({ function getSummary (line 52) | async function getSummary({ content, tokenLength }) { function createEmbedding (line 74) | async function createEmbedding(input) { function askInsQuestion (line 87) | async function askInsQuestion({ question, knowledge }) { FILE: utils/ask.js function getKnowledge (line 8) | function getKnowledge({ function ask (line 35) | async function ask(question, pdfName) { FILE: utils/content.js constant LETTERS (line 4) | const LETTERS = function isDiseaseIntro (line 12) | function isDiseaseIntro(tokenLength, joinedContent) { function shortenDiseaseIntro (line 24) | function shortenDiseaseIntro(content) { function shortenByDictionary (line 36) | function shortenByDictionary(originContent, words, should) { function shortenTableContent (line 59) | function shortenTableContent(tableContent) { function shortenSectionContent (line 68) | function shortenSectionContent(sectionContent) { function shortenContent (line 96) | function shortenContent(longContent) { FILE: utils/embedding.js function buildKnowledgeEmbeddings (line 4) | async function buildKnowledgeEmbeddings(knowledge, pdfName) { function buildQuestionEmbedding (line 17) | async function buildQuestionEmbedding(question, pdfName) { FILE: utils/fs.js function readJsonFile (line 4) | function readJsonFile(path) { function getPdfName (line 13) | function getPdfName(pdfPath) { function getPath (line 17) | function getPath(pdfName, fileName) { function writeContentTree (line 27) | function writeContentTree(pdfName, docTree) { function writeKnowledge (line 31) | function writeKnowledge(pdfName, knowledge) { function readKnowledge (line 35) | function readKnowledge(pdfName) { function writeKnowledgeEmbeddings (line 39) | function writeKnowledgeEmbeddings(pdfName, embeddings) { function readKnowledgeEmbeddings (line 46) | function readKnowledgeEmbeddings(pdfName) { function getPdfPath (line 50) | function getPdfPath(pdfName) { function writeAnswer (line 54) | function writeAnswer(pdfName, question, answer) { FILE: utils/pdf.js constant PAGE_TYPE_COVER (line 10) | const PAGE_TYPE_COVER = 0; constant PAGE_TYPE_CATALOG (line 12) | const PAGE_TYPE_CATALOG = 1; constant PAGE_TYPE_MAIN (line 14) | const PAGE_TYPE_MAIN = 2; constant TITLE_SPLIT (line 16) | const TITLE_SPLIT = '__TITLE__'; constant QUOTE_SPLIT (line 17) | const QUOTE_SPLIT = '__QUOTE__'; constant REF_SPLIT (line 18) | const REF_SPLIT = '__REF__'; function buildDocTree (line 20) | function buildDocTree(longStr) { function isCatalogPage (line 78) | function isCatalogPage({ items }) { function moveNoteToMain (line 89) | function moveNoteToMain(items) { function getPdfItems (line 130) | async function getPdfItems(pdfPath) { function getPageMetaData (line 190) | function getPageMetaData(items) { function rebuildPdfItems (line 244) | function rebuildPdfItems(items) { function buildDocTreeFromPdf (line 293) | async function buildDocTreeFromPdf(pdfPath) { FILE: utils/tree.js function getParentNo (line 6) | function getParentNo(titleNo) { function toNestTree (line 12) | function toNestTree(flattenTree) { function rebuildTreeWithAISummary (line 56) | async function rebuildTreeWithAISummary(docTree, pdfName) { function buildNestTreeWithAISummary (line 85) | async function buildNestTreeWithAISummary(docTree, pdfName) { function unionContent (line 95) | function unionContent(node) { function buildContents (line 106) | function buildContents(nodes, contents) { function buildKnowledgeFromDocTree (line 121) | async function buildKnowledgeFromDocTree(docTree, pdfName) {