UNPKG

@tixae-labs/web-sdk

Version:

Javascript Web SDK for doing WebRTC AI Voice Calls with TIXAE Agents.

38 lines (37 loc) 863 B
export interface VectorModel { id: string; namespace?: string; payload?: { text?: string; chunk_index?: number; doc_id?: string; doc_name?: string; url?: string; urlDescription?: string; }; vector: number[]; tags?: string[]; similarity?: number; } export interface POST_REQ_CollectionsKBD { payload: VectorModel[]; } export interface POST_REQ_DELETECollectionVectors { vector_ids: string[]; } export interface REQ_POSTCollectionSearchVectors { vector: number[]; with_payload?: boolean; with_vector?: boolean; max_chunks?: number; similarity_threshold?: number; tags?: string[]; } export interface REQ_POSTCollectionCreate { dimensions: number; } export interface CollectionModel { id: string; dimensions: number; vectors: VectorModel[]; }