A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/copilot-extensions/rag-extension below:

copilot-extensions/rag-extension: An example extension in go using retrevial-augmented generation

Skip to content Navigation Menu Search code, repositories, users, issues, pull requests...

Saved searches Use saved searches to filter your results more quickly

Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert copilot-extensions/rag-extension Retrieval Augmented Generation Extensions Sample

This project is a Go application that demonstrates how to use retrieval augmented generation in an agent-based GitHub Copilot Extension.

export PORT=8080
export CLIENT_ID=Iv1.0ae52273ad3193eb // the application id
export CLIENT_SECRET="your_client_secret" // generate a new client secret for your application
export FQDN=https://6de513480979.ngrok.app // use ngrok to expose a url
  1. Clone the repository:
git clone git@github.com:copilot-extensions/rag-extension.git
cd rag-extension
  1. Install dependencies:
  1. Start up ngrok with the port provided:
ngrok http http://localhost:8080
  1. Set the environment variables (use the ngrok generated url for the FDQN)
  2. Run the application:
Accessing the Agent in Chat:
  1. In the Copilot tab of your Application settings (https://github.com/settings/apps/<app_name>/agent)
  1. In the General tab of your application settings (https://github.com/settings/apps/<app_name>)
  1. Ensure your permissions are enabled in Permissions & events >
  1. Ensure you install your application at (https://github.com/apps/<app_name>)
  2. Now if you go to https://github.com/copilot you can @ your agent using the name of your application.

Test out the agent with the following commands!

Description Prompt User asking @agent how to configure a Copilot extension @agent How do I configure a copilot extension? User asking @agent what a Copilot extension looks like @agent What is the response format for a copilot extension? Copilot Extensions Documentation About

An example extension in go using retrevial-augmented generation

Topics Resources License Code of conduct Security policy Stars Watchers Forks

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4