Skip to content

Get Sources

GET
/api/v1/chat/sources

Get available data sources (executions with indexed content).

Returns executions that have embeddings indexed, optionally filtered by embedding model. Use this to populate source selection in the UI.

Args: conn: Database connection (injected) embedding_model: Optional filter by embedding model name min_segments: Minimum segment count to include (default 1)

Returns: SourcesResponse with list of available sources

embedding_model
Any of:
string

Filter by embedding model

min_segments
Min Segments

Minimum segment count

integer
default: 1 >= 1

Minimum segment count

Successful Response

SourcesResponse

Response model for available sources.

object
sources
Sources

Available data sources

Array<object>
SourceInfo

Information about an indexed execution (data source).

object
execution_id
required
Execution Id

Pipeline execution ID

string format: uuid
config_name
Any of:
string
config_id
Any of:
string format: uuid
indexed_at
Any of:
string
segment_count
Segment Count

Number of segments indexed

integer
0
embedding_models
Embedding Models

Embedding models used

Array<string>
total
Total

Total number of sources

integer
0

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object