All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m12s
Replace JSON-string embeddings with native pgvector(1536) storage and add PostgreSQL full-text search (tsvector/GIN) with Reciprocal Rank Fusion for hybrid keyword + semantic ranking. Changes: - NoteEmbedding.embedding: String → vector(1536) via pgvector - NoteEmbedding: added updatedAt for reindex tracking - Note: added tsv (tsvector) with auto-update trigger for FTS - semantic-search.service: hybrid FTS + vector search with RRF fusion - embedding.service: toVectorString() for pgvector SQL literals - Removed JS-side cosine similarity loops (now DB-side via <=>) - Added HNSW index on NoteEmbedding.embedding (cosine distance) - Added GIN index on Note.tsv for FTS queries Schema migration in: prisma/migrations/20260512120000_pgvector_and_fts_search/ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
35 lines
837 B
TypeScript
35 lines
837 B
TypeScript
export type NavigationView = 'notebooks' | 'agents' | 'settings' | 'shared' | 'reminders' | 'trash';
|
|
export type AITone = 'Professional' | 'Creative' | 'Academic' | 'Casual';
|
|
export type AITab = 'discussion' | 'actions' | 'resources';
|
|
export type SettingsTab = 'general' | 'ai' | 'appearance' | 'profile' | 'data' | 'mcp' | 'about';
|
|
|
|
export interface Tag {
|
|
id: string;
|
|
label: string;
|
|
type: 'ai' | 'user';
|
|
}
|
|
|
|
export interface Note {
|
|
id: string;
|
|
carnetId: string;
|
|
title: string;
|
|
content: string;
|
|
imageUrl: string;
|
|
date: string;
|
|
tags: Tag[];
|
|
isPinned?: boolean;
|
|
isDeleted?: boolean;
|
|
deletedAt?: string;
|
|
}
|
|
|
|
export interface Carnet {
|
|
id: string;
|
|
name: string;
|
|
initial: string;
|
|
type: 'Private' | 'Project' | 'Shared';
|
|
isPrivate?: boolean;
|
|
parentId?: string;
|
|
isDeleted?: boolean;
|
|
deletedAt?: string;
|
|
}
|