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
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Successful Response
SourcesResponse
Response model for available sources.
object
sources
Sources
Available data sources
Array<object>
SourceInfoInformation about an indexed execution (data source).
object
execution_id
required
Execution Id
Pipeline execution ID
string format: uuid
segment_count
Segment Count
Number of segments indexed
integer
embedding_models
Embedding Models
Embedding models used
Array<string>
total
Total
Total number of sources
integer
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context