mlboydaisuke commited on
Commit
ade6818
Β·
verified Β·
1 Parent(s): 13164aa

gen-cards: regenerate Use-it block

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -42,13 +42,13 @@ dense) and [Qwen3-Reranker](https://huggingface.co/mlboydaisuke/Qwen3-Reranker-0
42
  <!-- gen-cards:use-it begin id=colmodernvbert (managed by scripts/gen-cards β€” edit cards.json / QuickStart.swift, not this block) -->
43
  ## Use it
44
 
45
- **New to Core AI? [Start with CoreAIKit 0.7.1](https://github.com/john-rocky/coreai-kit#readme).** Follow its requirements and first-run steps for `qwen3-0.6b`, then open the same release's [ChatDemo](https://github.com/john-rocky/coreai-kit/tree/0.7.1/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
46
 
47
- ▢️ **Run it (source)** β€” the [DocSearch runner](https://github.com/john-rocky/coreai-kit/tree/0.7.1/Examples/DocSearch)
48
  (visual page search over bundled sample pages; the GUI (iPhone) adds tiled where-it-matched highlights):
49
 
50
  ```bash
51
- git clone --branch 0.7.1 --depth 1 https://github.com/john-rocky/coreai-kit
52
  export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
53
  open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/DocSearch/DocSearch.xcodeproj
54
  # β†’ Run, then pick "ColModernVBERT" in the model picker
@@ -75,7 +75,7 @@ let hits = try await retriever.retrieve(query: query, over: corpus, topK: pages.
75
  // hits: pages ranked by MaxSim, best match first β€” no OCR, pages are matched as pictures
76
  ```
77
 
78
- The take-home is [`Examples/DocSearch/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.1/Examples/DocSearch/Sources/QuickStart.swift)
79
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
80
  the GUI drives the same `VisualDocumentRetriever(catalog:)` with tiled per-page encoding.
81
  Encode your corpus once and keep the `PageEmbedding`s β€” scoring a query is then host-side
@@ -83,10 +83,10 @@ MaxSim, no model call per page. `encodeTiled(page:)` localizes *where* a query m
83
 
84
  **Integration checklist**
85
 
86
- - SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.1**) β†’ product **CoreAIKitEmbeddings**
87
  - Info.plist: `NSPhotoLibraryUsageDescription` β€” only if you use PhotosPicker to import pages
88
  - Entitlements: none needed
89
- - First run downloads the model β€” ~741 MB (Mac) / ~741 MB (iPhone) β€” then it loads from the
90
  local cache (Application Support; progress via the `downloadProgress` callback)
91
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
92
  <!-- gen-cards:use-it end -->
 
42
  <!-- gen-cards:use-it begin id=colmodernvbert (managed by scripts/gen-cards β€” edit cards.json / QuickStart.swift, not this block) -->
43
  ## Use it
44
 
45
+ **New to Core AI? [Start with CoreAIKit 0.7.3](https://github.com/john-rocky/coreai-kit#readme).** Follow its requirements and first-run steps for `qwen3-0.6b`, then open the same release's [ChatDemo](https://github.com/john-rocky/coreai-kit/tree/0.7.3/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
46
 
47
+ ▢️ **Run it (source)** β€” the [DocSearch runner](https://github.com/john-rocky/coreai-kit/tree/0.7.3/Examples/DocSearch)
48
  (visual page search over bundled sample pages; the GUI (iPhone) adds tiled where-it-matched highlights):
49
 
50
  ```bash
51
+ git clone --branch 0.7.3 --depth 1 https://github.com/john-rocky/coreai-kit
52
  export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
53
  open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/DocSearch/DocSearch.xcodeproj
54
  # β†’ Run, then pick "ColModernVBERT" in the model picker
 
75
  // hits: pages ranked by MaxSim, best match first β€” no OCR, pages are matched as pictures
76
  ```
77
 
78
+ The take-home is [`Examples/DocSearch/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.3/Examples/DocSearch/Sources/QuickStart.swift)
79
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
80
  the GUI drives the same `VisualDocumentRetriever(catalog:)` with tiled per-page encoding.
81
  Encode your corpus once and keep the `PageEmbedding`s β€” scoring a query is then host-side
 
83
 
84
  **Integration checklist**
85
 
86
+ - SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.3**) β†’ product **CoreAIKitEmbeddings**
87
  - Info.plist: `NSPhotoLibraryUsageDescription` β€” only if you use PhotosPicker to import pages
88
  - Entitlements: none needed
89
+ - First run downloads the model β€” ~743 MB (Mac) / ~743 MB (iPhone) β€” then it loads from the
90
  local cache (Application Support; progress via the `downloadProgress` callback)
91
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
92
  <!-- gen-cards:use-it end -->