Home Explore Blog Models CI



ragit

10th chunk of `docs/ragithub/openapi.yaml`
2e8dd8ef3955029deabd20a24d31b0d4156524f00942f1cd0000000100000fa3
 type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
    RepoCreation:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        public_read:
          type: boolean
        public_write:
          type: boolean
        public_clone:
          type: boolean
        public_push:
          type: boolean
        public_chat:
          type: boolean
    RepoUpdate:
      type: object
      properties:
        description:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        public_read:
          type: boolean
        public_write:
          type: boolean
        public_clone:
          type: boolean
        public_push:
          type: boolean
        public_chat:
          type: boolean
    ChunkDetail:
      type: object
      properties:
        uid:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/MultiModalContent'
        image_uids:
          type: array
          items:
            type: string
            description: uids of images
        title:
          type: string
        summary:
          type: string
        file:
          type: string
          description: File path that the chunk belongs to. It's null if the chunk is not from a file.
          nullable: true
        file_index:
          type: integer
          description: It's null if and only if `file` is null. It's the index of the chunk in the file.
          nullable: true
        page_no:
          type: integer
          description: Some chunks (e.g. chunks from pdfs) have page numbers.
          nullable: true
        timestamp:
          type: integer
        model:
          type: string
          description: AI model that created the chunk.
        ragit_version:
          type: string
          example: "0.4.0-dev"
    MultiModalContent:
      description: "Ragit is multimodal: a chunk consists of texts and images. Ragit uses this schema to represent a multimodal content in json."
      type: object
      properties:
        type:
          type: string
          enum:
            - Text
            - Image
        content:
          type: string
          description: content of `Text` variant
        uid:
          type: string
          description: uid of `Image` variant
    FileDetail:
      type: object
      properties:
        type:
          type: string
          enum:
            - File
            - Directory
        path:
          type: string
        content:
          type: array
          nullable: true
          description: It's null if the path is a directory.
          items:
            $ref: '#/components/schemas/MultiModalContent'
        uid:
          type: string
          nullable: true
          description: It's null if the path is a directory.
        chunks:
          type: array
          nullable: true
          description: It's null if the path is a directory. It's uids of chunks that belong to this file.
          items:
            type: string
        children:
          type: array
          nullable: true
          description: It's null if the path is a file. It's files and directories that belong to this directory.
          items:
            $ref: '#/components/schemas/FileSimple'
    FileSimple:
      type: object
      properties:
        type:
          type: string
          enum:
            - File
            - Directory
        path:
          type: string
    ChatWithHistory:
      type: object
      properties:
        id:
          type: integer
          format: int32

Title: API Schemas for Repository, File, and Chat Management
Summary
This section defines various API schemas for managing repositories, files, chunks, and chat history, including object properties, data types, and validation rules for repository creation and updates, file details, multimodal content, and chat history.