@lzhzzzzwill/cofos 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +7 -3
  2. package/scripts/chat.py +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzhzzzzwill/cofos",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "COFOS 9B + RAG chat CLI with optional local PDF ingestion.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,8 +8,12 @@
8
8
  },
9
9
  "files": [
10
10
  "bin",
11
- "scripts",
12
- "runtime",
11
+ "scripts/chat.py",
12
+ "runtime/config/*.yaml",
13
+ "runtime/config/*.md",
14
+ "runtime/src/data_processing/*.py",
15
+ "runtime/src/inference/*.py",
16
+ "runtime/src/retrieval/*.py",
13
17
  "requirements.txt"
14
18
  ],
15
19
  "scripts": {
package/scripts/chat.py CHANGED
@@ -418,9 +418,9 @@ def main() -> None:
418
418
  config = configure_cache_paths(config, args.pdf_dir)
419
419
 
420
420
  if not args.no_rag:
421
- ensure_runtime_data(project_root, config)
422
- pdf_changed = parse_pdfs_if_needed(project_root, config, force=args.rebuild_pdf_index)
423
- build_augmented_bm25_if_needed(project_root, config, force=args.rebuild_pdf_index or pdf_changed)
421
+ ensure_runtime_data(runtime_root, config)
422
+ pdf_changed = parse_pdfs_if_needed(runtime_root, config, force=args.rebuild_pdf_index)
423
+ build_augmented_bm25_if_needed(runtime_root, config, force=args.rebuild_pdf_index or pdf_changed)
424
424
 
425
425
  print("[chat] Loading model (this may take 1-2 min on first run) ...", file=sys.stderr, flush=True)
426
426