Home Explore Blog Models CI



ragit

11th chunk of `docs/ragithub/openapi.yaml`
370e127b78fe00a9c67c2c0440bfac8f9e3b01ce053e3bd10000000100000a84
 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
        repo_id:
          type: integer
          format: int32
        title:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        history:
          type: array
          items:
            $ref: '#/components/schemas/ChatHistory'
    ChatHistory:
      type: object
      properties:
        query:
          type: string
        response:
          type: string
        user:
          type: string
        model:
          type: string
        chunk_uids:
          type: array
          items:
            type: string
        multi_turn_schema:
          type: object
          description: Ragit re-writes queries when there are multiple turns. It's the actual query that's used for RAG.
          nullable: true
          properties:
            is_query:
              type: boolean
            in_context:
              type: boolean
            query:
              type: string
        created_at:
          type: string
          format: date-time
    ApiKey:
      type: object
      properties:
        api_key_preview:
          type: string
          description: first 9 characters of the api key
        name:
          type: string
        expire:
          type: string
          format: date-time
    ApiKeyCreation:
      type: object
      properties:
        name:
          type: string
        expire_after:
          type: integer
          description: days
        password:
          type: string
          description: user password in plain text
    AiModel:
      type: object
      properties:
        id:
   

Title: API Schemas for Files, Chats, and Authentication
Summary
This section defines additional API schemas for file and directory management, chat history, API key creation and management, and AI models, including properties and data types for chat history, API key expiration, and AI model identification.