An AI Agent in CodeGPT is a specialized instance of the model, leveraging a database of documents as its knowledge base to generate contextually appropriate responses.

In the CodeGPT system, an AI Agent is not just a simple instance of the model. It's a sophisticated tool that utilizes Retrieval Augmented Generation (RAG) to provide detailed and accurate responses. The agent has a large database of documents at its disposal, which serve as its knowledge base.

To create an AI Agent:

  • Go to the CodeGPT Playground.
  • Click on "Create New Agent".
  • Give your agent a name and description.
  • Select a base model and the documents that will comprise the agent's knowledge base.
  • Select the temperature and the reference

When you interact with the agent through the API, it performs a semantic search on the uploaded documents based on your input. It retrieves the most relevant documents and uses them as context for generating its responses. This approach allows the agent to provide responses that are not only accurate but also contextually appropriate, enhancing the overall user experience.