Skip to content

@codesoul-co/hypha-memory / structured-vector-store

Using this module

Use the Structured vector store module for persisting and reading data at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  StructuredManagedVectorStoreAdapter,
} from '@codesoul-co/hypha-memory';

import type {
  StructuredManagedVectorStoreAdapterOptions,
} from '@codesoul-co/hypha-memory';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
StructuredManagedVectorStoreAdapterclassnew StructuredManagedVectorStoreAdapter(store: StructuredStoreProvider, options?: StructuredManagedVectorStoreAdapterOptions): StructuredManagedVectorStoreAdapterDurable, bounded vector projection backed by the configured Structured Store.
StructuredManagedVectorStoreAdapterOptionsinterfaceinterface StructuredManagedVectorStoreAdapterOptionsStructured Managed Vector Store Adapter Options interface with 4 public fields or methods.

StructuredManagedVectorStoreAdapter

Durable, bounded vector projection backed by the configured Structured Store.

  • Kind: class
  • Import: import { StructuredManagedVectorStoreAdapter } from '@codesoul-co/hypha-memory';
  • Source module: structured-vector-store

Declaration

text
export declare class StructuredManagedVectorStoreAdapter implements ManagedVectorStoreAdapter {
    readonly id: string;
    constructor(store: StructuredStoreProvider, options?: StructuredManagedVectorStoreAdapterOptions);
    initialize(): Promise<void>;
    upsert(points: ManagedVectorPoint[], options?: ManagedVectorWriteOptions): Promise<void>;
    delete(ids: string[], options?: ManagedVectorWriteOptions): Promise<void>;
    search(request: ManagedVectorSearchRequest): Promise<ManagedVectorSearchResult[]>;
    health(): Promise<ProviderHealth>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(store: StructuredStoreProvider, options?: StructuredManagedVectorStoreAdapterOptions): StructuredManagedVectorStoreAdapterCreates an instance of this class.
deletemethoddelete(ids: string[], options?: ManagedVectorWriteOptions): Promise<void>Public method; parameters and return type are shown in the signature.
healthmethodhealth(): Promise<ProviderHealth>Public method; parameters and return type are shown in the signature.
idpropertyreadonly id: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
initializemethodinitialize(): Promise<void>Public method; parameters and return type are shown in the signature.
searchmethodsearch(request: ManagedVectorSearchRequest): Promise<ManagedVectorSearchResult[]>Public method; parameters and return type are shown in the signature.
upsertmethodupsert(points: ManagedVectorPoint[], options?: ManagedVectorWriteOptions): Promise<void>Public method; parameters and return type are shown in the signature.

StructuredManagedVectorStoreAdapterOptions

Structured Managed Vector Store Adapter Options interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { StructuredManagedVectorStoreAdapterOptions } from '@codesoul-co/hypha-memory';
  • Source module: structured-vector-store

Declaration

text
export interface StructuredManagedVectorStoreAdapterOptions {
    id?: string;
    table?: string;
    maxScanPoints?: number;
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
idpropertyid?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
maxScanPointspropertymaxScanPoints?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
tablepropertytable?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.