feat: rag-embedding-ai-chat (#1)
Co-authored-by: Sharang Parnerkar <parnerkarsharang@gmail.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -169,20 +169,20 @@
|
||||
enabled: true,
|
||||
solver: "forceAtlas2Based",
|
||||
forceAtlas2Based: {
|
||||
gravitationalConstant: -60,
|
||||
centralGravity: 0.012,
|
||||
springLength: 80,
|
||||
springConstant: 0.06,
|
||||
damping: 0.4,
|
||||
avoidOverlap: 0.5,
|
||||
gravitationalConstant: -80,
|
||||
centralGravity: 0.005,
|
||||
springLength: 120,
|
||||
springConstant: 0.04,
|
||||
damping: 0.5,
|
||||
avoidOverlap: 0.6,
|
||||
},
|
||||
stabilization: {
|
||||
enabled: true,
|
||||
iterations: 1000,
|
||||
iterations: 1500,
|
||||
updateInterval: 25,
|
||||
},
|
||||
maxVelocity: 40,
|
||||
minVelocity: 0.1,
|
||||
maxVelocity: 50,
|
||||
minVelocity: 0.75,
|
||||
},
|
||||
interaction: {
|
||||
hover: true,
|
||||
@@ -252,7 +252,24 @@
|
||||
overlay.style.display = "none";
|
||||
}, 900);
|
||||
}
|
||||
network.setOptions({ physics: { enabled: false } });
|
||||
// Keep physics running so nodes float and respond to dragging,
|
||||
// but reduce forces for a calm, settled feel
|
||||
network.setOptions({
|
||||
physics: {
|
||||
enabled: true,
|
||||
solver: "forceAtlas2Based",
|
||||
forceAtlas2Based: {
|
||||
gravitationalConstant: -40,
|
||||
centralGravity: 0.003,
|
||||
springLength: 120,
|
||||
springConstant: 0.03,
|
||||
damping: 0.7,
|
||||
avoidOverlap: 0.6,
|
||||
},
|
||||
maxVelocity: 20,
|
||||
minVelocity: 0.75,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user