Radovici / Fedago

Our Federated Solution Allows for Data Access, Discovery, & Governance
Other
0 stars 0 forks source link

LexArb (Ben) wants to access the world bank database #8

Open Radovici opened 5 months ago

Radovici commented 5 months ago

Ben wants to include the world bank database queries into a "tool" chat. We may want to use ChatGPT's function calling and chatbot's "tools" to do this. In this case, the OpenAPI specification for https://documents.worldbank.org/en/publication/documents-reports/api could be:

{ "openapi": "3.1.0", "info": { "title": "World Bank Documents & Reports API", "version": "1.0.0" }, "servers": [ { "url": "https://search.worldbank.org/api" } ], "paths": { "/v2/wds": { "get": { "summary": "Search and retrieve documents", "operationId": "searchDocuments", "parameters": [ { "name": "format", "in": "query", "required": true, "schema": { "type": "string", "enum": ["json", "xml"] }, "description": "Format of the returned data." }, { "name": "qterm", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Query terms for searching documents." } ] } } } }