Initial commit: Brainy - Multi-Dimensional AI Database
Open source vector database with HNSW indexing, graph relationships, and metadata facets. Features CLI with professional augmentation registry integration for discovering extensions and capabilities.
This commit is contained in:
commit
f8c45f2d8d
448 changed files with 103294 additions and 0 deletions
28
dist/utils/statistics.d.ts
vendored
Normal file
28
dist/utils/statistics.d.ts
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* Utility functions for retrieving statistics from Brainy
|
||||
*/
|
||||
import { BrainyData } from '../brainyData.js';
|
||||
/**
|
||||
* Get statistics about the current state of a BrainyData instance
|
||||
* This function provides access to statistics at the root level of the library
|
||||
*
|
||||
* @param instance A BrainyData instance to get statistics from
|
||||
* @param options Additional options for retrieving statistics
|
||||
* @returns Object containing counts of nouns, verbs, metadata entries, and HNSW index size
|
||||
* @throws Error if the instance is not provided or if statistics retrieval fails
|
||||
*/
|
||||
export declare function getStatistics(instance: BrainyData, options?: {
|
||||
service?: string | string[];
|
||||
}): Promise<{
|
||||
nounCount: number;
|
||||
verbCount: number;
|
||||
metadataCount: number;
|
||||
hnswIndexSize: number;
|
||||
serviceBreakdown?: {
|
||||
[service: string]: {
|
||||
nounCount: number;
|
||||
verbCount: number;
|
||||
metadataCount: number;
|
||||
};
|
||||
};
|
||||
}>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue