Jinal-Sarvaiya opened a new pull request, #214:
URL: https://github.com/apache/camel-kit/pull/214

    ## Summary
   
     This PR addresses issue #199 by implementing support for named, versioned 
knowledge collections with full isolation, provenance tracking, and diagnostics.
   
     ## Acceptance Criteria
   
     - [x] **Register sources and identify snapshots**
     Collection metadata (ID, version, sources) stored in index and verified on 
load
   
    - [x]  **Consistent acquisition, cache, search, diagnostics**
     Collections use dedicated cache paths, release tags, and are verified 
before serving queries
   
    - [x]  **Missing/incompatible collection error reporting**
     Clear error messages with cache locations and resolution steps. Fallback 
explicitly opt-in only.
   
    - [x]  **Two test collections verified**
     `CollectionIsolationTest` builds FooIntegration and BarPlatform 
collections, verifies complete isolation with signature phrases
   
    - [x] **Complete documentation**
     Updated `knowledge/README.md` with building, selecting, inspecting, and 
troubleshooting instructions
   
     ## Testing
   
     ```bash
     ./mvnw test -pl knowledge/indexer -Dtest=CollectionIsolationTest
     # Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
   
     Both tests verify:
     - Collection metadata is correctly stored
     - Collections are completely isolated (no cross-contamination)
     - Signature phrases identify the correct collection
   
     Example Usage
   
     Building a Custom Collection
   
     ./mvnw install -pl knowledge/index -Prebuild-index -am -B \
       -Dcollection.id=my-vendor \
       -Dcollection.version=1.0.0 \
       -Dcollection.sources='[{"repo":"my-org/docs","tag":"v1.0.0"}]'
   
     Selecting a Collection
   
     knowledge.index.collection-id=my-vendor
     knowledge.index.version=2024.11.29-123456  # Optional
     knowledge.index.allow-fallback=false       # Strict matching
   
   Inspecting Loaded Collection
   
   {
     "collection_id": "apache-camel",
     "collection_version": "2024.11.29-120000",
     "collection_sources": 
"[{\"repo\":\"apache/camel\",\"tag\":\"camel-4.22.1\"}]",
     "total_docs": 20367,
     "embedding_model": "granite-embedding-small-english-r2-q8",
     "search_mode": "hybrid+rerank"
   }
   
   Backward Compatibility
   
   - Default collection: apache-camel (existing behavior preserved)
   - Legacy indexes: Indexes without collection metadata are treated as 
apache-camel
   - Release tag format: apache-camel uses original 
knowledge-index-v1-{version} format
   - Cache paths: Existing caches work; new collections use subdirectories
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to