feat: add rag by codex
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
} from 'typeorm';
|
||||
import { Conversation } from './conversation.entity';
|
||||
import { MessageRole } from '../enums/message-role.enum';
|
||||
import type { SourceCitation } from '@/modules/rag/rag-context.service';
|
||||
|
||||
@Entity()
|
||||
export class Message extends BaseEntity {
|
||||
@@ -38,6 +39,9 @@ export class Message extends BaseEntity {
|
||||
@Column({ type: 'text' })
|
||||
content!: string;
|
||||
|
||||
@Column({ type: 'jsonb', nullable: true })
|
||||
sources!: SourceCitation[] | null;
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt!: Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user