Payment confirmation delay
“Customers wait for the confirmation screen after the payment provider accepts the transaction.”
Support conversation · September 8
Vector search finds similar content, even when the words differ. SQL answers structured questions about your data. Minds gives your agents both, from finding a related support issue to analyzing when those issues occur.
Vector analytics
A question does not have to quote the answer. Explore related records, narrow the set, and read the source.
“Customers wait for the confirmation screen after the payment provider accepts the transaction.”
Support conversation · September 8
A result is useful when you can read it. Choose a record to inspect its original passage and provenance.
Interactive example collection with illustrative similarity scores.
A question about slow checkout can lead to a report about payment delays. Use a product-specific index to focus the search, then query structured records in SQL to count issues and compare when they occurred.
Similarity
An embedding represents the meaning of content as numbers. Minds indexes those vectors so you can search for nearby matches in your own data.
Metrics
Match the comparison method to your embedding model. Choose cosine similarity, Euclidean distance, or dot product when you create an index.
Search
Choose the relevant index and request the number of neighbors your agent needs. Use returned identifiers to connect matches to records in your application.
SQL
Count records, group results, and compare trends using SQL. The DataFusion query engine handles the execution behind those familiar queries.
Data exchange
The analytics engine uses Apache Arrow to represent data in columns, with Arrow Flight support for transferring tabular results.
Sources
Register CSV files, Parquet files, or core storage as query sources. Analyze the records relevant to your application.
Create an index with the dimensions your embedding model produces, add identified vectors, then search it. Use the analytics interface for SQL over registered tables.
// Run server-side with credentials scoped to this Mind.
const endpoint = process.env.AKASHA_URL;
const capability = process.env.AKASHA_CAPABILITY;
if (!endpoint || !capability) throw new Error("Configure your Mind connection");
async function request(method: string, path: string, body?: unknown) {
const headers: Record<string, string> = {
"Content-Type": "application/json",
"x-akasha-capability": capability!,
};
if (process.env.AKASHA_TOKEN) {
headers.Authorization = "Bearer " + process.env.AKASHA_TOKEN;
}
const response = await fetch(new URL(path, endpoint), {
method, headers,
body: body === undefined ? undefined : JSON.stringify(body),
});
if (!response.ok) throw new Error("Mind request failed: " + response.status);
return response.json();
}
// Three dimensions keep this example readable.
// Use the dimensions and vectors produced by your embedding model.
await request("POST", "/v1/ml/vector/create", {
name: "filings", dims: 3, metric: "cosine",
});
await request("POST", "/v1/ml/vector/add", {
name: "filings", id: crypto.randomUUID(), vector: [0.2, 0.5, 0.8],
});
const { matches } = await request("POST", "/v1/ml/vector/search", {
name: "filings", vector: [0.2, 0.4, 0.9], k: 5,
});
// Query your registered analytics sources through /v1/analytics/sql.HNSW indexes embeddings for approximate similarity search, with settings for balancing recall and search cost. DataFusion runs SQL over your registered data sources.
Find related information and ask structured questions about it, with search and analytics on your dedicated Mind.