Step 2 / Make your first API call with Github Issues and its comments

Assuming you've already has gone through the step 1, let's now make your first API call with Github Issues and its comments.

Start with simple data-retrieving

Start by retrieving all Comment from GitHubIssue entries from your source.

Perform a semantic search

Next, perform a semantic search on these issues/comments by adding .search.about to the command. To streamline the payload, use the select method to specify exactly what fields should be included in the response.

The response is smaller, containing only text and type due to the select method. It also includes an _additional field that provides information on the search, including certainty and distance which indicate the relevancy and accuracy of the result.

Time for Some Generative Tasks

Now that we understand semantic search and data retrieval, let's enhance the existing code by adding generative features.