Knowledge Base

Generate response from models by leading providers. Add Knowledge Base ID for Retrieval Augmented Generation.

Properties

  • Name
    modelId
    Type
    string
    Required
    required
    Description

    Unique identifier of the model in the format model@provider. Check the list of available models, here

  • Name
    prompt
    Type
    string
    Required
    required
    Description

    Your prompt

  • Name
    knowledgeId
    Type
    string
    Required
    Description

    Add the knowledge id for knowledge retrieval.


GEThttps://api.ailibrary.ai/knowledgebases

List all knowledge bases

This endpoint allows you to retrieve a list of all the knowledge bases uplaoded by the user.

Optional attributes

  • Name
    limit
    Type
    integer
    Required
    Description

    Limit the number of contacts returned.

Request

GET
/v1/contacts
curl -G https://api.AI Library.chat/v1/contacts \
  -H "Authorization: Bearer {token}" \
  -d active=true \
  -d limit=10

Response

{
  "has_more": false,
  "data": [
    {
      "id": "WAz8eIbvDR60rouK",
      "username": "FrankMcCallister",
      "phone_number": "1-800-759-3000",
      "avatar_url": "https://assets.AI Library.chat/avatars/frank.jpg",
      "display_name": null,
      "conversation_id": "xgQQXg3hrtjh7AvZ",
      "last_active_at": 705103200,
      "created_at": 692233200
    },
    {
      "id": "hSIhXBhNe8X1d8Et"
      // ...
    }
  ]
}

POSThttps://api.ailibrary.ai/knowledgebase

Create a Knowledge Base


POSThttps://api.ailibrary.ai/knowledgebase/:knowledgeId/files

Add data in a Knowledge Base


GEThttps://api.ailibrary.ai/knowledgebase/files

List all data in a Knowledge Base


GEThttps://api.ailibrary.ai/knowledgebase/files/:id

View data in a Knowledge Base


DELETEhttps://api.ailibrary.ai/knowledgebase/files/:id

Delete data in a Knowledge Base

Was this page helpful?