UNPKG

vidscript

Version:

AI-powered CLI tool that transforms video content into intelligent, structured notes and scripts

39 lines (38 loc) 1.01 kB
import { RecordMetadata } from '@pinecone-database/pinecone'; interface VectorStoreOptions { indexName: string; namespace?: string; } interface ChunkMetadata extends RecordMetadata { text: string; chunkIndex: number; totalChunks: number; [key: string]: any; } interface QueryResult { text: string; score: number; metadata: ChunkMetadata; } export declare class VectorStore { private index; private namespace; constructor(options: VectorStoreOptions); /** * Convert text into embeddings using OpenAI's embedding model */ private textToEmbedding; /** * Store transcript chunks in the vector database */ storeTranscript(transcript: string, metadata?: Record<string, any>): Promise<void>; /** * Query the vector database to find relevant chunks */ query(query: string, topK?: number): Promise<QueryResult[]>; /** * Delete all vectors in the namespace */ clear(): Promise<void>; } export {};