Overfit Questions API
Interaction with the question answering system. Includes question answering and question generation functionalities.
Interaction with the question answering system. Includes question answering and question generation functionalities.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/overfit-de:overfit-de-questions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: 'Overfit Insights: Revolutionizing Data Retrieval Questions…'
description: '### Brought to you by _Overfit_
**Overfit** is a sophisticated API server designed to enhance contextual information retrieval and workflow management. At its core, it provides a robust framework for handling contextualized requests and complex workflow orchestration.
### **Key Components of Overfit**
#### **1. Insights Engine**
The Insights Engine stands as the cornerstone of Overfit, delivering context-aware information processing through its innovative architecture. Sources serve as the fundamental building blocks, providing the contextual data that forms the knowledge foundation of the system. These Sources work in harmony with Questions - natural language queries that interface with our semantic search system, enabling precise and context-aware information retrieval through seamless LLM integration.
#### **2. Graph System**
The Graph System represents our approach to workflow orchestration, operating on two distinct levels. At its foundation lies the Graph Definition, where users craft their workflow structure through nodes and edges. This blueprint transforms into a Graph Configuration during execution, encompassing essential runtime elements such as chat history, graph state dictionary, and transition history, along with comprehensive runtime analytics.
#### **3. Agent Framework**
While Overfit maintains a fully implemented agent framework, we embrace a "less is more" philosophy in this domain. The system supports agent-based automation for specific use cases, but emphasizes direct insight retrieval as the primary means of interaction, offering a more streamlined and efficient approach to information processing.
#### **4. Enterprise-Grade Security**
Security stands as a foundational pillar of Overfit, implemented through a comprehensive OIDC authentication system utilizing JWT token management. Our integration with Keycloak ensures robust access control and security measures, providing enterprise-grade protection for all system interactions.
---
Overfit | No human should be forced to do work that a machine can do.
For more support write to us at mhermelschmidt@okns.de
© 2024 Michael Hermelschmidt'
contact:
name: Michael Hermelschmidt
email: mail@okns.de
version: 1.7.1
tags:
- name: Questions
description: Interaction with the question answering system. Includes question answering and question generation functionalities.
paths:
/insight/{insight_id}/questions:
get:
tags:
- Questions
summary: Get Questions By Insight Id
description: 'Get all questions for a given insight.
Accepts Insight ID (ins_) as input.'
operationId: get_questions_by_insight_id_insight__insight_id__questions_get
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Question'
title: Response Get Questions By Insight Id Insight Insight Id Questions Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Questions
summary: Create Question
description: 'Create a new question. A Question is allways associated with an insight and can not be created without an insight.
Accepts Insight ID (ins_) and QuestionCreate Schema as input.
The Question is processed and answered, the Answer is in the Question Schema the result.
Steps while answering the question are stored in the QuestionSteps.'
operationId: create_question_insight__insight_id__questions_post
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/QuestionCreate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Question'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/insight/{insight_id}/questions/{question_id}:
get:
tags:
- Questions
summary: Get Question By Id
description: 'Get a question by its ID.
Accepts Insight ID (ins_) and Question ID (ques_) as input.'
operationId: get_question_by_id_insight__insight_id__questions__question_id__get
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
- name: question_id
in: path
required: true
schema:
type: string
title: Question Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Question'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/insight/{insight_id}/chat:
post:
tags:
- Questions
summary: Create Chat Question
description: 'Create a new question. A Question is allways associated with an insight and can not be created without an insight.
Accepts Insight ID (ins_) and InteractionChatInsight Schema as input.
The Chat is processed. A Question has to be created before a chat can be processed.
The Chat works with the Context of the Question, all steps are stored in the QuestionSteps.'
operationId: create_chat_question_insight__insight_id__chat_post
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InteractionChatInsight'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Question'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/insight/{insight_id}/history:
get:
tags:
- Questions
summary: Get Question History
description: 'Get the history of a question by its ID.
Accepts Insight ID (ins_) and Question ID (ques_) as input.'
operationId: get_question_history_insight__insight_id__history_get
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/QuestionStep'
title: Response Get Question History Insight Insight Id History Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/insight/{insight_id}/share/questions:
post:
tags:
- Questions
summary: Create Question Share
description: 'Create a new question. A Question is allways associated with an insight and can not be created without an insight.
Accepts Insight ID (ins_) and QuestionCreate Schema as input.
The Question is processed and answered, the Answer is in the Question Schema the result.
This endpoint is for asking questions against a shared insight. Shared insights need to be defined by the owner of the insight.'
operationId: create_question_share_insight__insight_id__share_questions_post
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/QuestionCreate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Question'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/insight/{insight_id}/share/chat:
post:
tags:
- Questions
summary: Create Chat Question Share
description: 'Create a new question. A Question is allways associated with an insight and can not be created without an insight.
Accepts Insight ID (ins_) and InteractionChatInsight Schema as input.
This endpoint is for asking questions against a shared insight. Shared insights need to be defined by the owner of the insight.'
operationId: create_chat_question_share_insight__insight_id__share_chat_post
security:
- OpenIdConnect: []
- APIKeyHeader: []
parameters:
- name: insight_id
in: path
required: true
schema:
type: string
title: Insight Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InteractionChatInsight'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Question'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
Source:
properties:
id:
type: string
title: Id
name:
anyOf:
- type: string
- type: 'null'
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
insight_id:
type: string
title: Insight Id
time_created:
type: string
format: date-time
title: Time Created
source_type:
$ref: '#/components/schemas/SourceTypes'
public:
type: boolean
title: Public
default: false
keywords:
anyOf:
- type: string
- type: 'null'
title: Keywords
path:
type: string
title: Path
length:
type: integer
title: Length
type: object
required:
- id
- insight_id
- time_created
- source_type
- path
- length
title: Source
QuestionStep:
properties:
id:
type: string
title: Id
question_id:
type: string
title: Question Id
order:
type: integer
title: Order
step_type:
type: string
title: Step Type
step_message:
type: string
title: Step Message
type: object
required:
- id
- question_id
- order
- step_type
- step_message
title: QuestionStep
InteractionChatInsight:
properties:
interaction_type:
type: string
const: CHAT
title: Interaction Type
message:
type: string
title: Message
question_id:
type: string
minLength: 1
title: Question Id
type: object
required:
- interaction_type
- message
- question_id
title: InteractionChatInsight
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
SourceTypes:
type: string
enum:
- WEBSITE
- REMOTE_DOCUMENT
- SEARCH
- DOCUMENT_UPLOAD
title: SourceTypes
QuestionTypes:
type: string
enum:
- SUMMARY
- AGENT
- HYBRID
- FULL_TEXT
- FULL_TEXT_EXACT
title: QuestionTypes
QuestionCreate:
properties:
question:
type: string
minLength: 1
title: Question
question_type:
$ref: '#/components/schemas/QuestionTypes'
default: HYBRID
type: object
required:
- question
title: QuestionCreate
examples:
- question: What are the requirements for CE marking?
question_type: HYBRID
Question:
properties:
id:
type: string
title: Id
question:
type: string
minLength: 1
title: Question
time_created:
type: string
format: date-time
title: Time Created
question_steps:
anyOf:
- items:
$ref: '#/components/schemas/QuestionStep'
type: array
- type: 'null'
title: Question Steps
insight_id:
type: string
title: Insight Id
result:
anyOf:
- type: string
- type: 'null'
title: Result
question_type:
$ref: '#/components/schemas/QuestionTypes'
status:
type: string
title: Status
sources:
items:
$ref: '#/components/schemas/Source'
type: array
title: Sources
default: []
sub:
type: string
format: uuid
title: Sub
length:
type: integer
title: Length
source_snippets:
anyOf:
- items:
$ref: '#/components/schemas/SourceSnippet'
type: array
- type: 'null'
title: Source Snippets
type: object
required:
- id
- question
- time_created
- insight_id
- result
- question_type
- status
- sub
- length
title: Question
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SourceSnippet:
properties:
source_id:
type: string
title: Source Id
snippet_id:
type: string
title: Snippet Id
snippet:
type: string
title: Snippet
score:
type: number
title: Score
default: 0.0
type: object
required:
- source_id
- snippet_id
- snippet
title: SourceSnippet
examples:
- snippet: The screwdriver is a tool, manual or powered, used for screwing (installing) and unscrewing (removing) screws. A typical simple screwdriver has a handle and a shaft.
snippet_id: 789b936a-9e1b-41b5-b721-42d7308b858c
source_id: src_1EbVewEDVUf0oyAxzsi6LW
securitySchemes:
OpenIdConnect:
type: openIdConnect
openIdConnectUrl: https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key