mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 05:02:06 +10:00
refactor naming
This commit is contained in:
@ -7,7 +7,6 @@ import {
|
||||
import {
|
||||
generateAiContent,
|
||||
generateAiContentStream,
|
||||
getAiConfig,
|
||||
} from "@/ee/ai/services/ai-service.ts";
|
||||
import {
|
||||
AiConfigResponse,
|
||||
|
||||
@ -31,7 +31,7 @@ export interface DbInterface {
|
||||
fileTasks: FileTasks;
|
||||
groups: Groups;
|
||||
groupUsers: GroupUsers;
|
||||
pageEmbeddings: Embeddings;
|
||||
embeddings: Embeddings;
|
||||
pageHistory: PageHistory;
|
||||
pages: Pages;
|
||||
shares: Shares;
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
import { Json, Timestamp, Generated } from '@docmost/db/types/db';
|
||||
|
||||
// page_embeddings type
|
||||
// embeddings type
|
||||
export interface Embeddings {
|
||||
id: Generated<string>;
|
||||
pageId: string;
|
||||
spaceId: string;
|
||||
workspaceId: string;
|
||||
attachmentId: string;
|
||||
embedding: number[] | Buffer | string;
|
||||
chunkIndex: Generated<number>;
|
||||
chunkStart: Generated<number>;
|
||||
|
||||
@ -122,6 +122,6 @@ export type InsertableUserMFA = Insertable<_UserMFA>;
|
||||
export type UpdatableUserMFA = Updateable<Omit<_UserMFA, 'id'>>;
|
||||
|
||||
// Page Embedding
|
||||
export type PageEmbedding = Selectable<Embeddings>;
|
||||
export type InsertablePageEmbedding = Insertable<Embeddings>;
|
||||
export type UpdatablePageEmbedding = Updateable<Omit<Embeddings, 'id'>>;
|
||||
export type Embedding = Selectable<Embeddings>;
|
||||
export type InsertableEmbedding = Insertable<Embeddings>;
|
||||
export type UpdatableEmbedding = Updateable<Omit<Embeddings, 'id'>>;
|
||||
|
||||
Submodule apps/server/src/ee updated: d7f919d7b7...fd34d4183a
@ -225,4 +225,12 @@ export class EnvironmentService {
|
||||
getOpenAiModel(): string {
|
||||
return this.configService.get<string>('OPENAI_MODEL');
|
||||
}
|
||||
|
||||
isAIEnabled(): string {
|
||||
return this.configService.get<string>('ENABLE_AI');
|
||||
}
|
||||
|
||||
isAIVectorSearchEnabled(): string {
|
||||
return this.configService.get<string>('AI_VECTOR_SEARCH');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user