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
@@ -14,6 +14,12 @@ export interface SemanticSetupStatus {
|
||||
media_model_ready?: boolean;
|
||||
media_model_error?: string | null;
|
||||
requested_coverage?: SemanticCoverage;
|
||||
speech?: {
|
||||
ready: boolean;
|
||||
pending: boolean;
|
||||
requested_policy: string | null;
|
||||
corpus_revision: number;
|
||||
};
|
||||
}
|
||||
|
||||
export function semanticIndexReady(status: SemanticSetupStatus) {
|
||||
@@ -30,6 +36,11 @@ export function semanticIndexKey(
|
||||
status: SemanticSetupStatus,
|
||||
folderRevision: number,
|
||||
) {
|
||||
if (status.speech?.ready && status.speech.pending) {
|
||||
// Failed optional speech can still publish raw media: publication must not
|
||||
// create an infinite retry loop for the same source corpus and policy.
|
||||
return `speech:${status.speech.requested_policy}:${status.speech.corpus_revision}:${folderRevision}`;
|
||||
}
|
||||
return `${status.generation}:${status.pending}:${folderRevision}:${status.requested_coverage ?? "full_media"}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user