Get Playground Session
GET/api/v1/pipelines/:pipeline_id/playground-session
Get a playground session for a user and pipeline.
Request
Path Parameters
Cookie Parameters
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MetadataFilters
Array [
- MetadataFilter
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
Array [
]
Array [
]
]
- FilterCondition
- MOD1
Array [
Array [
]
- MOD1
]
Unique identifier
created_at
object
Creation datetime
anyOf
string
updated_at
object
Update datetime
anyOf
string
llm_params
object
LLM parameters last used in this session.
The name of the model to use for LLM completions.
Possible values: [GPT_3_5_TURBO
, GPT_4
, GPT_4_TURBO
, GPT_4O
, GPT_4O_MINI
, AZURE_OPENAI
]
GPT_3_5_TURBO
system_prompt
object
The system prompt to use for the completion.
anyOf
string
temperature
object
The temperature value for the model.
anyOf
number
use_chain_of_thought_reasoning
object
Whether to use chain of thought reasoning.
anyOf
boolean
base_component
retrieval_params
object
Schema for the search params for an retrieval execution that can be preset for a pipeline.
dense_similarity_top_k
object
Number of nodes for dense retrieval.
anyOf
integer
Possible values: >= 1
and <= 100
dense_similarity_cutoff
object
Minimum similarity score wrt query for retrieval
anyOf
number
Possible values: <= 1
sparse_similarity_top_k
object
Number of nodes for sparse retrieval.
anyOf
integer
Possible values: >= 1
and <= 100
enable_reranking
object
Enable reranking for retrieval
anyOf
boolean
rerank_top_n
object
Number of reranked nodes for returning.
anyOf
integer
Possible values: >= 1
and <= 100
alpha
object
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
anyOf
number
Possible values: <= 1
search_filters
object
Search filters for retrieval.
anyOf
Metadata filters for vector stores.
filters
object[]
required
anyOf
Comprehensive metadata filter for vector stores to support more operators.
Value uses Strict* types, as int, float and str are compatible types and were all converted to string before.
See: https://docs.pydantic.dev/latest/usage/types/#strict-types
value
object
required
anyOf
integer
number
string
string
number
integer
Vector store filter operator.
Possible values: [==
, >
, <
, !=
, >=
, <=
, in
, nin
, any
, all
, text_match
, contains
, is_empty
]
==
condition
object
anyOf
Vector store filter conditions to combine different filters.
string
Possible values: [and
, or
]
files_top_k
object
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
anyOf
integer
Possible values: >= 1
and <= 5
The retrieval mode for the query.
Possible values: [chunks
, files_via_metadata
, files_via_content
, auto_routed
]
chunks
Whether to retrieve image nodes.
false
base_component
chat_messages
object[]
Chat message history for this session.
The index of the message in the chat.
annotations
object[]
Retrieval annotations for the message.
base_component
Message role.
Possible values: [system
, user
, assistant
, function
, tool
, chatbot
, model
]
content
object
Text content of the generation
anyOf
string
additional_kwargs
object
Additional arguments passed to the model
base_component
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"pipeline_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user_id": "string",
"llm_params_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"llm_params": {
"model_name": "GPT_3_5_TURBO",
"system_prompt": "string",
"temperature": 0,
"use_chain_of_thought_reasoning": true,
"class_name": "base_component"
},
"retrieval_params_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"retrieval_params": {
"dense_similarity_top_k": 0,
"dense_similarity_cutoff": 0,
"sparse_similarity_top_k": 0,
"enable_reranking": true,
"rerank_top_n": 0,
"alpha": 0,
"search_filters": {},
"files_top_k": 0,
"retrieval_mode": "chunks",
"retrieve_image_nodes": false,
"class_name": "base_component"
},
"chat_messages": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"index": 0,
"annotations": [
{
"type": "string",
"data": "string",
"class_name": "base_component"
}
],
"role": "system",
"content": "string",
"additional_kwargs": {},
"class_name": "base_component"
}
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}