mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-28 05:20:25 +00:00
feat(api): add file_processor API skeleton (#4113)
This commit is contained in:
parent
325a0bd7b3
commit
55a1da5526
16 changed files with 365 additions and 0 deletions
10
docs/docs/providers/file_processors/index.mdx
Normal file
10
docs/docs/providers/file_processors/index.mdx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
sidebar_label: File Processors
|
||||
title: File_Processors
|
||||
---
|
||||
|
||||
# File_Processors
|
||||
|
||||
## Overview
|
||||
|
||||
This section contains documentation for all available providers for the **file_processors** API.
|
||||
24
docs/static/deprecated-llama-stack-spec.yaml
vendored
24
docs/static/deprecated-llama-stack-spec.yaml
vendored
|
|
@ -9912,6 +9912,7 @@ components:
|
|||
- benchmarks
|
||||
- tool_groups
|
||||
- files
|
||||
- file_processors
|
||||
- prompts
|
||||
- conversations
|
||||
- connectors
|
||||
|
|
@ -10678,6 +10679,29 @@ components:
|
|||
- items
|
||||
title: ConversationItemCreateRequest
|
||||
type: object
|
||||
ProcessFileResponse:
|
||||
description: |-
|
||||
Response model for file processing operation.
|
||||
|
||||
Returns a list of chunks ready for storage in vector databases.
|
||||
Each chunk contains the content and metadata.
|
||||
properties:
|
||||
chunks:
|
||||
description: Processed chunks from the file. Always returns at least one chunk.
|
||||
items:
|
||||
$ref: '#/components/schemas/Chunk'
|
||||
title: Chunks
|
||||
type: array
|
||||
metadata:
|
||||
additionalProperties: true
|
||||
description: Processing-run metadata such as processor name/version, processing_time_ms, page_count, extraction_method (e.g. docling/pypdf/ocr), confidence scores, plus provider-specific fields.
|
||||
title: Metadata
|
||||
type: object
|
||||
required:
|
||||
- chunks
|
||||
- metadata
|
||||
title: ProcessFileResponse
|
||||
type: object
|
||||
PostTrainingJobLogStream:
|
||||
description: Stream of logs from a finetuning job.
|
||||
properties:
|
||||
|
|
|
|||
24
docs/static/experimental-llama-stack-spec.yaml
vendored
24
docs/static/experimental-llama-stack-spec.yaml
vendored
|
|
@ -8986,6 +8986,7 @@ components:
|
|||
- benchmarks
|
||||
- tool_groups
|
||||
- files
|
||||
- file_processors
|
||||
- prompts
|
||||
- conversations
|
||||
- connectors
|
||||
|
|
@ -9752,6 +9753,29 @@ components:
|
|||
- items
|
||||
title: ConversationItemCreateRequest
|
||||
type: object
|
||||
ProcessFileResponse:
|
||||
description: |-
|
||||
Response model for file processing operation.
|
||||
|
||||
Returns a list of chunks ready for storage in vector databases.
|
||||
Each chunk contains the content and metadata.
|
||||
properties:
|
||||
chunks:
|
||||
description: Processed chunks from the file. Always returns at least one chunk.
|
||||
items:
|
||||
$ref: '#/components/schemas/Chunk'
|
||||
title: Chunks
|
||||
type: array
|
||||
metadata:
|
||||
additionalProperties: true
|
||||
description: Processing-run metadata such as processor name/version, processing_time_ms, page_count, extraction_method (e.g. docling/pypdf/ocr), confidence scores, plus provider-specific fields.
|
||||
title: Metadata
|
||||
type: object
|
||||
required:
|
||||
- chunks
|
||||
- metadata
|
||||
title: ProcessFileResponse
|
||||
type: object
|
||||
PostTrainingJobLogStream:
|
||||
description: Stream of logs from a finetuning job.
|
||||
properties:
|
||||
|
|
|
|||
24
docs/static/llama-stack-spec.yaml
vendored
24
docs/static/llama-stack-spec.yaml
vendored
|
|
@ -11407,6 +11407,7 @@ components:
|
|||
- benchmarks
|
||||
- tool_groups
|
||||
- files
|
||||
- file_processors
|
||||
- prompts
|
||||
- conversations
|
||||
- connectors
|
||||
|
|
@ -12170,6 +12171,29 @@ components:
|
|||
- items
|
||||
title: ConversationItemCreateRequest
|
||||
type: object
|
||||
ProcessFileResponse:
|
||||
description: |-
|
||||
Response model for file processing operation.
|
||||
|
||||
Returns a list of chunks ready for storage in vector databases.
|
||||
Each chunk contains the content and metadata.
|
||||
properties:
|
||||
chunks:
|
||||
description: Processed chunks from the file. Always returns at least one chunk.
|
||||
items:
|
||||
$ref: '#/components/schemas/Chunk'
|
||||
title: Chunks
|
||||
type: array
|
||||
metadata:
|
||||
additionalProperties: true
|
||||
description: Processing-run metadata such as processor name/version, processing_time_ms, page_count, extraction_method (e.g. docling/pypdf/ocr), confidence scores, plus provider-specific fields.
|
||||
title: Metadata
|
||||
type: object
|
||||
required:
|
||||
- chunks
|
||||
- metadata
|
||||
title: ProcessFileResponse
|
||||
type: object
|
||||
PostTrainingJobLogStream:
|
||||
description: Stream of logs from a finetuning job.
|
||||
properties:
|
||||
|
|
|
|||
24
docs/static/stainless-llama-stack-spec.yaml
vendored
24
docs/static/stainless-llama-stack-spec.yaml
vendored
|
|
@ -13234,6 +13234,7 @@ components:
|
|||
- benchmarks
|
||||
- tool_groups
|
||||
- files
|
||||
- file_processors
|
||||
- prompts
|
||||
- conversations
|
||||
- connectors
|
||||
|
|
@ -14000,6 +14001,29 @@ components:
|
|||
- items
|
||||
title: ConversationItemCreateRequest
|
||||
type: object
|
||||
ProcessFileResponse:
|
||||
description: |-
|
||||
Response model for file processing operation.
|
||||
|
||||
Returns a list of chunks ready for storage in vector databases.
|
||||
Each chunk contains the content and metadata.
|
||||
properties:
|
||||
chunks:
|
||||
description: Processed chunks from the file. Always returns at least one chunk.
|
||||
items:
|
||||
$ref: '#/components/schemas/Chunk'
|
||||
title: Chunks
|
||||
type: array
|
||||
metadata:
|
||||
additionalProperties: true
|
||||
description: Processing-run metadata such as processor name/version, processing_time_ms, page_count, extraction_method (e.g. docling/pypdf/ocr), confidence scores, plus provider-specific fields.
|
||||
title: Metadata
|
||||
type: object
|
||||
required:
|
||||
- chunks
|
||||
- metadata
|
||||
title: ProcessFileResponse
|
||||
type: object
|
||||
PostTrainingJobLogStream:
|
||||
description: Stream of logs from a finetuning job.
|
||||
properties:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue