File size: 418 Bytes
432a965
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 17 15:43:07 2023

@author: peter
"""

from docarray import BaseDoc
from docarray.typing import NDArray

class Statement(BaseDoc):
    url: str = ''
    title: str = ''
    vector: NDArray[768]
    
    def __nag__(self):
        return Statement(url=self.url,
                         title=self.title,
                         vector=-self.vector)