weave-typescript 0.28.0 → 0.29.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/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +204 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +3830 -970
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +113 -1
- package/dist/weaveapi/ingestion/v1/service.pb.js +679 -40
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +45 -1
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +729 -1
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +15 -1
- package/dist/weaveapi/retrieval/v1/service.pb.js +79 -0
- package/dist/weavesql/weavedb/ingestion_sql.d.ts +151 -0
- package/dist/weavesql/weavedb/ingestion_sql.js +423 -2
- package/dist/weavesql/weavedb/retrieval_sql.d.ts +31 -0
- package/dist/weavesql/weavedb/retrieval_sql.js +112 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { SourceLocation, TemporalValidity, ThreadClassification } from "../../ingestion/v1/ingestion.pb";
|
|
2
|
+
import { DocumentScope, DocumentTag, SourceLocation, TemporalValidity, ThreadClassification } from "../../ingestion/v1/ingestion.pb";
|
|
3
3
|
export declare const protobufPackage = "weaveapi.retrieval.v1";
|
|
4
4
|
export declare enum IntentType {
|
|
5
5
|
INTENT_TYPE_UNSPECIFIED = 0,
|
|
@@ -102,6 +102,32 @@ export interface RetrievedThread {
|
|
|
102
102
|
reinforcementCount: number;
|
|
103
103
|
sessionTurn: number;
|
|
104
104
|
}
|
|
105
|
+
export interface DocumentSearchFilters {
|
|
106
|
+
tags: string[];
|
|
107
|
+
restrictedTags: string[];
|
|
108
|
+
scopes: DocumentScope[];
|
|
109
|
+
uploadedAfter: Date | undefined;
|
|
110
|
+
uploadedBefore: Date | undefined;
|
|
111
|
+
}
|
|
112
|
+
export interface DocumentSearchSnippet {
|
|
113
|
+
threadId: string;
|
|
114
|
+
text: string;
|
|
115
|
+
score: number;
|
|
116
|
+
classification: ThreadClassification;
|
|
117
|
+
sourceLocation: SourceLocation | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface RetrievedDocument {
|
|
120
|
+
documentId: string;
|
|
121
|
+
documentName: string;
|
|
122
|
+
mimeType: string;
|
|
123
|
+
scope: DocumentScope;
|
|
124
|
+
tags: DocumentTag[];
|
|
125
|
+
sensitivityTags: string[];
|
|
126
|
+
score: number;
|
|
127
|
+
matchedThreadCount: number;
|
|
128
|
+
snippets: DocumentSearchSnippet[];
|
|
129
|
+
uploadedAt: Date | undefined;
|
|
130
|
+
}
|
|
105
131
|
export interface RetrieveRequest {
|
|
106
132
|
organizationId: string;
|
|
107
133
|
query: string;
|
|
@@ -112,6 +138,19 @@ export interface RetrieveResponse {
|
|
|
112
138
|
threads: RetrievedThread[];
|
|
113
139
|
plan: RetrievalPlan | undefined;
|
|
114
140
|
}
|
|
141
|
+
export interface SearchDocumentsRequest {
|
|
142
|
+
organizationId: string;
|
|
143
|
+
query: string;
|
|
144
|
+
constraints: RetrievalConstraints | undefined;
|
|
145
|
+
filters: DocumentSearchFilters | undefined;
|
|
146
|
+
pageSize: number;
|
|
147
|
+
pageToken: string;
|
|
148
|
+
}
|
|
149
|
+
export interface SearchDocumentsResponse {
|
|
150
|
+
documents: RetrievedDocument[];
|
|
151
|
+
plan: RetrievalPlan | undefined;
|
|
152
|
+
nextPageToken: string;
|
|
153
|
+
}
|
|
115
154
|
export interface ExplainRetrievalRequest {
|
|
116
155
|
organizationId: string;
|
|
117
156
|
query: string;
|
|
@@ -135,8 +174,13 @@ export declare const RerankerConfig: MessageFns<RerankerConfig>;
|
|
|
135
174
|
export declare const RetrievalPlan: MessageFns<RetrievalPlan>;
|
|
136
175
|
export declare const Citation: MessageFns<Citation>;
|
|
137
176
|
export declare const RetrievedThread: MessageFns<RetrievedThread>;
|
|
177
|
+
export declare const DocumentSearchFilters: MessageFns<DocumentSearchFilters>;
|
|
178
|
+
export declare const DocumentSearchSnippet: MessageFns<DocumentSearchSnippet>;
|
|
179
|
+
export declare const RetrievedDocument: MessageFns<RetrievedDocument>;
|
|
138
180
|
export declare const RetrieveRequest: MessageFns<RetrieveRequest>;
|
|
139
181
|
export declare const RetrieveResponse: MessageFns<RetrieveResponse>;
|
|
182
|
+
export declare const SearchDocumentsRequest: MessageFns<SearchDocumentsRequest>;
|
|
183
|
+
export declare const SearchDocumentsResponse: MessageFns<SearchDocumentsResponse>;
|
|
140
184
|
export declare const ExplainRetrievalRequest: MessageFns<ExplainRetrievalRequest>;
|
|
141
185
|
export declare const SubQueryResult: MessageFns<SubQueryResult>;
|
|
142
186
|
export declare const ExplainRetrievalResponse: MessageFns<ExplainRetrievalResponse>;
|