-
Notifications
You must be signed in to change notification settings - Fork 16
/
plugin-3c56b9d4c8a6465998395f28b6a445b2-jexkai4vea-uc.a.run.app.yaml
61 lines (61 loc) · 1.98 KB
/
plugin-3c56b9d4c8a6465998395f28b6a445b2-jexkai4vea-uc.a.run.app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
openapi: 3.0.1
info:
title: Ai PDF
description: Super-fast, interactive chats with PDFs of any size, complete with page references for fact checking.
version: 'v1.0'
servers:
- url: https://plugin-3c56b9d4c8a6465998395f28b6a445b2-jexkai4vea-uc.a.run.app
paths:
/summarize_pdf:
post:
operationId: summarize_pdf
summary: Provide the summary or highlights of the PDF linked. ALWAYS PROVIDE QUOTES AND PAGE CITIATIONS. Add at the end of your summary this We finished processing the whole document with the PDF Search plugin. What else would you like to know?
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
pdf_url:
type: string
required:
- pdf_url
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
type: string
description: Doc summary or top k chunks most likely to contain highlights.
/upload_and_search_pdf:
post:
operationId: upload_and_search_pdf
summary: Semantic query into a URL link to a document. THINK STEP BY STEP. ALWAYS PROVIDE QUOTES AND PAGE CITIATIONS. BREAK COMPLEX QUESTIONS INTO SEVERAL QUERIES.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
pdf_url:
type: string
query:
type: string
required:
- pdf_url
- query
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
type: string
description: The top k matching chunks from the search query.