Constructor Tech
HomeSupport ResourcesConstructor Website
  • About this guide
  • Creating API keys
    • Configuring interaction with the Constructor Model API
    • Prerequisites to use the Constructor Model API
    • Creating knowledge models
    • Creating chat sessions in knowledge models
    • Chatting with models without sessions
    • Managing uploaded files in knowledge models
    • Managing knowledge models
    • Creating knowledge model widgets for external use
    • Constructor Model API usage example
    • Patching API messages for better prompt results
    • Constructor Model API
    • ConstructorKnowledgeModel (0.1.0)

Configuring interaction with the Constructor Model API

Find below the step-by-step instructions for interacting with knowledge models API in Constructor Model.

Before integrating the API, you need to obtain specific parameters. See Prerequisites to use the Constructor Model API.

After that, use API methods in the following order:

  1. Create a knowledge model
  2. Create chat sessions in a knowledge model
  3. If necessary, you can also chat with knowledge models without creating a session. See Chatting with models without sessions.
  4. Manage uploaded files in knowledge models
  5. Embed knowledge models as widgets on external websites

For the information on managing your knowledge models through API, see Managing knowledge models.

You can also see an Example of the Constructor Model API usage and a script to patch API messages for better prompt results.

Creating API keys

Prerequisites to use the Constructor Model API

© Constructor Tech. All rights reserved.