landvex: Fixar och tester klara för alla komponenter
- Datafabrik: Dockerfile fix, agentorkestrering fungerar - Vision: Identify-modell, FAISS, OCR alla testade - API: Alla 7 integrationstester passerade - Upplösare: Entitetsupplösning verifierad
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
import {InternSet} from "internmap";
|
||||
|
||||
export default function intersection(values, ...others) {
|
||||
values = new InternSet(values);
|
||||
others = others.map(set);
|
||||
out: for (const value of values) {
|
||||
for (const other of others) {
|
||||
if (!other.has(value)) {
|
||||
values.delete(value);
|
||||
continue out;
|
||||
}
|
||||
}
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
function set(values) {
|
||||
return values instanceof InternSet ? values : new InternSet(values);
|
||||
}
|
||||
Reference in New Issue
Block a user