@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
27 lines • 1.35 kB
TypeScript
/**
* Policy Vector Service
*
* Handles policy intent-specific Vector DB operations
* Extends BaseVectorService for policy intents
*/
import { PolicyIntent } from './organizational-types';
import { EmbeddingService } from './embedding-service';
import { BaseVectorService, BaseSearchOptions, BaseSearchResult } from './base-vector-service';
export interface PolicySearchOptions extends BaseSearchOptions {
}
export interface PolicySearchResult extends BaseSearchResult<PolicyIntent> {
}
export declare class PolicyVectorService extends BaseVectorService<PolicyIntent> {
constructor(embeddingService?: EmbeddingService);
protected createSearchText(policyIntent: PolicyIntent): string;
protected extractId(policyIntent: PolicyIntent): string;
protected createPayload(policyIntent: PolicyIntent): Record<string, unknown>;
protected payloadToData(payload: Record<string, unknown>): PolicyIntent;
storePolicyIntent(policyIntent: PolicyIntent): Promise<void>;
searchPolicyIntents(query: string, options?: PolicySearchOptions): Promise<PolicySearchResult[]>;
getPolicyIntent(id: string): Promise<PolicyIntent | null>;
getAllPolicyIntents(): Promise<PolicyIntent[]>;
deletePolicyIntent(id: string): Promise<void>;
getPolicyIntentsCount(): Promise<number>;
}
//# sourceMappingURL=policy-vector-service.d.ts.map