MCPcopy Create free account
hub / github.com/diillson/chatcli / isJSONLPath

Function isJSONLPath

cli/ctxmgr/knowledge.go:57–59  ·  view source on GitHub ↗

isJSONLPath reports whether path names a JSONL corpus file.

(path string)

Source from the content-addressed store, hash-verified

55
56// isJSONLPath reports whether path names a JSONL corpus file.
57func isJSONLPath(path string) bool {
58 return strings.EqualFold(filepath.Ext(path), ".jsonl")
59}
60
61// ingestKnowledgeJSONL parses a docs-flatten JSONL file into per-chunk
62// FileInfo entries. Each chunk becomes one virtual file whose Path is the

Callers 3

CreateContextMethod · 0.85
UpdateContextMethod · 0.85

Calls

no outgoing calls

Tested by 1