@dailydotdev/schema 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +1 -0
- package/dist/bragi/pipelines_connect.cjs +133 -0
- package/dist/bragi/pipelines_connect.d.cts +113 -0
- package/dist/bragi/pipelines_connect.d.ts +113 -0
- package/dist/bragi/pipelines_connect.js +110 -0
- package/dist/bragi/pipelines_pb.cjs +842 -0
- package/dist/bragi/pipelines_pb.d.cts +467 -0
- package/dist/bragi/pipelines_pb.d.ts +467 -0
- package/dist/bragi/pipelines_pb.js +801 -0
- package/dist/bragi/proxy_connect.cjs +88 -0
- package/dist/bragi/proxy_connect.d.cts +68 -0
- package/dist/bragi/proxy_connect.d.ts +68 -0
- package/dist/bragi/proxy_connect.js +65 -0
- package/dist/bragi/proxy_pb.cjs +595 -0
- package/dist/bragi/proxy_pb.d.cts +332 -0
- package/dist/bragi/proxy_pb.d.ts +332 -0
- package/dist/bragi/proxy_pb.js +561 -0
- package/dist/daily-api/posts_connect.cjs +44 -0
- package/dist/daily-api/posts_connect.d.cts +24 -0
- package/dist/daily-api/posts_connect.d.ts +24 -0
- package/dist/daily-api/posts_connect.js +21 -0
- package/dist/daily-api/posts_pb.cjs +122 -0
- package/dist/daily-api/posts_pb.d.cts +50 -0
- package/dist/daily-api/posts_pb.d.ts +50 -0
- package/dist/daily-api/posts_pb.js +98 -0
- package/dist/feed/personalised/personalised_pb.cjs +122 -0
- package/dist/feed/personalised/personalised_pb.d.cts +50 -0
- package/dist/feed/personalised/personalised_pb.d.ts +50 -0
- package/dist/feed/personalised/personalised_pb.js +98 -0
- package/dist/index.cjs +39 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/snotra/engagement/engagement_pb.cjs +201 -0
- package/dist/snotra/engagement/engagement_pb.d.cts +133 -0
- package/dist/snotra/engagement/engagement_pb.d.ts +133 -0
- package/dist/snotra/engagement/engagement_pb.js +175 -0
- package/dist/snotra/personalisation/personalisation_pb.cjs +431 -0
- package/dist/snotra/personalisation/personalisation_pb.d.cts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.d.ts +226 -0
- package/dist/snotra/personalisation/personalisation_pb.js +400 -0
- package/dist/util/error_pb.cjs +71 -0
- package/dist/util/error_pb.d.cts +25 -0
- package/dist/util/error_pb.d.ts +25 -0
- package/dist/util/error_pb.js +48 -0
- package/package.json +44 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var pipelines_connect_exports = {};
|
|
19
|
+
__export(pipelines_connect_exports, {
|
|
20
|
+
Pipelines: () => Pipelines
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(pipelines_connect_exports);
|
|
23
|
+
var import_pipelines_pb = require("./pipelines_pb.ts");
|
|
24
|
+
var import_protobuf = require("@bufbuild/protobuf");
|
|
25
|
+
var import_proxy_pb = require("./proxy_pb.ts");
|
|
26
|
+
const Pipelines = {
|
|
27
|
+
typeName: "bragi.pipelines.Pipelines",
|
|
28
|
+
methods: {
|
|
29
|
+
/**
|
|
30
|
+
* Calculates new dimensions for a post
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc bragi.pipelines.Pipelines.EnrichPost
|
|
33
|
+
*/
|
|
34
|
+
enrichPost: {
|
|
35
|
+
name: "EnrichPost",
|
|
36
|
+
I: import_pipelines_pb.EnrichRequest,
|
|
37
|
+
O: import_pipelines_pb.EnrichResponse,
|
|
38
|
+
kind: import_protobuf.MethodKind.Unary
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Turns a user's prompt into a search query
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateSearchQuery
|
|
44
|
+
*/
|
|
45
|
+
generateSearchQuery: {
|
|
46
|
+
name: "GenerateSearchQuery",
|
|
47
|
+
I: import_pipelines_pb.SearchQueryRequest,
|
|
48
|
+
O: import_pipelines_pb.SearchQueryResponse,
|
|
49
|
+
kind: import_protobuf.MethodKind.Unary
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Filters a list of search results based on a user's prompt
|
|
53
|
+
*
|
|
54
|
+
* @generated from rpc bragi.pipelines.Pipelines.FilterSearchResults
|
|
55
|
+
*/
|
|
56
|
+
filterSearchResults: {
|
|
57
|
+
name: "FilterSearchResults",
|
|
58
|
+
I: import_pipelines_pb.FilterSearchRequest,
|
|
59
|
+
O: import_pipelines_pb.FilterSearchResponse,
|
|
60
|
+
kind: import_protobuf.MethodKind.Unary
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* Generates a prompt to answer a user's question
|
|
64
|
+
*
|
|
65
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPrompt
|
|
66
|
+
*/
|
|
67
|
+
buildSearchPrompt: {
|
|
68
|
+
name: "BuildSearchPrompt",
|
|
69
|
+
I: import_pipelines_pb.SearchPromptRequest,
|
|
70
|
+
O: import_pipelines_pb.SearchPromptResponse,
|
|
71
|
+
kind: import_protobuf.MethodKind.Unary
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* Streams the search answer
|
|
75
|
+
*
|
|
76
|
+
* @generated from rpc bragi.pipelines.Pipelines.StreamSearchAnswer
|
|
77
|
+
*/
|
|
78
|
+
streamSearchAnswer: {
|
|
79
|
+
name: "StreamSearchAnswer",
|
|
80
|
+
I: import_pipelines_pb.SearchAnswerRequest,
|
|
81
|
+
O: import_proxy_pb.ChatStreamResponse,
|
|
82
|
+
kind: import_protobuf.MethodKind.ServerStreaming
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Checks if the url is in the cache
|
|
86
|
+
*
|
|
87
|
+
* @generated from rpc bragi.pipelines.Pipelines.IsPageInCache
|
|
88
|
+
*/
|
|
89
|
+
isPageInCache: {
|
|
90
|
+
name: "IsPageInCache",
|
|
91
|
+
I: import_pipelines_pb.IsPageInCacheRequest,
|
|
92
|
+
O: import_pipelines_pb.IsPageInCacheResponse,
|
|
93
|
+
kind: import_protobuf.MethodKind.Unary
|
|
94
|
+
},
|
|
95
|
+
/**
|
|
96
|
+
* Stores the scraped page in the cache (cleaning, separating to sections, etc)
|
|
97
|
+
*
|
|
98
|
+
* @generated from rpc bragi.pipelines.Pipelines.CachePage
|
|
99
|
+
*/
|
|
100
|
+
cachePage: {
|
|
101
|
+
name: "CachePage",
|
|
102
|
+
I: import_pipelines_pb.ScrapedPage,
|
|
103
|
+
O: import_protobuf.Empty,
|
|
104
|
+
kind: import_protobuf.MethodKind.Unary
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* Optimized version of BuildSearchPrompt that assumes the search results are already cached
|
|
108
|
+
*
|
|
109
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPromptV2
|
|
110
|
+
*/
|
|
111
|
+
buildSearchPromptV2: {
|
|
112
|
+
name: "BuildSearchPromptV2",
|
|
113
|
+
I: import_pipelines_pb.SearchPromptV2Request,
|
|
114
|
+
O: import_pipelines_pb.SearchPromptResponse,
|
|
115
|
+
kind: import_protobuf.MethodKind.Unary
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* Generates a collection from a set of posts
|
|
119
|
+
*
|
|
120
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateCollection
|
|
121
|
+
*/
|
|
122
|
+
generateCollection: {
|
|
123
|
+
name: "GenerateCollection",
|
|
124
|
+
I: import_pipelines_pb.GenerateCollectionRequest,
|
|
125
|
+
O: import_pipelines_pb.GenerateCollectionResponse,
|
|
126
|
+
kind: import_protobuf.MethodKind.Unary
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
131
|
+
0 && (module.exports = {
|
|
132
|
+
Pipelines
|
|
133
|
+
});
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { EnrichRequest, EnrichResponse, SearchQueryRequest, SearchQueryResponse, FilterSearchRequest, FilterSearchResponse, SearchPromptRequest, SearchPromptResponse, SearchAnswerRequest, IsPageInCacheRequest, IsPageInCacheResponse, ScrapedPage, SearchPromptV2Request, GenerateCollectionRequest, GenerateCollectionResponse } from './pipelines_pb.cjs';
|
|
2
|
+
import { ChatStreamResponse } from './proxy_pb.cjs';
|
|
3
|
+
import '@bufbuild/protobuf';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @generated from service bragi.pipelines.Pipelines
|
|
7
|
+
*/
|
|
8
|
+
declare const Pipelines: {
|
|
9
|
+
readonly typeName: "bragi.pipelines.Pipelines";
|
|
10
|
+
readonly methods: {
|
|
11
|
+
/**
|
|
12
|
+
* Calculates new dimensions for a post
|
|
13
|
+
*
|
|
14
|
+
* @generated from rpc bragi.pipelines.Pipelines.EnrichPost
|
|
15
|
+
*/
|
|
16
|
+
readonly enrichPost: {
|
|
17
|
+
readonly name: "EnrichPost";
|
|
18
|
+
readonly I: typeof EnrichRequest;
|
|
19
|
+
readonly O: typeof EnrichResponse;
|
|
20
|
+
readonly kind: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Turns a user's prompt into a search query
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateSearchQuery
|
|
26
|
+
*/
|
|
27
|
+
readonly generateSearchQuery: {
|
|
28
|
+
readonly name: "GenerateSearchQuery";
|
|
29
|
+
readonly I: typeof SearchQueryRequest;
|
|
30
|
+
readonly O: typeof SearchQueryResponse;
|
|
31
|
+
readonly kind: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Filters a list of search results based on a user's prompt
|
|
35
|
+
*
|
|
36
|
+
* @generated from rpc bragi.pipelines.Pipelines.FilterSearchResults
|
|
37
|
+
*/
|
|
38
|
+
readonly filterSearchResults: {
|
|
39
|
+
readonly name: "FilterSearchResults";
|
|
40
|
+
readonly I: typeof FilterSearchRequest;
|
|
41
|
+
readonly O: typeof FilterSearchResponse;
|
|
42
|
+
readonly kind: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Generates a prompt to answer a user's question
|
|
46
|
+
*
|
|
47
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPrompt
|
|
48
|
+
*/
|
|
49
|
+
readonly buildSearchPrompt: {
|
|
50
|
+
readonly name: "BuildSearchPrompt";
|
|
51
|
+
readonly I: typeof SearchPromptRequest;
|
|
52
|
+
readonly O: typeof SearchPromptResponse;
|
|
53
|
+
readonly kind: any;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Streams the search answer
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc bragi.pipelines.Pipelines.StreamSearchAnswer
|
|
59
|
+
*/
|
|
60
|
+
readonly streamSearchAnswer: {
|
|
61
|
+
readonly name: "StreamSearchAnswer";
|
|
62
|
+
readonly I: typeof SearchAnswerRequest;
|
|
63
|
+
readonly O: typeof ChatStreamResponse;
|
|
64
|
+
readonly kind: any;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Checks if the url is in the cache
|
|
68
|
+
*
|
|
69
|
+
* @generated from rpc bragi.pipelines.Pipelines.IsPageInCache
|
|
70
|
+
*/
|
|
71
|
+
readonly isPageInCache: {
|
|
72
|
+
readonly name: "IsPageInCache";
|
|
73
|
+
readonly I: typeof IsPageInCacheRequest;
|
|
74
|
+
readonly O: typeof IsPageInCacheResponse;
|
|
75
|
+
readonly kind: any;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Stores the scraped page in the cache (cleaning, separating to sections, etc)
|
|
79
|
+
*
|
|
80
|
+
* @generated from rpc bragi.pipelines.Pipelines.CachePage
|
|
81
|
+
*/
|
|
82
|
+
readonly cachePage: {
|
|
83
|
+
readonly name: "CachePage";
|
|
84
|
+
readonly I: typeof ScrapedPage;
|
|
85
|
+
readonly O: any;
|
|
86
|
+
readonly kind: any;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Optimized version of BuildSearchPrompt that assumes the search results are already cached
|
|
90
|
+
*
|
|
91
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPromptV2
|
|
92
|
+
*/
|
|
93
|
+
readonly buildSearchPromptV2: {
|
|
94
|
+
readonly name: "BuildSearchPromptV2";
|
|
95
|
+
readonly I: typeof SearchPromptV2Request;
|
|
96
|
+
readonly O: typeof SearchPromptResponse;
|
|
97
|
+
readonly kind: any;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Generates a collection from a set of posts
|
|
101
|
+
*
|
|
102
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateCollection
|
|
103
|
+
*/
|
|
104
|
+
readonly generateCollection: {
|
|
105
|
+
readonly name: "GenerateCollection";
|
|
106
|
+
readonly I: typeof GenerateCollectionRequest;
|
|
107
|
+
readonly O: typeof GenerateCollectionResponse;
|
|
108
|
+
readonly kind: any;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { Pipelines };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { EnrichRequest, EnrichResponse, SearchQueryRequest, SearchQueryResponse, FilterSearchRequest, FilterSearchResponse, SearchPromptRequest, SearchPromptResponse, SearchAnswerRequest, IsPageInCacheRequest, IsPageInCacheResponse, ScrapedPage, SearchPromptV2Request, GenerateCollectionRequest, GenerateCollectionResponse } from './pipelines_pb.js';
|
|
2
|
+
import { ChatStreamResponse } from './proxy_pb.js';
|
|
3
|
+
import '@bufbuild/protobuf';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @generated from service bragi.pipelines.Pipelines
|
|
7
|
+
*/
|
|
8
|
+
declare const Pipelines: {
|
|
9
|
+
readonly typeName: "bragi.pipelines.Pipelines";
|
|
10
|
+
readonly methods: {
|
|
11
|
+
/**
|
|
12
|
+
* Calculates new dimensions for a post
|
|
13
|
+
*
|
|
14
|
+
* @generated from rpc bragi.pipelines.Pipelines.EnrichPost
|
|
15
|
+
*/
|
|
16
|
+
readonly enrichPost: {
|
|
17
|
+
readonly name: "EnrichPost";
|
|
18
|
+
readonly I: typeof EnrichRequest;
|
|
19
|
+
readonly O: typeof EnrichResponse;
|
|
20
|
+
readonly kind: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Turns a user's prompt into a search query
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateSearchQuery
|
|
26
|
+
*/
|
|
27
|
+
readonly generateSearchQuery: {
|
|
28
|
+
readonly name: "GenerateSearchQuery";
|
|
29
|
+
readonly I: typeof SearchQueryRequest;
|
|
30
|
+
readonly O: typeof SearchQueryResponse;
|
|
31
|
+
readonly kind: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Filters a list of search results based on a user's prompt
|
|
35
|
+
*
|
|
36
|
+
* @generated from rpc bragi.pipelines.Pipelines.FilterSearchResults
|
|
37
|
+
*/
|
|
38
|
+
readonly filterSearchResults: {
|
|
39
|
+
readonly name: "FilterSearchResults";
|
|
40
|
+
readonly I: typeof FilterSearchRequest;
|
|
41
|
+
readonly O: typeof FilterSearchResponse;
|
|
42
|
+
readonly kind: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Generates a prompt to answer a user's question
|
|
46
|
+
*
|
|
47
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPrompt
|
|
48
|
+
*/
|
|
49
|
+
readonly buildSearchPrompt: {
|
|
50
|
+
readonly name: "BuildSearchPrompt";
|
|
51
|
+
readonly I: typeof SearchPromptRequest;
|
|
52
|
+
readonly O: typeof SearchPromptResponse;
|
|
53
|
+
readonly kind: any;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Streams the search answer
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc bragi.pipelines.Pipelines.StreamSearchAnswer
|
|
59
|
+
*/
|
|
60
|
+
readonly streamSearchAnswer: {
|
|
61
|
+
readonly name: "StreamSearchAnswer";
|
|
62
|
+
readonly I: typeof SearchAnswerRequest;
|
|
63
|
+
readonly O: typeof ChatStreamResponse;
|
|
64
|
+
readonly kind: any;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Checks if the url is in the cache
|
|
68
|
+
*
|
|
69
|
+
* @generated from rpc bragi.pipelines.Pipelines.IsPageInCache
|
|
70
|
+
*/
|
|
71
|
+
readonly isPageInCache: {
|
|
72
|
+
readonly name: "IsPageInCache";
|
|
73
|
+
readonly I: typeof IsPageInCacheRequest;
|
|
74
|
+
readonly O: typeof IsPageInCacheResponse;
|
|
75
|
+
readonly kind: any;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Stores the scraped page in the cache (cleaning, separating to sections, etc)
|
|
79
|
+
*
|
|
80
|
+
* @generated from rpc bragi.pipelines.Pipelines.CachePage
|
|
81
|
+
*/
|
|
82
|
+
readonly cachePage: {
|
|
83
|
+
readonly name: "CachePage";
|
|
84
|
+
readonly I: typeof ScrapedPage;
|
|
85
|
+
readonly O: any;
|
|
86
|
+
readonly kind: any;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Optimized version of BuildSearchPrompt that assumes the search results are already cached
|
|
90
|
+
*
|
|
91
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPromptV2
|
|
92
|
+
*/
|
|
93
|
+
readonly buildSearchPromptV2: {
|
|
94
|
+
readonly name: "BuildSearchPromptV2";
|
|
95
|
+
readonly I: typeof SearchPromptV2Request;
|
|
96
|
+
readonly O: typeof SearchPromptResponse;
|
|
97
|
+
readonly kind: any;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Generates a collection from a set of posts
|
|
101
|
+
*
|
|
102
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateCollection
|
|
103
|
+
*/
|
|
104
|
+
readonly generateCollection: {
|
|
105
|
+
readonly name: "GenerateCollection";
|
|
106
|
+
readonly I: typeof GenerateCollectionRequest;
|
|
107
|
+
readonly O: typeof GenerateCollectionResponse;
|
|
108
|
+
readonly kind: any;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { Pipelines };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { EnrichRequest, EnrichResponse, FilterSearchRequest, FilterSearchResponse, GenerateCollectionRequest, GenerateCollectionResponse, IsPageInCacheRequest, IsPageInCacheResponse, ScrapedPage, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse } from "./pipelines_pb.ts";
|
|
2
|
+
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
import { ChatStreamResponse } from "./proxy_pb.ts";
|
|
4
|
+
const Pipelines = {
|
|
5
|
+
typeName: "bragi.pipelines.Pipelines",
|
|
6
|
+
methods: {
|
|
7
|
+
/**
|
|
8
|
+
* Calculates new dimensions for a post
|
|
9
|
+
*
|
|
10
|
+
* @generated from rpc bragi.pipelines.Pipelines.EnrichPost
|
|
11
|
+
*/
|
|
12
|
+
enrichPost: {
|
|
13
|
+
name: "EnrichPost",
|
|
14
|
+
I: EnrichRequest,
|
|
15
|
+
O: EnrichResponse,
|
|
16
|
+
kind: MethodKind.Unary
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* Turns a user's prompt into a search query
|
|
20
|
+
*
|
|
21
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateSearchQuery
|
|
22
|
+
*/
|
|
23
|
+
generateSearchQuery: {
|
|
24
|
+
name: "GenerateSearchQuery",
|
|
25
|
+
I: SearchQueryRequest,
|
|
26
|
+
O: SearchQueryResponse,
|
|
27
|
+
kind: MethodKind.Unary
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* Filters a list of search results based on a user's prompt
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc bragi.pipelines.Pipelines.FilterSearchResults
|
|
33
|
+
*/
|
|
34
|
+
filterSearchResults: {
|
|
35
|
+
name: "FilterSearchResults",
|
|
36
|
+
I: FilterSearchRequest,
|
|
37
|
+
O: FilterSearchResponse,
|
|
38
|
+
kind: MethodKind.Unary
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Generates a prompt to answer a user's question
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPrompt
|
|
44
|
+
*/
|
|
45
|
+
buildSearchPrompt: {
|
|
46
|
+
name: "BuildSearchPrompt",
|
|
47
|
+
I: SearchPromptRequest,
|
|
48
|
+
O: SearchPromptResponse,
|
|
49
|
+
kind: MethodKind.Unary
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Streams the search answer
|
|
53
|
+
*
|
|
54
|
+
* @generated from rpc bragi.pipelines.Pipelines.StreamSearchAnswer
|
|
55
|
+
*/
|
|
56
|
+
streamSearchAnswer: {
|
|
57
|
+
name: "StreamSearchAnswer",
|
|
58
|
+
I: SearchAnswerRequest,
|
|
59
|
+
O: ChatStreamResponse,
|
|
60
|
+
kind: MethodKind.ServerStreaming
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* Checks if the url is in the cache
|
|
64
|
+
*
|
|
65
|
+
* @generated from rpc bragi.pipelines.Pipelines.IsPageInCache
|
|
66
|
+
*/
|
|
67
|
+
isPageInCache: {
|
|
68
|
+
name: "IsPageInCache",
|
|
69
|
+
I: IsPageInCacheRequest,
|
|
70
|
+
O: IsPageInCacheResponse,
|
|
71
|
+
kind: MethodKind.Unary
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* Stores the scraped page in the cache (cleaning, separating to sections, etc)
|
|
75
|
+
*
|
|
76
|
+
* @generated from rpc bragi.pipelines.Pipelines.CachePage
|
|
77
|
+
*/
|
|
78
|
+
cachePage: {
|
|
79
|
+
name: "CachePage",
|
|
80
|
+
I: ScrapedPage,
|
|
81
|
+
O: Empty,
|
|
82
|
+
kind: MethodKind.Unary
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Optimized version of BuildSearchPrompt that assumes the search results are already cached
|
|
86
|
+
*
|
|
87
|
+
* @generated from rpc bragi.pipelines.Pipelines.BuildSearchPromptV2
|
|
88
|
+
*/
|
|
89
|
+
buildSearchPromptV2: {
|
|
90
|
+
name: "BuildSearchPromptV2",
|
|
91
|
+
I: SearchPromptV2Request,
|
|
92
|
+
O: SearchPromptResponse,
|
|
93
|
+
kind: MethodKind.Unary
|
|
94
|
+
},
|
|
95
|
+
/**
|
|
96
|
+
* Generates a collection from a set of posts
|
|
97
|
+
*
|
|
98
|
+
* @generated from rpc bragi.pipelines.Pipelines.GenerateCollection
|
|
99
|
+
*/
|
|
100
|
+
generateCollection: {
|
|
101
|
+
name: "GenerateCollection",
|
|
102
|
+
I: GenerateCollectionRequest,
|
|
103
|
+
O: GenerateCollectionResponse,
|
|
104
|
+
kind: MethodKind.Unary
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
Pipelines
|
|
110
|
+
};
|