Comparing version 0.3.12 to 0.3.13
import { HTTPService } from './http-service'; | ||
import { DocumentArray, Document } from './jina-document-array'; | ||
export interface JinaServerEnvelope<T = any> { | ||
data: { | ||
docs: T; | ||
groundtruths: unknown[]; | ||
export interface JinaServerEnvelope<T = DocumentArray> { | ||
data: T; | ||
header: { | ||
execEndpoint: string; | ||
requestId: string; | ||
status?: { | ||
code: number; | ||
description: string; | ||
exception?: { | ||
name: string; | ||
executor?: string; | ||
args?: string; | ||
stacks?: string[]; | ||
}; | ||
}; | ||
targetExecutor: string; | ||
}; | ||
requestId: string; | ||
parameters: unknown; | ||
routes: Array<{ | ||
startTime: string; | ||
endTime: string; | ||
executor: string; | ||
status?: unknown; | ||
}>; | ||
} | ||
@@ -21,4 +39,9 @@ export declare enum DOCQA_ANSWER_STATUS { | ||
} | ||
export declare class UpstreamError extends Error { | ||
detail: any; | ||
constructor(msg: string, detail: any); | ||
} | ||
export declare class JinaDocBotRPC extends HTTPService { | ||
constructor(serverUri: string); | ||
protected clientId: string; | ||
constructor(serverUri: string, clientId: string); | ||
askQuestion(text: string): Promise<Response & { | ||
@@ -25,0 +48,0 @@ data: JinaServerEnvelope<DocumentArray<Document>> & DocQAAnswer; |
@@ -35,25 +35,25 @@ export interface DenseNDArray { | ||
id: string; | ||
granularity: number; | ||
adjacency: number; | ||
parentId: string; | ||
granularity?: number; | ||
adjacency?: number; | ||
parentId?: string; | ||
buffer?: string; | ||
blob?: NDArray; | ||
text: string; | ||
text?: string; | ||
graph?: Graph; | ||
chunks: Document[]; | ||
weight: number; | ||
matches: Document[]; | ||
uri: string; | ||
mimeType: string; | ||
tags: { | ||
chunks?: Document[]; | ||
weight?: number; | ||
matches?: Document[]; | ||
uri?: string; | ||
mimeType?: string; | ||
tags?: { | ||
[k: string]: any; | ||
}; | ||
location: number[]; | ||
offset: number; | ||
location?: number[]; | ||
offset?: number; | ||
embedding?: NDArray; | ||
scores: { | ||
scores?: { | ||
[k: string]: NamedScore; | ||
}; | ||
modality: string; | ||
evaluations: { | ||
modality?: string; | ||
evaluations?: { | ||
[k: string]: NamedScore; | ||
@@ -60,0 +60,0 @@ }; |
@@ -16,2 +16,3 @@ import { ReactiveController, ReactiveControllerHost } from 'lit'; | ||
protected storageEventListener?: (storageEvent: StorageEvent) => void; | ||
clientId: string; | ||
constructor(host: ReactiveControllerHost, serverUri: string, channel?: string); | ||
@@ -18,0 +19,0 @@ loadQaPairs(localData?: string): void; |
{ | ||
"name": "qabot", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"description": "WebComponent <qa-bot> for Jina DocsQA", | ||
@@ -5,0 +5,0 @@ "main": "dist/qabot.js", |
@@ -20,3 +20,3 @@ # <qa-bot> | ||
label="Try custom title ✨" | ||
server="https://jina-ai-jina-docsqa.jina.ai" | ||
server="https://jina-ai-jina.docsqa.jina.ai" | ||
open | ||
@@ -23,0 +23,0 @@ site="https://docs.jina.ai" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
582154
43
3357