Add local spoken passages with Google retrieval and isolated runtime setup
This commit is contained in:
1 parent
bc9459785d
commit
dab703413e
55 files changed
+3633
-70
No files matched your search
@@ -74,6 +74,9 @@ test('optional reasons use real source routes and never claim semantic word conf
|
||||
assert.match(text.legend,/without the same words/);
|
||||
assert.equal(text.semanticPassage,true);
|
||||
assert.match(matchExplanation({match_kind:'semantic_audio',source:{kind:'timestamp_ms',number:13129}}).reason,/0:13.*not an exact spoken phrase/);
|
||||
const speech=matchExplanation({match_kind:'semantic_speech',source:{kind:'timestamp_ms',number:13129}});
|
||||
assert.match(speech.reason,/0:13.*estimated token position/);
|
||||
assert.equal(speech.semanticPassage,true);
|
||||
assert.match(matchExplanation({match_kind:'semantic_video',source:{kind:'timestamp_ms',number:24167}}).reason,/frame.*0:24/);
|
||||
assert.match(matchExplanation({match_kind:'semantic_image'}).reason,/whole/);
|
||||
assert.match(matchExplanation({match_kind:'name_terms'}).reason,/filename, path or content/);
|
||||
|
||||
@@ -51,3 +51,13 @@ test('legacy full-pair status remains blocked during download and ready after se
|
||||
assert.equal(semanticIndexReady({...legacy,downloading:false}), true);
|
||||
assert.equal(semanticMediaReady({...legacy,downloading:false}), true);
|
||||
});
|
||||
|
||||
|
||||
test('partial speech publication cannot create an automatic retry loop', () => {
|
||||
const gate = new AutomaticIndexGate();
|
||||
const first = {...text(), speech:{ready:true,pending:true,requested_policy:'speech-v1-a',corpus_revision:7}};
|
||||
assert.equal(gate.claim(semanticIndexKey(first,4)),true);
|
||||
assert.equal(gate.claim(semanticIndexKey({...first,generation:99,pending:0},4)),false);
|
||||
assert.equal(gate.claim(semanticIndexKey({...first,speech:{...first.speech,corpus_revision:8}},4)),true);
|
||||
assert.equal(gate.claim(semanticIndexKey({...first,speech:{...first.speech,requested_policy:'speech-v1-b'}},4)),true);
|
||||
});
|
||||
Reference in new issue
Block a user