// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);
// Torvaix agent server — http://127.0.0.1:3001
const agent = 'http://localhost:3001';
// Remember a fact in a workspace
await fetch(`${agent}/api/memory/store`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
workspaceId: 'default',
content: 'My favourite framework is Svelte',
}),
});
// Recall it later (keyword + vector search)
const res = await fetch(`${agent}/api/memory/query`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ workspaceId: 'default', query: 'framework', topK: 3 }),
});
const { results } = await res.json();
console.log(results[0].content);