Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zleap-AI/SAG
/ functions
Functions
494 in github.com/Zleap-AI/SAG
⨍
Functions
494
◇
Types & classes
85
↓ 3 callers
Function
readConfiguredSourceId
()
src/mcp/server.ts:110
↓ 3 callers
Function
safeParseJson
(text: string)
web/src/lib/api.ts:24
↓ 3 callers
Function
searchChunksByVector
(input: { sourceIds: string[]; queryVector: number[]; topK: number; })
src/db/repositories.ts:668
↓ 3 callers
Method
updateSettings
(input: UpdateAiSettingsInput)
src/services/ai-settings-service.ts:82
↓ 2 callers
Function
addMcpMessage
(input: { sessionId: string; role: McpMessageRole; content: string; metadata?: Record<string, unknown>
src/db/repositories.ts:1496
↓ 2 callers
Function
addMcpToolCall
(input: { sessionId: string; messageId?: string | null; toolName: string; arguments: Record<string, un
src/db/repositories.ts:1514
↓ 2 callers
Function
aiProviderSettingsFromRow
(row: Record<string, unknown>)
src/db/repositories.ts:160
↓ 2 callers
Method
archiveDocument
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:319
↓ 2 callers
Method
archiveProject
(projectId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:107
↓ 2 callers
Function
assertSourcesAccessible
(sourceIds: string[], tenantId: string)
src/db/repositories.ts:309
↓ 2 callers
Method
batchGenerate
(texts: string[])
src/ai/embedding-client.ts:8
↓ 2 callers
Function
benchmarkExtractionSchema
()
src/ai/llm-client.ts:346
↓ 2 callers
Function
buildChunk
(sections: SectionDraft[], rank: number)
src/ingestion/chunking/markdown.ts:342
↓ 2 callers
Function
buildMcpSearchQueryStep
(toolCall: McpToolCallRecord, language: SupportedLanguage)
web/src/App.tsx:3899
↓ 2 callers
Function
buildTraceProcessSteps
(trace: unknown, groupTitle: string, language: SupportedLanguage)
web/src/App.tsx:3752
↓ 2 callers
Function
compareEntities
(a?: ProjectGraphEntityRecord, b?: ProjectGraphEntityRecord)
web/src/components/ProjectGraphFlow.tsx:629
↓ 2 callers
Function
compareEvents
(a?: ProjectGraphEventRecord, b?: ProjectGraphEventRecord)
web/src/components/ProjectGraphFlow.tsx:633
↓ 2 callers
Function
contextPanelModeLabel
(mode: ContextPanelMode, t: (zh: string, en: string) => string)
web/src/App.tsx:3635
↓ 2 callers
Function
createGraphNode
(input: { id: string; label: string; kind: GraphNodeData["kind"]; expanded: boolean; x: number; y:
web/src/components/ProjectGraphFlow.tsx:401
↓ 2 callers
Function
createMcpProgressEmitter
(emit: McpNotificationEmitter)
src/mcp/server.ts:167
↓ 2 callers
Method
createProject
(input: { name: string; description?: string | null; }, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:72
↓ 2 callers
Function
createSource
(input: { id?: string; tenantId: string; name: string; description?: string; metadata?: Record<strin
src/db/repositories.ts:178
↓ 2 callers
Method
createUploadJob
(input: { title?: string; fileName: string; content: string; sourceId?: string; extract?:
src/services/webui-service.ts:181
↓ 2 callers
Function
deleteDocument
(documentId: string)
web/src/lib/api.ts:137
↓ 2 callers
Method
deleteDocument
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:335
↓ 2 callers
Method
deleteProject
(projectId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:123
↓ 2 callers
Function
detectBrowserLanguage
()
web/src/i18n.tsx:61
↓ 2 callers
Function
entity
(id: string, sourceId: string, name: string)
test/search-service-multi.test.ts:265
↓ 2 callers
Function
envSettings
()
src/services/ai-settings-service.ts:133
↓ 2 callers
Function
extractCitationSections
(result: unknown)
src/services/mcp-agent-service.ts:689
↓ 2 callers
Function
extractEventsFromChunk
(input: { llm: LlmClient; documentTitle: string; heading?: string; content: string; references: stri
src/ingestion/extract/extractor.ts:4
↓ 2 callers
Function
extractToolText
(value: unknown)
src/services/mcp-agent-service.ts:858
↓ 2 callers
Function
fallbackPosition
()
web/src/components/ProjectGraphFlow.tsx:517
↓ 2 callers
Function
finishRunningSteps
()
web/src/App.tsx:677
↓ 2 callers
Function
firstSentence
(text: string)
src/ai/llm-client.ts:710
↓ 2 callers
Function
formatDataContent
(content: string, t: (zh: string, en: string) => string)
web/src/App.tsx:4089
↓ 2 callers
Function
formatMessageContent
(content: string, t: (zh: string, en: string) => string)
web/src/App.tsx:4057
↓ 2 callers
Method
getDocument
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:343
↓ 2 callers
Function
getDocumentDetail
(input: { documentId: string; tenantId: string; })
src/db/repositories.ts:1092
↓ 2 callers
Method
getEntity
(entityId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:363
↓ 2 callers
Function
getEntityDetail
(input: { entityId: string; tenantId: string; includeArchived?: boolean; })
src/db/repositories.ts:1207
↓ 2 callers
Function
getMcpSearchQuery
(args: Record<string, unknown>, language: SupportedLanguage)
web/src/App.tsx:3889
↓ 2 callers
Method
getProjectGraph
(projectId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:303
↓ 2 callers
Method
getProjectStats
(projectId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:299
↓ 2 callers
Method
getUploadJob
(jobId: string)
src/services/webui-service.ts:218
↓ 2 callers
Function
isMarkdownTableRow
(line: string)
web/src/App.tsx:3472
↓ 2 callers
Method
listChunks
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:347
↓ 2 callers
Method
listEntities
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:355
↓ 2 callers
Method
listEvents
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:351
↓ 2 callers
Method
listSessions
(input: { sourceId?: string } = {}, tenantId = config.DEFAULT_TENANT_ID)
src/services/mcp-agent-service.ts:79
↓ 2 callers
Function
listSources
(input: { tenantId: string; limit: number; cursor?: string; includeArchived?: boolean; })
src/db/repositories.ts:210
↓ 2 callers
Method
listSources
(input: { limit?: number; cursor?: string }, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:68
↓ 2 callers
Function
loadDocumentWorkspace
(documentId: string)
web/src/App.tsx:345
↓ 2 callers
Function
localRerank
(query: string, candidates: EventRecord[], topK: number)
src/ai/llm-client.ts:687
↓ 2 callers
Function
localScoreRerank
(query: string, candidates: EventRecord[], topK: number)
src/ai/rerank-client.ts:204
↓ 2 callers
Function
normalizeEventText
(value: string, fallback: string, inputIsChinese: boolean)
src/ai/llm-client.ts:545
↓ 2 callers
Function
normalizeKeyword
(value: string)
web/src/App.tsx:3631
↓ 2 callers
Function
normalizeOptionalSecret
(value: string | undefined)
src/services/ai-settings-service.ts:200
↓ 2 callers
Function
normalizeTokenCount
(value: number, min: number, max: number)
src/ingestion/chunking/markdown.ts:150
↓ 2 callers
Function
overlapScore
(queryTokens: Set<string>, text: string)
src/ai/llm-client.ts:699
↓ 2 callers
Function
parseToolJsonResult
(result: unknown)
src/services/mcp-agent-service.ts:717
↓ 2 callers
Function
parseToolResponse
(value: unknown)
web/src/App.tsx:3944
↓ 2 callers
Function
previewText
(text: string, limit: number)
src/ai/rerank-client.ts:262
↓ 2 callers
Function
previewText
(text: string, limit: number)
src/services/search-service.ts:653
↓ 2 callers
Function
readDefaultChunkingMode
(metadata: Record<string, unknown>)
src/services/ai-settings-service.ts:184
↓ 2 callers
Function
readDefaultSearchMode
(metadata: Record<string, unknown>)
src/services/ai-settings-service.ts:180
↓ 2 callers
Function
readSseStream
(response: Response, onEvent: (event: T) => void)
web/src/lib/api.ts:344
↓ 2 callers
Function
relationEmbeddingKey
(eventId: string, entity: ExtractedEntity)
src/services/ingestion-service.ts:438
↓ 2 callers
Method
rerankEvents
(input: { query: string; candidates: EventRecord[]; topK: number; })
src/ai/llm-client.ts:15
↓ 2 callers
Function
resetProcess
(title: string, detail?: string)
web/src/App.tsx:636
↓ 2 callers
Method
restoreDocument
(documentId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:327
↓ 2 callers
Method
restoreProject
(projectId: string, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:115
↓ 2 callers
Function
resultViewLabel
(view: ResultView, language: SupportedLanguage)
web/src/App.tsx:3613
↓ 2 callers
Method
runUserMessage
(input: { sessionId: string; content: string; signal?: AbortSignal; }, tenantId = config.DEFAULT
src/services/mcp-agent-service.ts:107
↓ 2 callers
Function
searchEntitiesByVector
(input: { sourceIds: string[]; queryVector: number[]; topK: number; threshold: number; })
src/db/repositories.ts:390
↓ 2 callers
Function
searchEventsByTitleVector
(input: { sourceIds: string[]; queryVector: number[]; topK: number; threshold: number; })
src/db/repositories.ts:542
↓ 2 callers
Function
shortId
(id?: string | null)
web/src/lib/utils.ts:8
↓ 2 callers
Function
submitCreateProject
()
web/src/App.tsx:1310
↓ 2 callers
Function
submitRenameProject
()
web/src/App.tsx:1323
↓ 2 callers
Function
subscribeModelCallLogs
(listener: ModelCallLogListener)
src/observability/model-call-log.ts:99
↓ 2 callers
Function
tableAlignClass
(alignment?: "left" | "center" | "right")
web/src/App.tsx:3495
↓ 2 callers
Function
toPublicSettings
(settings: AiProviderSettingsRecord)
src/services/ai-settings-service.ts:158
↓ 2 callers
Function
touchMcpSession
(sessionId: string)
src/db/repositories.ts:1577
↓ 2 callers
Function
uniqueStrings
(values: string[])
src/ai/llm-client.ts:612
↓ 2 callers
Method
updateDocument
(documentId: string, input: { title?: string }, tenantId = config.DEFAULT_TENANT_ID)
src/services/webui-service.ts:307
↓ 2 callers
Method
updateProject
(projectId: string, input: { name?: string; description?: string | null; }, tenantId = config.DEFAUL
src/services/webui-service.ts:91
↓ 2 callers
Function
upsertProcessStep
(step: ProcessStep)
web/src/App.tsx:657
↓ 2 callers
Method
vectorSearch
(input: SearchInput, emit?: SearchProgressEmitter)
src/services/search-service.ts:69
↓ 2 callers
Function
waitBeforeRetry
(attempt: number)
src/ai/rerank-client.ts:258
↓ 2 callers
Function
waitBeforeRetry
(attempt: number)
src/ai/llm-client.ts:239
↓ 1 callers
Function
appendMessageToDetail
(message: McpMessageRecord)
web/src/App.tsx:683
↓ 1 callers
Function
appendToolCallToDetail
(toolCall: McpToolCallRecord)
web/src/App.tsx:694
↓ 1 callers
Function
applySelectionStyles
(input: { nodes: GraphNode[]; edges: GraphEdge[]; selectedNodeId: string | null; })
web/src/components/ProjectGraphFlow.tsx:437
↓ 1 callers
Function
archiveDocument
(input: { documentId: string; tenantId: string; })
src/db/repositories.ts:867
↓ 1 callers
Function
archiveOrRestoreDocument
(document: DocumentRecord)
web/src/App.tsx:553
↓ 1 callers
Function
archiveOrRestoreProject
(project: SourceRecord)
web/src/App.tsx:496
↓ 1 callers
Function
archiveSource
(input: { sourceId: string; tenantId: string; })
src/db/repositories.ts:266
↓ 1 callers
Method
batchGenerate
(texts: string[])
src/ai/embedding-client.ts:17
↓ 1 callers
Function
benchmarkExtractionExampleInput
()
src/ai/llm-client.ts:296
↓ 1 callers
Function
benchmarkExtractionExampleOutput
()
src/ai/llm-client.ts:317
← previous
next →
101–200 of 494, ranked by callers