Vector database on top of Postgres for AI
❓ CHALLENGE
function* fibGenerator() {
let a = 0, b = 1;
while (true) {
let next = a + b;
a = b;
b = next;
yield next;
}
}
const gen = fibGenerator();
const fibArray = Array.from({ length: 5 }, () => gen.next().value);
console.log(fibArray);