Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "openapi": "3.0.4",
- "info": {
- "title": "Logic Knowledge Base API",
- "version": "v1"
- },
- "paths": {
- "/": {
- "get": {
- "tags": [
- "KBRagServer"
- ],
- "description": "Root endpoint that returns the current date/time",
- "responses": {
- "200": {
- "description": "OK",
- "content": {
- "text/plain": {
- "schema": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "/search": {
- "post": {
- "tags": [
- "KBRagServer"
- ],
- "description": "Search the knowledge base for relevant documentation and information.",
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/SearchRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/SearchResponse"
- }
- }
- }
- }
- }
- }
- }
- },
- "components": {
- "schemas": {
- "SearchRequest": {
- "type": "object",
- "properties": {
- "query": {
- "type": "string",
- "nullable": true
- },
- "k": {
- "type": "integer",
- "format": "int32"
- }
- },
- "additionalProperties": false
- },
- "SearchResponse": {
- "type": "object",
- "properties": {
- "searchResults": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/SearchResult"
- },
- "nullable": true
- }
- },
- "additionalProperties": false
- },
- "SearchResult": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string",
- "nullable": true
- },
- "sourceName": {
- "type": "string",
- "nullable": true
- }
- },
- "additionalProperties": false
- }
- }
- },
- "tags": [
- {
- "name": "KBRagServer"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment