File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export * from ' ./errors'
2- export * from ' ./typings'
1+ export * from " ./errors" ;
2+ export * from " ./typings" ;
Original file line number Diff line number Diff line change 1+ export type MsgVectorPayload = {
2+ conversationID : string ;
3+ userContent : string ;
4+ botContent : string ;
5+ } ;
Original file line number Diff line number Diff line change 1+ export type VectorPoint = {
2+ id : string | number ;
3+ version : number ;
4+ score : number ;
5+ payload ?:
6+ | Record < string , unknown >
7+ | {
8+ [ key : string ] : unknown ;
9+ }
10+ | null
11+ | undefined ;
12+ vector ?:
13+ | Record < string , unknown >
14+ | number [ ]
15+ | {
16+ [ key : string ] : number [ ] | undefined ;
17+ }
18+ | null
19+ | undefined ;
20+ } ;
Original file line number Diff line number Diff line change 1+ export type Match = {
2+ value : string ;
3+ } ;
4+
5+ export type Must = {
6+ key : string ;
7+ match : Match ;
8+ } ;
9+
10+ export type Filter = {
11+ must : Must [ ] ;
12+ } ;
13+
14+ export type Searches = {
15+ vector : number [ ] ;
16+ limit : number ;
17+ with_payload : boolean ;
18+ filter : Filter ;
19+ } ;
20+
21+ export type VectorSearchParams = {
22+ searches : Searches [ ] ;
23+ } ;
Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ export * from "./IUser";
22export * from "./JsonResp" ;
33export * from "./ReqParams" ;
44export * from "./IConversation" ;
5+ export * from "./MsgVectorPayload" ;
6+ export * from "./VectorPoint" ;
7+ export * from "./VectorSearchParams" ;
You can’t perform that action at this time.
0 commit comments