# 示例

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/embed:
    post:
      summary: 示例
      deprecated: false
      description: ''
      tags:
        - 生成嵌入向量
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: 使用的模型名称
                  example: all-minilm
                input:
                  type: string
                  description: 输入的查询问题
                  example: 为什么天空是蓝色的？
              required:
                - model
                - input
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  model:
                    type: string
                  embeddings:
                    type: array
                    items:
                      type: array
                      items:
                        type: number
                  total_duration:
                    type: integer
                  load_duration:
                    type: integer
                  prompt_eval_count:
                    type: integer
                required:
                  - model
                  - embeddings
                  - total_duration
                  - load_duration
                  - prompt_eval_count
                x-apifox-orders:
                  - model
                  - embeddings
                  - total_duration
                  - load_duration
                  - prompt_eval_count
              example:
                model: all-minilm
                embeddings:
                  - - 0.010071029
                    - -0.0017594862
                    - 0.05007221
                    - 0.04692972
                    - 0.054916814
                    - 0.008599704
                    - 0.105441414
                    - -0.025878139
                    - 0.12958129
                    - 0.031952348
                total_duration: 14143917
                load_duration: 1019500
                prompt_eval_count: 8
          headers: {}
          x-apifox-name: Success
      security: []
      x-apifox-folder: 生成嵌入向量
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6041320/apis/api-272428841-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://localhost:11434/api/
    description: 正式环境
security: []

```
