You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"llm_connection_id": 1,
"user_question": "What are the benefits of using LLMs?",
"final_answer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation."
}
Request Parameters
Parameter
Type
Required
Description
llm_connection_id
number
Yes
ID of the LLM connection
user_question
string
Yes
User's raw question/input
final_answer
string
Yes
LLM's final generated answer
Response (200 OK)
{
"data": {
"id": 10,
"llm_connection_id": 1,
"chat_id": null,
"user_question": "What are the benefits of using LLMs?",
"refined_questions": null,
"conversation_history": null,
"ranked_chunks": null,
"embedding_scores": null,
"final_answer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation.",
"environment": "testing",
"created_at": "2025-09-25T12:15:00.000Z"
},
"operationSuccess": true,
"statusCode": 200
}
POST /ruuter-private/inference/results/production/store
Request Body
{
"chat_id": "chat-12345",
"user_question": "What are the benefits of using LLMs?",
"refined_questions": [
"How do LLMs improve productivity?",
"What are practical use cases of LLMs?"
],
"conversation_history": [
{ "role": "user", "content": "Hello" },
{ "role": "assistant", "content": "Hi! How can I help you?" }
],
"ranked_chunks": [
{ "id": "chunk_1", "content": "LLMs help in summarization", "rank": 1 },
{ "id": "chunk_2", "content": "They improve Q&A systems", "rank": 2 }
],
"embedding_scores": [0.92, 0.85, 0.78],
"final_answer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation."
}
Request Parameters
Parameter
Type
Required
Description
chat_id
string
No
Optional chat session ID
user_question
string
Yes
User's raw question/input
refined_questions
object
No
List of refined questions (LLM-generated)
conversation_history
object
No
Prior messages array of {role, content}
ranked_chunks
object
No
Retrieved chunks ranked with metadata
embedding_scores
object
No
Distance scores for each chunk
final_answer
string
Yes
LLM's final generated answer
Response (200 OK)
{
"data": {
"id": 15,
"llm_connection_id": null,
"chat_id": "chat-12345",
"user_question": "What are the benefits of using LLMs?",
"refined_questions": [
"How do LLMs improve productivity?",
"What are practical use cases of LLMs?"
],
"conversation_history": [
{ "role": "user", "content": "Hello" },
{ "role": "assistant", "content": "Hi! How can I help you?" }
],
"ranked_chunks": [
{ "id": "chunk_1", "content": "LLMs help in summarization", "rank": 1 },
{ "id": "chunk_2", "content": "They improve Q&A systems", "rank": 2 }
],
"embedding_scores": [0.92, 0.85, 0.78],
"final_answer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation.",
"environment": "production",
"created_at": "2025-09-25T12:15:00.000Z"
},
"operationSuccess": true,
"statusCode": 200
}
{
"llmConnectionId": 1,
"userQuestion": "What are the benefits of using LLMs?",
"finalAnswer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation."
}
Response (201 Created)
{
"data": {
"id": 15,
"llmConnectionId": 1,
"userQuestion": "What are the benefits of using LLMs?",
"finalAnswer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation.",
"environment": "testing",
"createdAt": "2025-09-25T10:15:30.000Z"
},
"operationSuccess": true,
"statusCode": 200
}
4. Inquiry from chatbot to llm orchestration service
Endpoint
POST /ruuter-private/inference/results/production/store
Request Body
{
"llmConnectionId": 1,
"chatId": "chat-session-12345",
"userQuestion": "What are the benefits of using LLMs?",
"refinedQuestions": [
"How do LLMs improve productivity?",
"What are practical use cases of LLMs?"
],
"conversationHistory": [
{ "role": "user", "content": "Hello" },
{ "role": "assistant", "content": "Hi! How can I help you?" }
],
"rankedChunks": [
{ "id": "chunk_1", "content": "LLMs help in summarization", "rank": 1 },
{ "id": "chunk_2", "content": "They improve Q&A systems", "rank": 2 }
],
"embeddingScores": {
"chunk_1": 0.92,
"chunk_2": 0.85
},
"finalAnswer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation."
}
Response (201 Created)
{
"id": 20,
"llmConnectionId": 1,
"chatId": "chat-session-12345",
"userQuestion": "What are the benefits of using LLMs?",
"refinedQuestions": [
"How do LLMs improve productivity?",
"What are practical use cases of LLMs?"
],
"conversationHistory": [
{ "role": "user", "content": "Hello" },
{ "role": "assistant", "content": "Hi! How can I help you?" }
],
"rankedChunks": [
{ "id": "chunk_1", "content": "LLMs help in summarization", "rank": 1 },
{ "id": "chunk_2", "content": "They improve Q&A systems", "rank": 2 }
],
"embeddingScores": {
"chunk_1": 0.92,
"chunk_2": 0.85
},
"finalAnswer": "LLMs can improve productivity by summarizing large documents, enabling Q&A, and enhancing automation.",
"environment": "production",
"createdAt": "2025-09-25T10:15:30.000Z"
}